Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-20-2022, 06:46 PM   #1
ajkessel
Connoisseur
ajkessel began at the beginning.
 
Posts: 58
Karma: 10
Join Date: Jul 2017
Device: Kindle Paperwhite 3rd Generation
Problem building calibre 32-bit - 'QtCore/QtCoremod.sip' could not be found

I'm trying to build calibre from git for a 32-bit Debian system. I believe I've installed all build dependencies, but I'm getting this error on setup.py bootstrap:
Code:
Generating the rcc_backend bindings...
-c: (...)/src/calibre/build/pyqt/rcc_backend/rcc.sip: line 19 column 9: 'QtCore/QtCoremod.sip' could not be found
But QtCoremod.sip is on my system at /usr/lib/python3/dist-packages/PyQt6/bindings/QtCore/QtCoremod.sip.

I'm stuck for next steps. Any tips? Alternatively, does anyone have prebuilt 32 binaries?
ajkessel is offline   Reply With Quote
Old 07-20-2022, 06:50 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,149
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Qt6 is 64-bit only. So to install Calibre 6, you need a 64-bit OS.

The last 32-bit version is 5.44.
JSWolf is offline   Reply With Quote
Old 07-20-2022, 10:48 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: 43,888
Karma: 22666668
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
google that error you will find lots of tips. typically it is caused by using a different python than the one PyQt is installed in.
kovidgoyal is offline   Reply With Quote
Old 08-06-2022, 05:42 AM   #4
noogel666
Junior Member
noogel666 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2022
Device: iphone12
I had a similar problem that bothered me for several days

Quote:
Originally Posted by kovidgoyal View Post
google that error you will find lots of tips. typically it is caused by using a different python than the one PyQt is installed in.
some info...

(venv) ➜ calibre gitmaster) ./setup.py build --debug

*
* Running build
*

Building 27 extensions
SIPing 4 files...
/home/xyz/OpenSourceProjects/calibre/venv/bin/python -c from sipbuild.tools.build import main; main(); --verbose --no-make --qmake /usr/bin/qmake
Querying qmake about your Qt installation...
/usr/bin/qmake -query
These bindings will be built: rcc_backend.
Generating the rcc_backend bindings...
-c: /home/xyz/OpenSourceProjects/calibre/build/pyqt/rcc_backend/rcc.sip: line 19 column 9: 'QtCore/QtCoremod.sip' could not be found



(venv) ➜ calibre gitmaster) pip list
Package Version
------------ -------
packaging 21.3
pip 22.2.1
ply 3.11
pyparsing 3.0.9
PyQt-builder 1.13.0
PyQt6 6.3.1
PyQt6-Qt6 6.3.1
PyQt6-sip 13.4.0
setuptools 57.0.0
sip 6.6.2
toml 0.10.2
wheel 0.36.2


(venv) ➜ calibre gitmaster) python
Python 3.8.10 (default, Jun 22 2022, 20:18:18)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.


(venv) ➜ calibre gitmaster) cat /proc/version
Linux version 5.15.0-43-generic (buildd@lcy02-amd64-026) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #46~20.04.1-Ubuntu SMP Thu Jul 14 15:20:17 UTC 2022

-----

64bit ubuntu 20.04.1 LTS system

I've tried many methods, but they can't work. Can you help me.


noogel666 is offline   Reply With Quote
Old 08-06-2022, 08:35 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: 43,888
Karma: 22666668
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Dont use venvs. Install the dependencies in your system python.
kovidgoyal is offline   Reply With Quote
Old 08-06-2022, 10:31 AM   #6
noogel666
Junior Member
noogel666 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2022
Device: iphone12
Thanks, but it still doesn't work.

Quote:
Originally Posted by kovidgoyal View Post
Dont use venvs. Install the dependencies in your system python.
Spoiler:


