Fedora Linux Support Community & Resources Center
  #1  
Old 15th May 2012, 10:19 PM
Farsight Offline
Registered User
 
Join Date: May 2012
Location: United Kingdom
Posts: 12
linuxfirefox
mmass 5.0.1 and python 2.7.3-1.fc16

Hi folks,

Having installed the "mmass" mass spectrometry software via the mmass repo (available here), I am now trying to launch the software. Unfortunately, I am currently greeted by the following message: "A problem in the python-2.7.3-1 package was detected".

I have performed software updates and believe I am running the most up-to-date stable python release (2.7.3-1.fc16).

Is there a way by which I can perhaps repair or reinstall python so that this software can work?

Note: I've downloaded and installed the same software using Ubuntu 12.04 without issue, so I guess it's something to do with my Fedora installation as opposed to mmass itself.

All the best,
Farsight.
__________________
Currently running: Dual boot Windows Vista 32 and Fedora 16 'Verne' (Kernel: Linux 3.3.5-2.fc16.i686; Gnome 3.2.1)
Reply With Quote
  #2  
Old 16th May 2012, 03:57 AM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,964
linuxfedorafirefox
Re: mmass 5.0.1 and python 2.7.3-1.fc16

I think you'd get better advice about this if you ask in the programming section of the forum.

I'm not a python expert, but since there is a PDF on the web called "Python Package Management Sucks", the thought occurs that your problem might have to do with the files and enviromental variables that define where Python looks for modules. Section 6.1.2 and 6.4 of http://docs.python.org/tutorial/modules.html describe this.

From the remark in section 6.1.2 that PYTHONPATH "has the same syntax" as the shell variable PATH, I wonder if you can use the command line command:
Code:
echo $PYTHONPATH
to see the value of this path. You could compare it on Ubuntu vs Fedora.

That' s just an uneducated guess.

Have you tried running some simple Python program other than mmass?
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #3  
Old 16th May 2012, 09:29 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 2,078
linuxfirefox
Re: mmass 5.0.1 and python 2.7.3-1.fc16

Try

Code:
yum install python3-numpy
Reply With Quote
  #4  
Old 16th May 2012, 11:14 PM
Farsight Offline
Registered User
 
Join Date: May 2012
Location: United Kingdom
Posts: 12
linuxfirefox
Re: mmass 5.0.1 and python 2.7.3-1.fc16

Hi folks,

I've tried both options and had no success. In Ubuntu 12.04 and Fedora 16, the command echo $PYTHONPATH just returns a blank line. I've yet to try a simple python application - I'm not really sure what would be a suitable application to use for testing. Any recommendations?

Having installed the python3-numpy package, nothing changes with regards to loading mmass.

Fingers crossed there are alternative options out there for me Thank you both for your suggestions so far.

All the best,
Farsight.
__________________
Currently running: Dual boot Windows Vista 32 and Fedora 16 'Verne' (Kernel: Linux 3.3.5-2.fc16.i686; Gnome 3.2.1)
Reply With Quote
  #5  
Old 17th May 2012, 12:54 AM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 6,190
linuxchrome
Re: mmass 5.0.1 and python 2.7.3-1.fc16

Not that I intend to utilize the mmass software, but to see if I could duplicate your problem, I downloaded the mmass repo file, cat'd it's contents and pasted the repo url into a new browser tab, then did a download of mmass-5.0.1-1.3.x86_64.rpm in the broswer. I installed it using yum, which brought in these dependencies:
Code:
Downloading Packages:
(1/8): numpy-1.6.1-2.fc16.x86_64.rpm
(2/8): python-nose-1.1.2-1.fc16.noarch.rpm
(3/8): python-setuptools-0.6.24-1.fc16.noarch.rpm
(4/8): wxBase-2.8.12-1.fc16.x86_64.rpm
(5/8): wxGTK-2.8.12-1.fc16.x86_64.rpm
(6/8): wxGTK-gl-2.8.12-1.fc16.x86_64.rpm
(7/8): wxGTK-media-2.8.12-1.fc16.x86_64.rpm
(8/8): wxPython-2.8.12.0-1.fc16.x86_64.rpm
I ran "mmass" from both the command line and from the menu. It loaded and ran without issue. If you launch mmass from the command line, does it give you any more verbose error message other than just "A problem in the python-2.7.3-1 package was detected"?, which isn't very informative.

As for reinstalling python...
Code:
yum reinstall python python-libs

Last edited by PabloTwo; 17th May 2012 at 01:06 AM.
Reply With Quote
  #6  
