Order it now! Amazon prioritizes orders on a first come, first served basis.


View Full Version : libprs500 linux install error


europas_ice
09-03-2007, 06:29 AM
Hey, can anyone help me with this install error? I'm trying to install on FreeBSD (linux-like). Something is wrong about udev? I don't have any directory /etc/udev on my system. Am I missing something that needs to be installed or running?

The error is:

root@oom9:/root>easy_install-2.5 -U TTFQuery libprs500 && libprs500_postinstall
Searching for TTFQuery
Reading http://cheeseshop.python.org/pypi/TTFQuery/
Reading http://members.rogers.com/mcfletch/
Reading https://sourceforge.net/project/showfiles.php?group_id=84080
Reading http://cheeseshop.python.org/pypi/TTFQuery/1.0.0
Best match: TTFQuery 1.0.0
Processing TTFQuery-1.0.0-py2.5.egg
TTFQuery 1.0.0 is already the active version in easy-install.pth

Using /usr/local/lib/python2.5/site-packages/TTFQuery-1.0.0-py2.5.egg
Processing dependencies for TTFQuery
Searching for libprs500
Reading http://cheeseshop.python.org/pypi/libprs500/
Reading http://libprs500.kovidgoyal.net
Reading http://cheeseshop.python.org/pypi/libprs500/0.3.106
Best match: libprs500 0.3.106
Downloading http://pypi.python.org/packages/2.5/l/libprs500/libprs500-0.3.106-py2.5.egg#md5=983b0bb1cae1c98dcdf1401239dba931
Processing libprs500-0.3.106-py2.5.egg
Moving libprs500-0.3.106-py2.5.egg to /usr/local/lib/python2.5/site-packages
Removing libprs500 0.3.101 from easy-install.pth file
Adding libprs500 0.3.106 to easy-install.pth file
Installing libprs500-beta script to /usr/local/bin
Installing lrf-meta script to /usr/local/bin
Installing markdown script to /usr/local/bin
Installing pdf-meta script to /usr/local/bin
Installing rtf-meta script to /usr/local/bin
Installing web2lrf script to /usr/local/bin
Installing any2lrf script to /usr/local/bin
Installing pdf2lrf script to /usr/local/bin
Installing web2disk script to /usr/local/bin
Installing html2lrf script to /usr/local/bin
Installing libprs500_postinstall script to /usr/local/bin
Installing prs500 script to /usr/local/bin
Installing txt2lrf script to /usr/local/bin
Installing lit2lrf script to /usr/local/bin
Installing rtf2lrf script to /usr/local/bin
Installing libprs500 script to /usr/local/bin

Installed /usr/local/lib/python2.5/site-packages/libprs500-0.3.106-py2.5.egg
Processing dependencies for libprs500
Trying to setup udev rules...
Traceback (most recent call last):
File "/usr/local/bin//libprs500_postinstall", line 8, in <module>
load_entry_point('libprs500==0.3.106', 'console_scripts', 'libprs500_postinstall')()
File "build/bdist.linux-i686/egg/libprs500/linux.py", line 192, in post_install
File "build/bdist.linux-i686/egg/libprs500/linux.py", line 172, in setup_udev_rules
IOError: [Errno 2] No such file or directory: '/etc/udev/rules.d/95-libprs500.rules'



And if I just try to run libprs500 despite the error I get:


root@oom9:/usr/local/bin>libprs500
Traceback (most recent call last):
File ".//libprs500", line 8, in <module>
load_entry_point('libprs500==0.3.106', 'gui_scripts', 'libprs500')()
File "build/bdist.freebsd-5.5-STABLE-i386/egg/pkg_resources.py", line 236, in load_entry_point
File "build/bdist.freebsd-5.5-STABLE-i386/egg/pkg_resources.py", line 2097, in load_entry_point
File "build/bdist.freebsd-5.5-STABLE-i386/egg/pkg_resources.py", line 1830, in load
File "build/bdist.linux-i686/egg/libprs500/gui/main.py", line 21, in <module>
ImportError: No module named QtGui
root@oom9:/usr/local/bin>

