View Single Post
Old 12-15-2007, 03:55 PM   #1
mauibay
Member
mauibay began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Dec 2007
Device: prs-505
libprs500 on openSuse 10.3?

Aloha,

Where is an appropriate place to ask for help to install libprs500 on linux? I installed prerequisites, and the easy-install process completes, but the postinstall script fails as does running the installed commands:

Code:
# easy_install-2.5 -U TTFQuery libprs500
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
Downloading http://downloads.sourceforge.net/ttfquery/TTFQuery-1.0.0.zip?modtime=1079827200&big_mirror=0
Processing TTFQuery-1.0.0.zip
Running TTFQuery-1.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-76AaPS/TTFQuery-1.0.0/egg-dist-tmp-r2u_V-
warning: no previously-included files matching '*CVS*' found anywhere in distribution
warning: no previously-included files matching '*Cvs*' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.ttf' found anywhere in distribution
warning: no previously-included files matching '*.cache' found anywhere in distribution
warning: no previously-included files matching '*.bat' found anywhere in distribution
zip_safe flag not set; analyzing archive contents...
ttfquery._scriptregistry: module references __file__
Adding TTFQuery 1.0.0 to easy-install.pth file

Installed /usr/local/lib64/python2.5/site-packages/TTFQuery-1.0.0-py2.5.egg
Processing dependencies for TTFQuery
Finished 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.4.30
Best match: libprs500 0.4.30
Downloading http://pypi.python.org/packages/2.5/l/libprs500/libprs500-0.4.30-py2.5.egg#md5=3bef7a4eb26f470d308cecad930dcf45
Processing libprs500-0.4.30-py2.5.egg
Moving libprs500-0.4.30-py2.5.egg to /usr/local/lib64/python2.5/site-packages
Adding libprs500 0.4.30 to easy-install.pth file
Installing lrf-meta script to /usr/local/bin
Installing lit-meta 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 isbndb script to /usr/local/bin
Installing any2lrf script to /usr/local/bin
Installing pdf2lrf script to /usr/local/bin
Installing lrf2lrs script to /usr/local/bin
Installing web2disk script to /usr/local/bin
Installing html2lrf script to /usr/local/bin
Installing markdown-libprs500 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 lrfviewer script to /usr/local/bin
Installing libprs500 script to /usr/local/bin

Installed /usr/local/lib64/python2.5/site-packages/libprs500-0.4.30-py2.5.egg
Processing dependencies for libprs500
Finished processing dependencies for libprs500

# libprs500_postinstall
Traceback (most recent call last):
  File "/usr/local/bin/libprs500_postinstall", line 8, in <module>
    load_entry_point('libprs500==0.4.30', 'console_scripts', 'libprs500_postinstall')()
  File "/usr/lib64/python2.5/site-packages/pkg_resources.py", line 277, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib64/python2.5/site-packages/pkg_resources.py", line 2179, in load_entry_point
    return ep.load()
  File "/usr/lib64/python2.5/site-packages/pkg_resources.py", line 1912, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build/bdist.linux-i686/egg/libprs500/linux.py", line 24, in <module>
  File "/usr/lib64/python2.5/site-packages/PIL/__init__.py", line 20, in devices

  File "build/bdist.linux-i686/egg/libprs500/devices/prs500/driver.py", line 56, in <module>
  File "build/bdist.linux-i686/egg/libprs500/devices/libusb.py", line 19, in <module>
  File "/usr/lib64/python2.5/site-packages/ctypes/__init__.py", line 20, in <module>
    raise Exception, ("Version number mismatch", __version__, _ctypes_version)
Exception: ('Version number mismatch', '1.0.1', '1.0.2')
I'm very familiar with linux in general, but not so much with python setuptools. It appears that there's a problem with the ctypes version, but I'm not sure which version is which or what should be done to correct it.

Running any of the installed commands results in the same error:

Code:
# libprs500
Traceback (most recent call last):
  File "/usr/local/bin/any2lrf", line 8, in <module>
    load_entry_point('libprs500==0.4.30', 'console_scripts', 'any2lrf')()
  File "/usr/lib64/python2.5/site-packages/pkg_resources.py", line 277, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib64/python2.5/site-packages/pkg_resources.py", line 2179, in load_entry_point
    return ep.load()
  File "/usr/lib64/python2.5/site-packages/pkg_resources.py", line 1912, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build/bdist.linux-i686/egg/libprs500/ebooks/lrf/any/convert_from.py", line 24, in <module>
  File "build/bdist.linux-i686/egg/libprs500/ebooks/lrf/rtf/convert_from.py", line 22, in <module>
  File "build/bdist.linux-i686/egg/libprs500/libwand.py", line 15, in <module>
  File "/usr/lib64/python2.5/site-packages/ctypes/__init__.py", line 20, in <module>
    raise Exception, ("Version number mismatch", __version__, _ctypes_version)
Exception: ('Version number mismatch', '1.0.1', '1.0.2')
Any helpful advice or a link to an appropriate forum/list would be very welcome!
mauibay is offline   Reply With Quote