Old 17th May 2012, 06:32 AM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,964
linuxopera
Re: mmass 5.0.1 and python 2.7.3-1.fc16

Quote:
Originally Posted by Farsight View Post
I'm not really sure what would be a suitable application to use for testing. Any recommendations?
Try the Hello World program in python.
http://python.about.com/od/gettingst...oworld_all.htm
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #7  
Old 17th May 2012, 07:07 AM
aleph Offline
Banned (for/from) behaving just like everybody else!
 
Join Date: Jul 2007
Location: Nanjing, China
Posts: 1,332
linuxfirefox
Re: mmass 5.0.1 and python 2.7.3-1.fc16

Can't reproduce. Doubting whether this is related to the Python path configuration.

Since we're at it, the proper way to test the Python path at runtime is to inspect sys.path.
And this package seem to do a very unconventional install. It put its own library and executables under /usr/share which is a highly discouraged thing. Not that I'm saying this is the cause of the problem. Just FYI.
__________________
Code:
from rlyeh import cthulhu
cthulhu.fhtagn()
Reply With Quote
  #8  
Old 17th May 2012, 07:14 AM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,068
linuxfirefox
Re: mmass 5.0.1 and python 2.7.3-1.fc16

I downloaded the mmass rpm file and installed it just fine with:
Quote:
yum install mmass-5.0.1-1.3.x86_64.rpm
and ran it:
Quote:
mmass
mmass --> runs /usr/bin/mmass

which is a plain shell script that actually calls to "python /usr/share/mmass/mmass.py"

I ran it with the shell script and it worked ok.

I suspect you're just missing one of the dependencies that were listed in post 5. Note that the
mmass package has a doc directory that contains a pdf file /usr/share/doc/mmass-5.0.1/User Guide.pdf
you should look in it in sections 4.3 and 4.4, there's a C compile step but it seems all it does is make it
faster but there might be a hint in there.

Last edited by marko; 17th May 2012 at 07:18 AM.
Reply With Quote
  #9  
Old 17th May 2012, 04:52 PM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,964
linuxopera
Re: mmass 5.0.1 and python 2.7.3-1.fc16

