-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python.h not found during installation #4
Comments
Hey jmondal1, you need to install python-dev package prior to installing pmx. Vytas |
Dear Vytas Thanks for your note. After installing python-dev, the setup.py installation script worked out fine. It created a new folder called pmx in the installation directory called pmx where bunch of python programs are present. On the other hand, it also created some new files in /usr/local/lib/python2.7/dist-packages/pmx ls pmx atom.py chain.pyc forcefield2.pyc histogram.py model.pyc odict.py rotamer.py xtc.py My question is : why it is having problems in importerror: no module named pmx. I have put both /usr/local/lib/python2.7/dist-packages/pmx in my bash_profile. On Jun 5, 2016, at 12:03 AM, vgapsys [email protected] wrote:
|
Is /usr/local/lib/python2.7/dist-packages present in your PYTHONPATH? |
Hi On Mon, Jun 6, 2016 at 3:58 PM, vgapsys [email protected] wrote:
|
pmx currently does not support mutations of the terminal residues. If you want to mutate a terminal residue, you will have to add a capping group to the protein: ACE for N-term and/or NME for C-term according to the amber ff naming, in charmm C-term cap is named CT3, in opls C-term is NAC. This way the first/last amino acid technically will not be terminal residue anymore and the mutation should work. |
Hi
when issuing sudo python setup.py install command, I am facing following error that python.h is not found. Any help will be appreciated.
[sudo] password for jmondal:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/pmx
copying pmx/rotamer.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/mutdb.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/histogram.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/forcefield.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/options.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/ffparser.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/model.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/geometry.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/futil.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/cpp.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/library.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/xdrfile.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/atomselection.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/init.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/ndx.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/chain.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/builder.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/molecule.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/forcefield2.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/odict.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/tCNC.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/parser.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/atom.py -> build/lib.linux-x86_64-2.7/pmx
copying pmx/xtc.py -> build/lib.linux-x86_64-2.7/pmx
running build_ext
building 'pmx/_pmx' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/pmx
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Isrc/pmx -I/usr/include/python2.7 -c src/pmx/Geometry.c -o build/temp.linux-x86_64-2.7/src/pmx/Geometry.o
In file included from src/pmx/Geometry.h:32:0,
from src/pmx/Geometry.c:31:
src/pmx/pmx.h:32:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
The text was updated successfully, but these errors were encountered: