Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-03-2007, 11:59 AM   #256
BrendenM
Member
BrendenM began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jan 2007
Device: PRS-500, Blackberry 8700c
Quote:
Originally Posted by kovidgoyal View Post
I see you've installed it from svn. I assume you ran make in the gui2 directory?
Yep I ran make -C src/libprs500/gui2/ as written on the development page. No errors from that as far as I could see.
BrendenM is offline   Reply With Quote
Old 10-03-2007, 12:25 PM   #257
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,411
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
So what error does lrfviewer give you?
kovidgoyal is online now   Reply With Quote
Old 10-03-2007, 01:38 PM   #258
BrendenM
Member
BrendenM began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jan 2007
Device: PRS-500, Blackberry 8700c
Quote:
Originally Posted by kovidgoyal View Post
So what error does lrfviewer give you?
My mistake, forgot to include that sorry.

Code:
Traceback (most recent call last):
  File "/usr/bin/lrfviewer", line 8, in <module>
    load_entry_point('libprs500==0.4.7', 'console_scripts', 'lrfviewer')()
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 236, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2097, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1830, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/home/me/personal/eBooks/Software/libprs500/src/libprs500/gui2/lrf_renderer/main.py", line 26, in <module>
    from libprs500.gui2.dialogs.conversion_error import ConversionErrorDialog
  File "/home/me/personal/eBooks/Software/libprs500/src/libprs500/gui2/dialogs/conversion_error.py", line 19, in <module>
    from libprs500.gui2.dialogs.conversion_error_ui import Ui_ConversionErrorDialog
ImportError: cannot import name Ui_ConversionErrorDialog
BrendenM is offline   Reply With Quote
Old 10-03-2007, 03:37 PM   #259
BrendenM
Member
BrendenM began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jan 2007
Device: PRS-500, Blackberry 8700c
Quote:
Originally Posted by kovidgoyal View Post
Oversight. Will be in next version. You can choose all files for the moment.
Oops sorry forgot that output.

Code:
Traceback (most recent call last):
  File "/usr/bin/lrfviewer", line 8, in <module>
    load_entry_point('libprs500==0.4.7', 'console_scripts', 'lrfviewer')()
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 236, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2097, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1830, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/home/me/personal/eBooks/Software/libprs500/src/libprs500/gui2/lrf_renderer/main.py", line 26, in <module>
    from libprs500.gui2.dialogs.conversion_error import ConversionErrorDialog
  File "/home/me/personal/eBooks/Software/libprs500/src/libprs500/gui2/dialogs/conversion_error.py", line 19, in <module>
    from libprs500.gui2.dialogs.conversion_error_ui import Ui_ConversionErrorDialog
ImportError: cannot import name Ui_ConversionErrorDialog
BrendenM is offline   Reply With Quote
Old 10-03-2007, 03:45 PM   #260
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,411
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Try running make again
kovidgoyal is online now   Reply With Quote
Old 10-03-2007, 04:08 PM   #261
BrendenM
Member
BrendenM began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jan 2007
Device: PRS-500, Blackberry 8700c
Quote:
Originally Posted by kovidgoyal View Post
Try running make again
Okay updated to the newest SVN, 628.

Ran make -C src/libprs500/gui2/ and it initially said
Code:
make: Nothing to be done for `all'.
So I did a make clean and tried again and now I'm getting lots of
Code:
pyuic4 lrf_renderer/main.ui | sed "s/import images_rc/from libprs500.gui2 import images_rc/" | \
                    sed "s/from library import/from libprs500.gui2.library import/"> lrf_renderer/main_ui.py
/bin/sh: Can't open pyuic4
pyuic4 does exist and my user can run it.
Code:
# pyuic4 --version
Python User Interface Compiler 4.3.1 for Qt version 4.3.0
BrendenM is offline   Reply With Quote
Old 10-03-2007, 04:15 PM   #262
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,411
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Replace pyuic4 in the Makefile with the full path to pyuic4
kovidgoyal is online now   Reply With Quote
Old 10-03-2007, 04:27 PM   #263
BrendenM
Member
BrendenM began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jan 2007
Device: PRS-500, Blackberry 8700c
Quote:
Originally Posted by kovidgoyal View Post
Replace pyuic4 in the Makefile with the full path to pyuic4
Awesome, that fixed it. Ran setup and it installed correctly too, no more errors for bash-completion either.

Sorry about all the questions, not that familiar with python.

libprs500 is working and looks great.
BrendenM is offline   Reply With Quote
Old 10-04-2007, 02:39 PM   #264
MSWallack
Right, Except When Wrong
MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.
 
MSWallack's Avatar
 
Posts: 363
Karma: 4323767
Join Date: Aug 2007
Location: Indianapolis
Device: Kindle Oasis 3 (sometimes iPad Mini).
Curious to know if you've had a chance to look at (or had any luck with) the rtf2lrf error described in Ticket #220.

Also, is there a way to modify the formatting in an existing .lrf file? For example, once a file has been converted to .lrf, is there a way to adjust the font size or add a header with starting over from the original eBook file?

Thanks again for all your efforts.
MSWallack is offline   Reply With Quote
Old 10-04-2007, 07:22 PM   #265
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,411
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Oh I'm sorry somehow I forgot about that ticket. Probably because I missed the email notifying me about the file attachment, I'll look at it asap.

You can use the --lrs option to generate an LRS file (which is an XML file), edit it and then use an lrs2lrf compiler to generate an LRF file. Unfortunately I haven't got around to writing an lrs2lrf compiler for libprs500, too many higher priority tasks, but I think there is one floating around that uses DLLs from the connect software.
kovidgoyal is online now   Reply With Quote
Old 10-05-2007, 02:04 AM   #266
digiman
Junior Member
digiman began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2007
Device: SONY PRS-500
Hi everyone,

I installed libprs500 for Feisty as described at
https://libprs500.kovidgoyal.net/wiki
I just copied and pasted the the whole thing to my terminal window

I get an exception when I try to add a book

restoreState
Detailed traceback:
Traceback (most recent call last):
File "build/bdist.linux-i686/egg/libprs500/gui2/main.py", line 261, in add_books
File "build/bdist.linux-i686/egg/libprs500/gui2/__init__.py", line 275, in choose_files
File "build/bdist.linux-i686/egg/libprs500/gui2/__init__.py", line 208, in __init__
AttributeError: restoreState

when I click on the library, I get the following

argument 0 of signal QListView.location_selected(PyQt_PyObject) has an invalid type
Detailed traceback:
Traceback (most recent call last):
File "build/bdist.linux-i686/egg/libprs500/gui2/widgets.py", line 81, in current_changed
TypeError: argument 0 of signal QListView.location_selected(PyQt_PyObject) has an invalid type

My python install is as follows

cat /usr/lib/python2.5/site-packages/easy-install.pth
import sys; sys.__plen = len(sys.path)
./TTFQuery-1.0.0-py2.5.egg
./libprs500-0.4.7-py2.5.egg
import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p]=new; sys.__egginsert = p+len(new)

Am I missing some library or something? I am not a python programmer, so I have no idea how to debug. I am also a recent convert to Linux and my knowledge is still pretty green. Thanks in advance.
digiman is offline   Reply With Quote
Old 10-05-2007, 07:07 AM   #267
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,411
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to upgrade to the latest Qt, SIP, and PyQt versions
Qt >= 4.3.1, SIP >= 4.7.1 and PyQt >= 4.3.1
kovidgoyal is online now   Reply With Quote
Old 10-05-2007, 10:20 AM   #268
MSWallack
Right, Except When Wrong
MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.MSWallack ought to be getting tired of karma fortunes by now.
 
MSWallack's Avatar
 
Posts: 363
Karma: 4323767
Join Date: Aug 2007
Location: Indianapolis
Device: Kindle Oasis 3 (sometimes iPad Mini).
I tried the UnRTF method that you suggested in your private e-mail (my reply bounced). I've updated the ticket with the results.
MSWallack is offline   Reply With Quote
Old 10-07-2007, 01:43 AM   #269
ddavtian
Addict
ddavtian has a complete set of Star Wars action figures.ddavtian has a complete set of Star Wars action figures.ddavtian has a complete set of Star Wars action figures.ddavtian has a complete set of Star Wars action figures.
 
Posts: 274
Karma: 332
Join Date: Nov 2003
Location: San Francisco, USA
Device: Sage, Elipsa, Oasis, Galaxy Tab 8U, S22U
Newsweek profile

Kovid, I always enjoy reading NYTimes and Newsweek, thank you for profiles. NYTimes downloads fast and size is around 1Mb. Newsweek is coming much slower, size is around 4-5 Mb and my reader opens and formats it very slowly (today's download has over 5000 pages).

Would you consider putting a limit on number of articles in each section? In today's "National News" and "World News" it gets articles all the way back from June. "National News" alone has 1,200+ pages. "World News" is around 800 pages, "Health" adds 500+ pages, "Entertaintment" is another 800 pages. It would be better to download only last 10-15 articles or last 2-3 weeks, in each section. You could hardcode a reasonable number or make it an option.

Do you have other favorite newspapers/magazines that may make to the libprs500?

Thanks,
David
ddavtian is offline   Reply With Quote
Old 10-07-2007, 01:46 AM   #270
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,411
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Sure adding a date based limit is probably a good idea. Open a ticket and I'll get it done. I was planning to add The Economist but there were some technical issues that I haven't had the time to sort out.
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Soribook: First eReader eInk device now in beta testing! Nate the great News 13 04-27-2013 08:28 AM
Beta Beta Test of Major New Features Starson17 Calibre 45 05-17-2010 10:55 AM
testing jomaweb Lounge 44 02-02-2010 02:15 PM


All times are GMT -4. The time now is 11:49 AM.


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