kovidgoyal
09-03-2007, 06:36 AM
You can ignore the installation error. The error you get while running it is because you haven't installed PyQt

europas_ice
09-03-2007, 06:41 AM
Okay, I'm working on that now. I'll let you know how it goes. Thanks.

simond
09-03-2007, 10:59 AM
I keep meaning to put it into a freebsd port, just haven't had time yet (I maintain a few others so it shouldn't be too hard!)

europas_ice
09-03-2007, 04:00 PM
Now I get this error:

root@oom9:/root>libprs500
Traceback (most recent call last):
File "/usr/local/bin//libprs500", line 8, in <module>
load_entry_point('libprs500==0.3.106', 'gui_scripts', 'libprs500')()
File "build/bdist.freebsd-5.5-STABLE-i386/egg/pkg_resources.py", line 236, in load_entry_point
File "build/bdist.freebsd-5.5-STABLE-i386/egg/pkg_resources.py", line 2097, in load_entry_point
File "build/bdist.freebsd-5.5-STABLE-i386/egg/pkg_resources.py", line 1830, in load
File "build/bdist.linux-i686/egg/libprs500/gui/main.py", line 23, in <module>
ImportError: No module named Qt
root@oom9:/root>

europas_ice
09-03-2007, 04:01 PM
I keep meaning to put it into a freebsd port, just haven't had time yet (I maintain a few others so it shouldn't be too hard!)

A freebsd port would be GREAT!:2thumbsup

kovidgoyal
09-03-2007, 04:02 PM
That error message also indicates an incomplete install of PyQt.

europas_ice
09-03-2007, 04:33 PM
simond, would you happen to have a list of the freebsd ports I need installed to get this to run? Maybe I'm installing the wrong ones. So many have "py" and "qt" in the names. I've tried installing the more basic looking ones, but it's clearly not working. I've got:

py25-clientform-0.2.7 Client-side HTTP Form for Python
py25-game-1.7.1_2 A module designed to write games in Python
py25-mechanize-0.1.6.b Stateful programmatic web browsing in Python
py25-numeric-24.2 The Numeric Extension to Python
py25-qt4-core-4.2_1 Python bindings for the Qt4 toolkit, QtCore module
py25-qt4-gui-4.2_1 Python bindings for the Qt4 toolkit, QtGui module
py25-qt4-qscintilla2-20070410_1 Python bindings for QScintilla2 (PyQt4), QSci module
py25-setuptools-0.6c5 Download, build, install, upgrade, and uninstall Python pac
py25-sip-4.6,1 Python to C and C++ bindings generator
python-2.5,2 The "meta-port" for the default version of Python interpret
python24-2.4.4_1 An interpreted object-oriented programming language
python25-2.5.1 An interpreted object-oriented programming language
qca-tls-1.0_2 SSL/TLS plugin for Qt
qmake-3.3.8_1 The build utility of the Qt project
qscintilla2-20070410_1 Qt4 port of the Scintilla C++ editor class
qt-copy-3.3.8_5 Multiplatform C++ application framework (+ KDE patches)
qt4-corelib-4.3.1 Qt core library
qt4-gui-4.3.1 Qt graphical user interface library
qt4-iconengines-4.3.1 Qt SVG icon engine plugin
qt4-imageformats-4.3.1 Qt imageformat plugins for GIF, JPEG, MNG and SVG
qt4-moc-4.3.1 Qt meta object compiler
qt4-qmake-4.3.1 The build utility of the Qt project
qt4-rcc-4.3.1 Qt resource compiler
qt4-svg-4.3.1 Qt SVG library
qt4-uic-4.3.1 Qt user interface compiler
qt4-xml-4.3.1 Qt XML library

simond
09-07-2007, 05:38 AM
That's part of the problem, I've not had a chance to even get it working yet, I have the drawback of a 3 month old son who takes most of my non work time :)