Hi, modellers,
I installed both "python-matplotlib" and "gnuplot" on my Fedora 13. My system have three versions of python:
python2.6: /usr/lib/python2.6/
python2.3: /usr/local/lib/python2.3
python2.7 /usr/local/lib/python2.7
matplotlib is under python2.6 /usr/lib/python2.6/site-packages/matplotlib
#################### the command "mod9.9 plot_profile.py" gives the following error:
Traceback (most recent call last): File "plot_profiles.py", line 1, in ? import pylab ImportError: No module named pylab ##################### the command 'gnuplot "TvLDH.profile" using 1:42 with lines' gives this error:
1 MET 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 -0.29E-01 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 -0.29E-01 ^ "TvLDH.profile", line 8: invalid command
################## these are python executables:
[root@localhost bin]# ls -l /usr/local/bin/python* -rwxr-xr-x. 2 root root 4621643 Jul 7 2011 /usr/local/bin/python -rwxr-xr-x. 1 root root 3122405 Oct 27 2010 /usr/local/bin/python2.3 -rwxr-xr-x. 2 root root 4621643 Jul 7 2011 /usr/local/bin/python2.7 -rwxr-xr-x. 1 root root 1624 Jul 7 2011 /usr/local/bin/python2.7-config lrwxrwxrwx. 1 root root 16 Jul 7 2011 /usr/local/bin/python-config -> python2.7-config
[root@localhost bin]# ls -l /usr/bin/python* -rwxr-xr-x. 2 root root 6088 Jun 4 2010 /usr/bin/python lrwxrwxrwx. 1 root root 6 Sep 28 2010 /usr/bin/python2 -> python -rwxr-xr-x. 2 root root 6088 Jun 4 2010 /usr/bin/python2.6 -rwxr-xr-x. 1 root root 1418 Jun 4 2010 /usr/bin/python2.6-config lrwxrwxrwx. 1 root root 16 Sep 28 2010 /usr/bin/python-config -> python2.6-config
How to fix my system to make the gnuplot and matplotlib work?
Thank you.
XP
On 02/17/2012 12:03 PM, Xiao-Ping Zhang wrote: > I installed both "python-matplotlib" and "gnuplot" on my Fedora 13. My > system have three versions of python: ... > the command "mod9.9 plot_profile.py" gives the following error:
See http://salilab.org/modeller/release.html#issues
In short, don't run "mod9.9 plot_profile.py". Run "python plot_profile.py".
Ben Webb, Modeller Caretaker
Dear Ben,
This error came with: "python plot_profiles.py"
Traceback (most recent call last): File "plot_profiles.py", line 2, in <module> import modeller ImportError: No module named modeller
Do you have a clue about gnuplot error?
Thank you.
Xiao-Ping
On Fri, 2012-02-17 at 12:28 -0800, Modeller Caretaker wrote: > On 02/17/2012 12:03 PM, Xiao-Ping Zhang wrote: > > I installed both "python-matplotlib" and "gnuplot" on my Fedora 13. My > > system have three versions of python: > ... > > the command "mod9.9 plot_profile.py" gives the following error: > > See http://salilab.org/modeller/release.html#issues > > In short, don't run "mod9.9 plot_profile.py". Run "python plot_profile.py". > > Ben Webb, Modeller Caretaker
On 2/17/12 1:24 PM, Xiao-Ping Zhang wrote: > This error came with: "python plot_profiles.py" > > Traceback (most recent call last): > File "plot_profiles.py", line 2, in<module> > import modeller > ImportError: No module named modeller
You need to modify your Python path so that it can find the Modeller module. If you used the .tar.gz installer, instructions on how to do this were printed when you ran the install script. If you're using the RPM, Modeller is already in the default search path for standard versions of Python (i.e. included with Fedora); if you're using a non-standard version of Python, you'll need to set PYTHONPATH or link the Modeller modules into your search path.
Ben Webb, Modeller Caretaker
participants (2)
-
Modeller Caretaker
-
Xiao-Ping Zhang