![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 100
Karma: 1000399
Join Date: Sep 2008
Location: Toronto, Ontario
Device: Sony PRS-500
|
ImportError: No module named profiles
Getting this when trying to update to latest version on Linux. ImportError: No module named profiles. I looked through the the python site for modules like profile or profiles but nothing jumped out at me. I think I have all the requirements as per the calibre website. Any ideas?
Thanks! |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42,979
Karma: 20900374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
What process are you using to update?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 100
Karma: 1000399
Join Date: Sep 2008
Location: Toronto, Ontario
Device: Sony PRS-500
|
building from source
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42,979
Karma: 20900374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
post the full error message
|
![]() |
![]() |
![]() |
#5 |
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42,979
Karma: 20900374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
the calibre src tarball bundles cssutils, so unless python is picking up the system cssutils in preference to the bundled version (which it really shouldn't do) there shouldn't be a problem.
|
![]() |
![]() |
![]() |
#7 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 100
Karma: 1000399
Join Date: Sep 2008
Location: Toronto, Ontario
Device: Sony PRS-500
|
Here's the full error report:
Code:
Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/calibre/linux.py", line 194, in setup_completion f = open_file('/etc/bash_completion.d/calibre') File "/usr/lib/python2.6/site-packages/calibre/ebooks/mobi/from_feeds.py", line 12, in <module> File "/usr/lib/python2.6/site-packages/calibre/ebooks/mobi/writer.py", line 29, in <module> File "/usr/lib/python2.6/site-packages/calibre/ebooks/oeb/transforms/flatcss.py", line 21, in <module> File "/usr/lib/python2.6/site-packages/calibre/ebooks/oeb/stylizer.py", line 20, in <module> ImportError: No module named profiles Traceback (most recent call last): File "/home/kevin/builds/calibre/pkg/usr/bin/calibre_postinstall", line 8, in <module> load_entry_point('calibre==0.4.138', 'console_scripts', 'calibre_postinstall')() File "/usr/lib/python2.6/site-packages/calibre/linux.py", line 466, in post_install File "/usr/lib/python2.6/site-packages/calibre/linux.py", line 337, in setup_completion ''' UnboundLocalError: local variable 'manifest' referenced before assignment Traceback (most recent call last): File "setup.py", line 183, in <module> subprocess.check_call('calibre_postinstall --use-destdir', shell=True) File "/usr/lib/python2.6/subprocess.py", line 462, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'calibre_postinstall --use-destdir' returned non-zero exit status 1 |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42,979
Karma: 20900374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yeah it's picking up an out of date cssutils.
easy_install -U cssutils should do the trick |
![]() |
![]() |
![]() |
#9 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 100
Karma: 1000399
Join Date: Sep 2008
Location: Toronto, Ontario
Device: Sony PRS-500
|
that did the trick. Thanks Kovid!!
|
![]() |
![]() |
![]() |
#10 |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Sep 2007
Device: Android phone + PRS-505
|
I'm trying to get your gentoo vmware appliance to build calibre, and after updating the bzr source and several ebuilds, I'm also seeing this error about "No module named profiles". However, the cause must be different because there was no cssutils package installed. I tried installing the (masked) cssutils ebuild, and that didn't change anything, so I'm rather stumped.
The only reason I'm trying to use the vmware appliance is because calibre started to crash on startup last week, and I'm trying to figure out if it's something weird in my ubuntu environment that changed, or if there's a bug in calibre. So far, no luck getting gento to cooperate, nor getting calibre to start with my full DB of books (it will start if I used a new DB, or if I trim the DB down to something like 50 books). So, I guess I'll open a bug report about the crashing next. If you update the gentoo vmware appliance and get calibre working, let me know and I'll try my library out on that as well. |
![]() |
![]() |
![]() |
#11 | |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Sep 2007
Device: Android phone + PRS-505
|
Quote:
Interestingly, calibre didn't crash when I started it in vmware, though it did generate 2 ascii warnings, such as this one: 'ascii' codec can't encode character u'\u2019' in position 21: ordinal not in range(128) I'll do some more research. |
|
![]() |
![]() |
![]() |
#12 |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Sep 2007
Device: Android phone + PRS-505
|
I forgot to follow up on what I figured out. Here's the deal:
1. I managed to fix the crashing by enabling the backports repository in my Ubunutu 8.10 install and installing the latest versions of the Qt/PyQt/sip programs. It would appear that a security update that Ubuntu did in the regular repository was the cause of the calibre UI crashing when it tried to display my bookshelf. (That's a guess -- I do know from the core backtrace that it was crashing in Qt code, but whether it was memory corruption or a code issue that caused the null-pointer dereference that crashed calibre, I don't know -- I'm just glad it's not doing that anymore.) 2. The ascii warnings were due to some books having a unicode right-single-quote in their titles, and thus also in each book's pathname. In my gentoo install the default locale was ascii, but the calibre library was created on an Ubuntu system that used a UTF-8, and the python code complains when trying to create a pathname out of the UTF-8 DB data. I had to setup a UTF-8 locale on gentoo to avoid the errors (and be able to access the books). |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Profiles | mtravellerh | Calibre | 1 | 12-31-2008 02:27 PM |
ImportError: No module named pkg_resources | erik80 | Calibre | 3 | 08-02-2008 09:33 AM |
network profiles | vvv | iRex | 6 | 09-04-2006 12:19 PM |
Can not save network profiles | mross | iRex | 0 | 08-05-2006 06:16 AM |