Mobileread
libprs500 Version: 0.4.43 dies and does not detect reader under OSX
#1  mimoviz 03-22-2008, 12:24 AM
First of all: I USED to be a windows user and as such I have been using libpsr505 almost since its inception. Nevertheless, I migrated a couple of months ago and I find it impossible to run under osx. It works well with the creation and conversion functions but, as of detection of the device it just dont work at all. Besides that when one tries to run it when the device is connected it just dies horribly.
When calling it from the terminal window is says:

Rhea:/Users/mimoviz root# libprs500
Traceback (most recent call last):
File "/Applications/Utilities/libprs500.app/Contents/Resources/libprs500.py", line 8, in <module>
from libprs500.gui2.main import main
File "/Applications/Utilities/libprs500.app/Contents/Resources/libprs500.py", line 8, in <module>
from libprs500.gui2.main import main
ImportError: No module named gui2.main

ANy help in this matter will be appreciated. I cannot access any windows machine from my house or office. Thanks... keep up the great work.

this is the console dump:
Mac OS X Versión 10.4.11 (Fase 8S2167)
2008-03-21 23:11:28 -0430
2008-03-21 23:11:28.812 loginwindow[88] FSResolveAliasWithMountFlags returned err = -43
Mar 21 23:11:28 Rhea mDNSResponder: getifaddrs ifa_netmask for vmnet8(8) Flags 8863 Family 2 192.168.242.1 has different family: 0
Mar 21 23:11:28 Rhea mDNSResponder: getifaddrs ifa_netmask for vmnet1(9) Flags 8863 Family 2 192.168.93.1 has different family: 0
2008-03-21 23:11:15.635 SystemUIServer[159]
MenuCracker
see http://sourceforge.net/projects/menucracker
MenuCracker is now loaded. Ready to accept new menus. Ignore the failure message that follow.
2008-03-21 23:11:15.664 SystemUIServer[159] failed to load Menu Extra: NSBundle </Users/mimoviz/Library/Application Support/iStat menus/Extras/MenuCracker.menu> (loaded)
2008-03-21 23:11:17.755 SystemUIServer[159] MenuCracker: Loading 'iStatMenusCPU'.
2008-03-21 23:11:17.881 SystemUIServer[159] MenuCracker: Loading 'iStatMenusDateAndTimes'.
2008-03-21 23:11:18.025 SystemUIServer[159] MenuCracker: Loading 'iStatMenusDisks'.
2008-03-21 23:11:18.099 SystemUIServer[159] MenuCracker: Loading 'iStatMenusTemps'.
Mar 21 23:12:39 Rhea diskarbitrationd[39]: unable to mount /dev/disk1 (status code 0x00000047).
Unable to open device
Traceback (most recent call last):
File "libprs500/gui2/device.pyo", line 53, in run
File "libprs500/devices/prs505/driver.pyo", line 239, in open
File "libprs500/devices/prs505/driver.pyo", line 124, in open_osx
DeviceError: Unable to find PRS505. Is it connected?
Unable to open device
Traceback (most recent call last):
File "libprs500/gui2/device.pyo", line 53, in run
File "libprs500/devices/prs505/driver.pyo", line 239, in open
File "libprs500/devices/prs505/driver.pyo", line 124, in open_osx
DeviceError: Unable to find PRS505. Is it connected?
LyXComm: Pipe /Users/mimoviz/Library/Application Support/LyX-1.5/.lyxpipe.in already exists.
If no other LyX program is active, please delete the pipe by hand and try again.
Menu warning: menu entries "Cerrar ventana|t" and "Guardar todo|t" share the same shortcut.
Menu warning: menu entries "Ecuaciones|E" and "Características extendidas|e" share the same shortcut.
2008-03-21 23:34:00.736 FinkCommander[354] Checking for FinkCommander update
Mar 21 23:38:42 Rhea su: mimoviz to root on /dev/ttyp1
Traceback (most recent call last):
File "/Applications/Utilities/libprs500.app/Contents/Resources/__boot__.py", line 208, in <module>
_run('main.py')
File "/Applications/Utilities/libprs500.app/Contents/Resources/__boot__.py", line 135, in _run
execfile(path, globals(), globals())
File "/Applications/Utilities/libprs500.app/Contents/Resources/main.py", line 23, in <module>
from libprs500 import __version__, __appname__, islinux, sanitize_file_name, launch, Settings
File "/Applications/Utilities/libprs500.app/Contents/Resources/libprs500.py", line 8, in <module>
ImportError: No module named gui2.main
2008-03-21 23:43:54.999 libprs500[758] libprs500 Error
2008-03-21 23:43:55.000 libprs500[758] libprs500 Error
An unexpected error has occurred during execution of the main script

ImportError: No module named gui2.main
Traceback (most recent call last):
File "/Applications/Utilities/libprs500.app/Contents/Resources/__boot__.py", line 208, in <module>
_run('main.py')
File "/Applications/Utilities/libprs500.app/Contents/Resources/__boot__.py", line 135, in _run
execfile(path, globals(), globals())
File "/Applications/Utilities/libprs500.app/Contents/Resources/main.py", line 23, in <module>
from libprs500 import __version__, __appname__, islinux, sanitize_file_name, launch, Settings
File "/Applications/Utilities/libprs500.app/Contents/Resources/libprs500.py", line 8, in <module>
ImportError: No module named gui2.main
2008-03-21 23:49:28.052 libprs500[762] libprs500 Error
2008-03-21 23:49:28.053 libprs500[762] libprs500 Error
An unexpected error has occurred during execution of the main script

ImportError: No module named gui2.main
Traceback (most recent call last):
File "/Applications/Utilities/libprs500.app/Contents/Resources/__boot__.py", line 208, in <module>
_run('main.py')
File "/Applications/Utilities/libprs500.app/Contents/Resources/__boot__.py", line 135, in _run
execfile(path, globals(), globals())
File "/Applications/Utilities/libprs500.app/Contents/Resources/main.py", line 23, in <module>
from libprs500 import __version__, __appname__, islinux, sanitize_file_name, launch, Settings
File "/Applications/Utilities/libprs500.app/Contents/Resources/libprs500.py", line 8, in <module>
ImportError: No module named gui2.main
2008-03-21 23:54:42.819 libprs500[769] libprs500 Error
2008-03-21 23:54:42.820 libprs500[769] libprs500 Error
An unexpected error has occurred during execution of the main script

ImportError: No module named gui2.main
Reply 

#2  mimoviz 03-22-2008, 09:49 AM
There's some additional info that appears everytime I unplug the reader from the machine. Perhaps its useful?
'NoneType' object has no attribute 'device_removed'
Detailed traceback:
Traceback (most recent call last):
File "/Applications/libprs500.app/Contents/Resources/main.py", line 243, in device_detected
AttributeError: 'NoneType' object has no attribute 'device_removed'
Reply 

#3  Rick C 03-28-2008, 08:53 AM
I think Kovid corrected this-try the next version 0.4.44
Reply 

#4  Mitchll 03-28-2008, 06:25 PM
I've loaded libprs500 into my new macbook air without any trouble, both versions .4.44. and 45
Mitch
Reply 

Today's Posts | Search this Thread | Login | Register