Quote:
Originally Posted by aleph View Post
the proper way to test the Python path at runtime is to inspect sys.path.
Just to make sure we know how to do that, do we do it by starting the python interpeter with the command
Code:
python
and then use the commands (which I found on http://stackoverflow.com/questions/8...sys-path-value)

Code:
import sys
from pprint import pprint as p
p(sys.path)
?

And I gather that sys.path can be modified by Python application, so to do a valid test of mmass's sys.path, you'd have to run these commands (somehow) in the interpreter that is running mmass. Is that correct?

(I agrree that Farsight's problem doesn't seem to be with Python paths, but it is interesting to know how to check them.)
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #10  
Old 17th May 2012, 05:31 PM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,068
linuxfirefox
Re: mmass 5.0.1 and python 2.7.3-1.fc16

What I found kind of odd is that I did a find of all the python code I could think of that the mmass could be using and then grepped it for the string "was detected" which was shown in the error message. I could find the error string nowhere in any *.py files in python, python-libs, wxPython, or mmass packages


Then I tried looking in the .so libraries of the same packages via the strings command:

strings /usr/bin/python2.7 | grep -i "detected"
strings /usr/share/mmass/mspy/calculations.so | grep "detected"

find /usr/lib64/python2.7/lib-dynload/ -type f -name '*.so" -exec grep -li "was detected" {} \; -print

then I used strings against the files reported by the find command above, still nothing matches the error message. So I'm not sure where it comes from.
Reply With Quote
  #11  
Old 17th May 2012, 07:43 PM
Farsight Offline
Registered User
 
Join Date: May 2012
Location: United Kingdom
Posts: 12
linuxfirefox
Re: mmass 5.0.1 and python 2.7.3-1.fc16

Ok folks, so I'm now home and able to have another go at working this problem out.

Firstly, thank you to Tashirosgt for the python application recommendation.

I've checked each and every one of the listed dependencies (I just did yum install 'dependency name'). All were installed. The difference in my system is that I am using the i386 system as opposed to the x64. Given that both Pablo and Marko have the x64 version of mmass working fine, maybe its something particular to i386 system environment?

Regarding the sys.path recommendation, I have to admit I am clueless about how I progress. My terminal knowledge is in its infancy. Perhaps someone could share the necessary commands I'll be needing? If what Tashirosgt has put is correct, my output is as follows:

Quote:
>>> from pprint import pprint as p
>>> p(sys.path)
['',
'/usr/lib/python27.zip',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/lib/python2.7/site-packages',
'/usr/lib/python2.7/site-packages/PIL',
'/usr/lib/python2.7/site-packages/gst-0.10',
'/usr/lib/python2.7/site-packages/gtk-2.0',
'/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info',
'/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode']


---------- Post added at 07:43 PM ---------- Previous post was at 07:15 PM ----------

Here is a link to the error message I receive:
[IMG=http://img444.imageshack.us/img444/9893/mmassandpythonerrorfedo.png][/IMG]

Uploaded with ImageShack.us
__________________
Currently running: Dual boot Windows Vista 32 and Fedora 16 'Verne' (Kernel: Linux 3.3.5-2.fc16.i686; Gnome 3.2.1)

Last edited by Farsight; 17th May 2012 at 07:46 PM.
Reply With Quote
  #12  
Old 18th May 2012, 03:11 AM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,964
linuxfedorafirefox
Re: mmass 5.0.1 and python 2.7.3-1.fc16

I think the error message is from this software:https://fedoraproject.org/wiki/Features/CrashCatcher We'll have to think about how to use that fact.
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #13  
Old 18th May 2012, 10:55 AM
aleph Offline
Banned (for/from) behaving just like everybody else!
 
Join Date: Jul 2007
Location: Nanjing, China
Posts: 1,332
linuxfirefox
Re: mmass 5.0.1 and python 2.7.3-1.fc16

It's quite amusing that the process got killed by SIGILL, illegal instruction. This could be a problem when the package compiled the binary dynamical shared object files.
__________________
Code:
from rlyeh import cthulhu
cthulhu.fhtagn()

Last edited by aleph; 18th May 2012 at 10:58 AM.
Reply With Quote
  #14  
Old 18th May 2012, 04:36 PM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,964
linuxopera
Re: mmass 5.0.1 and python 2.7.3-1.fc16

Simple things to try:

Note the time of day, recreate the error and then look in /var/log/messages and see if there is more information about it.

Try using some options on the the python command that may print out more info. Just from glancing at man python on my FC 12 machine, my guess is to run the program by

Code:
python -d -v /usr/share/mmass/mmass.py
Did you run "Hello World" yet?


I gather what's happening is that the python interprer attempts to do something that the kernel detects as improper, so the kernel sends the process a "signal" and kills it. If you can run "Hello World" and various other Python programs, it isn't the intepreter per se that is the problem.


In most computer languages, there are ways of writing relatively simple code to "handle signals". Such code can print out the a list of the the functions that were being used when the error occurred. If you're running the program from the command line, you would see such printout. Perhaps a Python programmer could put such code into mmass.py or perhaps if you contact the author of the program, he would do this. I speculate that it would be a useful feature, but I'm not sure of the technical details.

I'd think that the Python interpreter would have some capability to catch signals
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #15  
Old 18th May 2012, 05:50 PM
aleph Offline
Banned (for/from) behaving just like everybody else!
 
Join Date: Jul 2007
Location: Nanjing, China
Posts: 1,332
linuxfirefox
Re: mmass 5.0.1 and python 2.7.3-1.fc16

Quote:
Originally Posted by tashirosgt View Post

I gather what's happening is that the python interprer attempts to do something that the kernel detects as improper, so the kernel sends the process a "signal" and kills it. If you can run "Hello World" and various other Python programs, it isn't the intepreter per se that is the problem.
Not necessarily the Python interpreter. ABRT caught it as "python" because that's what the argv[0] of the mmass process says. It could be the mmass DSOs loaded at run-time that triggered the problem.
__________________
Code:
from rlyeh import cthulhu
cthulhu.fhtagn()
Reply With Quote
Reply

Tags
1fc16, mmass, python

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Missing kernel release for kmod-nvidia-3.2.6-3.fc16.x86_64-290.10-1.fc16.14.x86_64 d4v1dv00 Using Fedora 2 16th February 2012 01:12 AM
Error With Python / Python-Twisted-Web HMSS013 Using Fedora 6 11th November 2010 04:07 AM
Python, IDLE, Python-tools Gnome. Deonis Using Fedora 2 12th March 2009 03:44 AM
Processing Conflict: python-devel conflicts python< 2.3.4-13.1 guarriman Using Fedora 0 15th September 2005 05:53 PM


Current GMT-time: 06:58 (Saturday, 01-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Kartuzy - Clearwater Instagram Photos - East Hill-Meridian Instagram Photos