-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ImportError when use macs2 #3
Comments
Can you try to remove the old installation and the whole 'build' subdirectory in the source code directory, also all the .c files: $ find MACS2/ -name '*.c' -delete |
I've deleted all the .c file ,the 'build' subdirectory and the old installationand,then run the setup.py again. root@BioServer3:/mnt/Storage/home/sunhf/software_packages/taoliu-MACS-5085ee9# python setup.py install Error converting Pyrex file to C:... ^/mnt/Storage/home/sunhf/software_packages/taoliu-MACS-5085ee9/MACS2/cProb.pxd:1:0: 'cpython.pxd' not found Error converting Pyrex file to C: building 'MACS2.cProb' extension |
Cython (>=0.14.1) is required to run MACS v2. Can you check the version in your system? |
I see~ I install cython by apt-get, which is not the newest version. |
I also have a problem similarly.< ImportError: No module named MACS2.Constants . > how can I solve it ? |
I use python setup.py install on a Ubuntu server.
However, when I run "macs2" in terminal.
It shows like this:
Traceback (most recent call last):
File "/usr/local/bin/macs2", line 35, in
from MACS2.OptValidator import opt_validate
File "/usr/local/lib/python2.6/dist-packages/MACS2/OptValidator.py", line 26, in
from MACS2.IO.cParser import BEDParser, ELANDResultParser, ELANDMultiParser, ELANDExportParser, SAMParser, BAMParser, BowtieParser, guess_parser
ImportError: /usr/local/lib/python2.6/dist-packages/MACS2/IO/cParser.so: undefined symbol: PyUnicodeUCS2_DecodeUTF8
I've installed numpy and cython in this server, but when I get into the directory of /usr/local/lib/python2.6/dist-packages/MACS2/IO. I found cFeatIO.so was not there. I get a copy from other server and put it here. But It didn't work.
The text was updated successfully, but these errors were encountered: