Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 07-25-2018, 01:50 PM   #1
txwindsurfer
Junior Member
txwindsurfer began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2018
Location: Hot Springs, SD
Device: Samsung Galaxy Tab S, Kobo Aura Edition 2
Content Server - error with missing file

Short version: When I try to start the Content server on Windows 10, I'm now getting this error message:

calibre, version 3.28.0
ERROR: Failed to start Content server: Could not start the Content server. Error:

[Errno 2] No such file or directory: 'C:\\Program Files (x86)\\Calibre2\\app\\imgsrc\\srv\\generate.py'

I started getting this error after I started the installation of a separate calibre development environment. The prod environment is in a separate folder & drive from my regular installation. I don't even have a batch file setup or running yet to switch between the two.

The thing is, this "app" folder doesn't exist directly under the Calibre2 folder. It should be Calibre2\imgsrc\...

Any suggestions on what I may be causing this and where to look?


--------------
Some futher details:

I've been running Calibre server for personal use on my local Windows 10 machine for a couple months and love it.
Last week I decided to start setting up a development environment to dabble with plugin development. So I cloned the calibre branch from github into a separate folder on my machine (actually, on a separate drive from my main calibre installation).
I was going through the instructions a step at a time from the "Setting up a development environment" calibre help pages, and got partly through the "Having separate “normal” and “development” calibre installs on the same computer" section on that page.
After having completed part of this, I am no longer able to run the Content server in my primary calibre environment. I'm getting the error I pasted above.
txwindsurfer is offline   Reply With Quote
Old 07-25-2018, 02:09 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,401
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by txwindsurfer View Post
Short version: When I try to start the Content server on Windows 10, I'm now getting this error message:

calibre, version 3.28.0
ERROR: Failed to start Content server: Could not start the Content server. Error:

[Errno 2] No such file or directory: 'C:\\Program Files (x86)\\Calibre2\\app\\imgsrc\\srv\\generate.py'

I started getting this error after I started the installation of a separate calibre development environment. The prod environment is in a separate folder & drive from my regular installation. I don't even have a batch file setup or running yet to switch between the two.

The thing is, this "app" folder doesn't exist directly under the Calibre2 folder. It should be Calibre2\imgsrc\...

Any suggestions on what I may be causing this and where to look?
Hmmm... When I look on my computer, there is an app directory in the Calibre2 directory which is in Program Files since I installed the 64 bit version of calibre. There is no generate.py file in that directory or subdirectories.

If you remove your development version, does calibre server start working again? If not, you might want to try uninstalling and then re-installing the main calibre instance.
DNSB is offline   Reply With Quote
Old 07-25-2018, 02:11 PM   #3
txwindsurfer
Junior Member
txwindsurfer began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2018
Location: Hot Springs, SD
Device: Samsung Galaxy Tab S, Kobo Aura Edition 2
I just now found the "culprit". I just delete the CALIBRE_DEVELOP_FROM environment variable I had set last week, and now the server starts. And no error.
I'm not sure how that was causing the issue and if anyone can explain I'd appreciate it. I had the variable set under System Properties > Environment Variables > System Variables
txwindsurfer is offline   Reply With Quote
Old 07-25-2018, 02:16 PM   #4
txwindsurfer
Junior Member
txwindsurfer began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2018
Location: Hot Springs, SD
Device: Samsung Galaxy Tab S, Kobo Aura Edition 2
David, that's interesting. I'm pretty consistent on keeping the program updated, being currently on the latest version. Maybe I should try a re-install of the main instance and then adding the environment variable back in.
txwindsurfer is offline   Reply With Quote
Old 07-25-2018, 09:24 PM   #5
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by txwindsurfer View Post
I just now found the "culprit". I just delete the CALIBRE_DEVELOP_FROM environment variable I had set last week, and now the server starts. And no error.
I'm not sure how that was causing the issue and if anyone can explain I'd appreciate it. I had the variable set under System Properties > Environment Variables > System Variables
That environment variable is used when you want to run calibre from source. It points to where the source code is. If the needed source files are not in that location, then calibre will fail.

For development, I don't set the environment variable globally. I use a batch wrapper script that does the setup needed and starts calibre-debug. That way I can run different versions if needed or the released code with no changes.
davidfor is offline   Reply With Quote
Old 07-27-2018, 04:40 AM   #6
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Same for me.
In addition a quick check for environment variables is easy and always a good idea if someone doing this kind of manipulations. Simply run a cmd window and type set calibre and you will see all environment variables starting with calibre, if they exist. calibre environment variables start with CALIBRE_...
https://manual.calibre-ebook.com/customize.html
Divingduck is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibre-server 3.0 missing file? Uncle_Steve Calibre 2 06-16-2017 12:40 PM
Content Server error tedpeer Calibre 2 08-16-2013 09:28 PM
500 Internal Server Error accessing content server Calibre 0.8.8 DaddyO57 Calibre 1 07-20-2012 06:08 PM
Error in Content Server Barrowise Library Management 8 06-07-2011 09:01 AM
content server error brysio Calibre 3 12-18-2010 12:24 PM


All times are GMT -4. The time now is 08:12 AM.


MobileRead.com is a privately owned, operated and funded community.