➜ calibre gitmaster) pip list
Package Version
----------------------- --------------------
apsw 3.39.2.0
apturl 0.5.2
bcrypt 3.1.7
blinker 1.4
Brlapi 0.7.0
certifi 2019.11.28
chardet 3.0.4
Click 7.0
colorama 0.4.3
command-not-found 0.3
cryptography 2.8
cupshelpers 1.0
dbus-python 1.2.16
defer 1.0.6
distro 1.4.0
distro-info 0.23ubuntu1
duplicity 0.8.12.0
entrypoints 0.3
fasteners 0.14.1
future 0.18.2
html5lib 1.1
httplib2 0.14.0
idna 2.8
keyring 18.0.1
language-selector 0.1
launchpadlib 1.10.13
lazr.restfulclient 0.14.2
lazr.uri 1.0.3
lockfile 0.12.2
louis 3.12.0
lxml 4.9.1
macaroonbakery 1.3.1
Mako 1.1.0
MarkupSafe 1.1.0
mechanize 0.4.8
monotonic 1.5
netifaces 0.10.4
oauthlib 3.1.0
olefile 0.46
packaging 21.3
paramiko 2.6.0
pexpect 4.6.0
Pillow 7.0.0
pip 22.2.1
ply 3.11
protobuf 3.6.1
PyBluez 0.22
pycairo 1.16.2
pycryptodomex 3.6.1
pycups 1.9.73
PyGObject 3.36.0
PyJWT 1.7.1
pymacaroons 0.13.0
PyNaCl 1.3.0
pyparsing 3.0.9
PyQt-builder 1.13.0
PyQt6 6.3.1
PyQt6-Qt6 6.3.1
PyQt6-sip 13.4.0
pyRFC3339 1.1
python-apt 2.0.0+ubuntu0.20.4.7
python-dateutil 2.7.3
python-debian 0.1.36ubuntu1
pytz 2019.3
pyxdg 0.26
PyYAML 5.3.1
regex 2022.7.25
reportlab 3.5.34
requests 2.22.0
requests-unixsocket 0.2.0
screen-resolution-extra 0.0.0
SecretStorage 2.3.1
setuptools 45.2.0
simplejson 3.16.0
sip 6.6.2
six 1.14.0
systemd-python 234
toml 0.10.2
ubuntu-advantage-tools 27.6
ubuntu-drivers-common 0.0.0
ufw 0.36
unattended-upgrades 0.1
urllib3 1.25.8
usb-creator 0.3.7
wadllib 1.3.3
webencodings 0.5.1
wheel 0.34.2
xkit 0.0.0




➜ calibre gitmaster) python3
Python 3.8.10 (default, Jun 22 2022, 20:18:18)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.


➜ calibre gitmaster) python3 setup.py build

*
* Running build
*

Building 27 extensions
SIPing 4 files...
/usr/bin/python3 -c from sipbuild.tools.build import main; main(); --verbose --no-make --qmake /usr/bin/qmake
Querying qmake about your Qt installation...
/usr/bin/qmake -query
These bindings will be built: rcc_backend.
Generating the rcc_backend bindings...
-c: /home/xyz/OpenSourceProjects/calibre/build/pyqt/rcc_backend/rcc.sip: line 19 column 9: 'QtCore/QtCoremod.sip' could not be found


I also tried to install pyqt5、pyqt5-qt5、pyqt5-sip, but it still doesn't work.Not even after uninstalling.

Last edited by theducks; 08-06-2022 at 12:49 PM.
noogel666 is offline   Reply With Quote
Old 08-06-2022, 11:11 PM   #7
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: 43,888
Karma: 22666668
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need pyqt6 not pyqt5
kovidgoyal is offline   Reply With Quote
Reply

Tags
+compile, qtcoremod


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Calibre 2.57.1 (64 bit) ThSpeck Devices 10 06-22-2016 12:27 PM
Anyone performance tested the calibre 32bit vs 64 bit on Windows 7 32 bit & 64 bit? millan Devices 6 11-07-2014 05:03 PM
Calibre 32-bit and 64-bit Installed; Uninstall 32-bit? J-Mac Calibre 6 06-29-2013 06:40 AM
Calibre 64 bit problem D.. Calibre 3 04-19-2013 04:26 AM
Problem building Calibre from source on Ubuntu 10.10 rozen Calibre 1 03-28-2011 02:02 AM


All times are GMT -4. The time now is 10:23 AM.


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