Priithon install problems

65 views
Skip to first unread message

dpwrussell

unread,
Jul 18, 2012, 11:39:30 AM7/18/12
to prii...@googlegroups.com
A few things really.

First, I'm assuming that Python 2.5 is a prerequisite of Priithon given that the priithon_script explicitly checks for version 2.5. So newer versions are not an option?

My platform has only 2.7+ so I downloaded Python 2.5.6 onto my Ubuntu 12.04 machine, ./configure (not that it should matter, but I specified --prefix ~/priithon-experiment/usr/local/python2.5 as the place to install), make, make install. This installs a working Python 2.5.6. I insert the bin directory at the start of my $PATH to ensure it is used (it is) and set $PYTHONPATH appropriately also.

I run into trouble when I try and run priithon_script:

dpwrussell@dpwrwrk:~/priithon-experiment/Priithon_25_lin64$ ./priithon_script
Traceback (most recent call last):
  File "/home/dpwrussell/priithon-experiment/Priithon_25_lin64/Priithon/PriShell.py", line 164, in <module>
    main(cleanup_main=cleanup_main)
  File "/home/dpwrussell/priithon-experiment/Priithon_25_lin64/Priithon/PriShell.py", line 37, in main
    import wx
  File "/home/dpwrussell/priithon-experiment/Priithon_25_lin64/Priithon/__init__.py", line 45, in <module>                                              
                                                                                                                                                        
  File "/home/shaase/Priithon_25_lin64_wx2.8.9/wx/_core.py", line 4, in <module>                                                                        
ImportError: libjpeg.so.62: cannot open shared object file: No such file or directory

What's going on here? It's looking for a library that I don't have and the error message somehow thinks that I have /home/shaase (I'm guessing that this is the original location of the source before compilation which has been retained in the binary). I can install the libjpeg62 package on my machine which gets me past this error onto a new one, but I don't think I should have to. It sounds like everything I need to run Priithon other than Python 2.5 itself is part of the download.

dpwrussell@dpwrwrk:~/priithon-experiment/Priithon_25_lin64$ echo $PATH
/home/dpwrussell/priithon-experiment/usr/local/python2.5/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 
dpwrussell@dpwrwrk:~/priithon-experiment/Priithon_25_lin64$ echo $PYTHONPATH
/home/dpwrussell/priithon-experiment/usr/local/python2.5
 
 
dpwrussell@dpwrwrk:~/priithon-experiment/Priithon_25_lin64$ which python
/home/dpwrussell/priithon-experiment/usr/local/python2.5/bin//python
 
dpwrussell@dpwrwrk:~/priithon-experiment/Priithon_25_lin64$ python --version
Python 2.5.6

 I have a similar problem on a windows machine that I have compiled my own python on as well. I need to be compile Python with debug enabled in order to solve a problem with some Priithon code which also uses a C++ library through swig.

Any clues?

Sebastian Haase

unread,
Jul 18, 2012, 2:37:44 PM7/18/12
to prii...@googlegroups.com
Hi dpwrussell,

indeed, your message was hold up by google groups for moderation.
I'm sorry that my Priithon page is getting more and more outdated ...
In fact I do have a working version based on Python 2.7
Sometimes I do have some remaining issues, but it still might be
better than the "official" 2.5 version.
Are you interested in Linux 64 bit ?
If so I could send you a temporary link.

May I ask, what you intend using Priithon for ?

Regards,
Sebastian
> --
> You received this message because you are subscribed to the Google Groups
> "Priithon" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/priithon/-/lSfIlbJ4jV8J.
> To post to this group, send email to prii...@googlegroups.com.
> To unsubscribe from this group, send email to
> priithon+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/priithon?hl=en.

dpwrussell

unread,
Jul 19, 2012, 5:13:31 AM7/19/12
to prii...@googlegroups.com
On my workstation it's 64bit Linux yes, but on the machine which I'm trying to fix (I just tried to install on my workstation to see if I had the same problem) is Windows XP. Basically we have some software from UCSF called Cockpit which uses Priithon. We also have an old version of Cockpit modified in industry which works with the cameras on our OMX V2. What we need, is to make the non-industry version of Cockpit work with the cameras on the V2. I really need to be able to attach a debugger to a daemon part of the software in order to figure out why it doesn't work, but it uses Priithon and a C++ library of it's own through SWIG. It's the link to the C++ library which is causing the problem we think, but in order to usefully debug it, I've had to compile my own Python with debug enabled.

I'm unsure if an upgrade to a 2.7 enabled Priithon would do us any good as the other components we have may crash and burn. Couldn't hurt to try if there is a Win32 version as well. We can't really change the windows part as the drivers for the camera control interface exist only for that.

Did you have any thoughts about what might be causing Priithon to fail in the way I described at all?

Thanks for the response.

Douglas

Sebastian Haase

unread,
Jul 19, 2012, 5:52:35 AM7/19/12
to prii...@googlegroups.com
Hi Douglas,

As you might know, I was (co-)developing Priithon and OMX as part of
my PhD thesis at UCSF.
In this case Python 2.7 sounds like a bad idea.
I'm sure though, that you do not need to recompile Python itself for debug mode.
You could just make sure that the modules you care about contain debug symbols.
Doesn't that software also run only on Windows ? Where do you use Linux ?
As far as I know is OMX v2 sold by API and runs (exclusively?) with
Java - not Python.
So when you got a Priithon/Python based software from UCSF, may I ask
who - if at all -
is your contact regarding that "cockpit" software ?
I also don't understand what you mean by "modified in industry" and
"need for a non-industry" version !?

Regards,
Sebastian
>> > priithon+u...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/priithon?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Priithon" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/priithon/-/0oUo3SZWek4J.
>
> To post to this group, send email to prii...@googlegroups.com.
> To unsubscribe from this group, send email to
> priithon+u...@googlegroups.com.

Douglas Russell

unread,
Jul 19, 2012, 8:25:32 AM7/19/12
to prii...@googlegroups.com
Yes, it does only run on Windows. But I was trying to get a grip on the parts of the problem by trying Priithon on my linux workstation as I'm much more familiar with doing stuff in Linux than in Windows.

I'm not sure if there is any senstivive information here, but I'll email you instead to err on the side of caution.

I'm going to get the full story about the history of the cockpit software versions etc that we have and email you shortly.

D
Reply all
Reply to author
Forward
0 new messages