Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-11-2016, 02:19 PM   #1
aCIDsLAM
Enthusiast
aCIDsLAM began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Oct 2016
Device: Xiaomi MI Pad 1, LineageOS14.1
Issue with version greater 2.56

Hello People,

i am running Calibre Server 2.56 on a Windows 2012 R2 Core Server.

With newer version greater 2.56, i get following message below.

Somebody else with this setup have simular problems?

PS C:\Program Files\Calibre2> .\calibre-server.exe
Python function terminated unexpectedly
cannot import name QImage (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 108, in run_entry_point
File "site.py", line 50, in load_module
File "site-packages\calibre\library\server\main.py", line 12, in <module>
File "site.py", line 50, in load_module
File "site-packages\calibre\library\server\base.py", line 21, in <module>
File "site.py", line 50, in load_module
File "site-packages\calibre\library\server\content.py", line 14, in <module>
File "site.py", line 50, in load_module
File "site-packages\calibre\utils\img.py", line 10, in <module>
ImportError: cannot import name QImage
aCIDsLAM is offline   Reply With Quote
Old 10-11-2016, 04:44 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Version 2.57 (May 20) replaced the imagemagik library with an equivalent Qt library - see calibre - What's new - the error suggests it's something to do with that change?

But wouldn't have thought that would effect calibre server. I run 3 instances of calibre-server on a desktop Windows box with no issues.

Kovid Goyal will have to answer this, answers to these questions may be of some use.

Can you run the calibre library manager? Do you have any other tasks running that might be in conflict? Can you try terminating those tasks.

BR
BetterRed is offline   Reply With Quote
Advert
Old 10-11-2016, 10:56 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Something is preventing the Qt dlls being loaded on your system. You might get a better error message with this command.

calibre-debug -c "from PyQt5.QtGui import QImage"
kovidgoyal is offline   Reply With Quote
Old 10-12-2016, 05:46 AM   #4
aCIDsLAM
Enthusiast
aCIDsLAM began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Oct 2016
Device: Xiaomi MI Pad 1, LineageOS14.1
I have no other services or applications running. I installed a core server, as i wanted a dedicated windows machine with low footprint.

Maybe the library changed caused a gui server depency. I tried the latest release, even with the debug version with the --new server

Strange, the debugout with 2.56 and 2.69 is the same but with 2.56, i still can start the server with 2.56


Version 2.69 output
PS C:\Program Files\Calibre2> calibre-debug -c "from PyQt5.QtGui import QImage"
Python function terminated unexpectedly
MemoryLoadLibrary() failed loading PyQt5\QtGui.pyd (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\debug.py", line 238, in main
File "<string>", line 1, in <module>
File "site.py", line 60, in load_module
ImportError: MemoryLoadLibrary() failed loading PyQt5\QtGui.pyd

Version 2.56 output (But Server works)
PS C:\Program Files\Calibre2> calibre-debug -c "from PyQt5.QtGui import QImage"
Python function terminated unexpectedly
MemoryLoadLibrary() failed loading PyQt5\QtGui.pyd (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\debug.py", line 234, in main
File "<string>", line 1, in <module>
File "site.py", line 60, in load_module
ImportError: MemoryLoadLibrary() failed loading PyQt5\QtGui.pyd
aCIDsLAM is offline   Reply With Quote
Old 10-12-2016, 07:01 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, from >2.56 Qt is used for image resizing operations, which the server needs. I suggest you stay with 2.55 until calibre 3.0 -- in calibre 3.0 I have gotten rid of the MemoryLoadLibrary() hack to load python modules, so you should no longer get that error.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-12-2016, 07:06 AM   #6
aCIDsLAM
Enthusiast
aCIDsLAM began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Oct 2016
Device: Xiaomi MI Pad 1, LineageOS14.1
Okay. Atleast i know, 2.56 is not a dead end, with my setup 2012 R2 core server setup and i can update in the future some day.

Thanks for you help and support.
aCIDsLAM is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello from the Greater Toronto Area! Komiksulo Introduce Yourself 3 10-22-2011 02:55 AM
Any word on a Sony 9" reader or greater? Christopher888 Sony Reader 2 11-04-2010 08:25 AM
Issue installing of version calibre-0.7.16 iceman00 Calibre 2 08-30-2010 05:46 PM
Major libprs issue with version 0.4.20 tichkiir Calibre 3 11-14-2007 03:29 PM


All times are GMT -4. The time now is 04:10 PM.


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