Skip to content
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

Error after installing with PIP #80

Closed
bcantarel opened this issue May 20, 2015 · 4 comments
Closed

Error after installing with PIP #80

bcantarel opened this issue May 20, 2015 · 4 comments

Comments

@bcantarel
Copy link

I installed MACs with PIP after installation from source failed (for a failure to find installed NUMPY) -- now when I try to run macs2, I get the following error:

Traceback (most recent call last):
File "/usr/bin/macs2", line 559, in
main()
File "/usr/bin/macs2", line 55, in main
from MACS2.callpeak import run
File "/usr/lib/python2.7/site-packages/MACS2/callpeak.py", line 30, in
from MACS2.OptValidator import opt_validate
File "/usr/lib/python2.7/site-packages/MACS2/OptValidator.py", line 27, in
from MACS2.IO.cParser import BEDParser, ELANDResultParser, ELANDMultiParser,
File "init.pxd", line 155, in init MACS2.IO.cParser (MACS2/IO/cParser.c:22531)
File "/usr/lib/python2.7/site-packages/numpy/init.py", line 170, in
from . import add_newdocs
File "/usr/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in
from numpy.lib import add_newdoc
File "/usr/lib/python2.7/site-packages/numpy/lib/init.py", line 8, in
from .type_check import *
File "/usr/lib/python2.7/site-packages/numpy/lib/type_check.py", line 11, in
import numpy.core.numeric as _nx
File "/usr/lib/python2.7/site-packages/numpy/core/init.py", line 46, in
from numpy.testing import Tester
File "/usr/lib/python2.7/site-packages/numpy/testing/init.py", line 13, in
from .utils import *
File "/usr/lib/python2.7/site-packages/numpy/testing/utils.py", line 15, in
from tempfile import mkdtemp
File "/illumina/seqprg/anaconda/lib/python2.7/tempfile.py", line 35, in
from random import Random as _Random
File "/illumina/seqprg/anaconda/lib/python2.7/random.py", line 49, in
import hashlib as _hashlib
File "/illumina/seqprg/anaconda/lib/python2.7/hashlib.py", line 138, in
_hashlib.openssl_md_meth_names)
AttributeError: 'module' object has no attribute 'openssl_md_meth_names'

@taoliu
Copy link
Contributor

taoliu commented Jun 3, 2015

This is related to your python installation. I guess that you have two python -- one at /usr/lib and one at /illumina/seqprg/anaconda, so it caused some inconsistency.

@nbahlis
Copy link

nbahlis commented Jul 24, 2015

I am having troubles installing MACS2 on a mac OSX 10.8.4. I keep getting the same error. I have reinstalled Numpy and Cython. Any advice. here's the error I get:
$ python setup_w_cython.py install
running install
running bdist_egg
running egg_info
writing requirements to MACS2.egg-info/requires.txt
writing MACS2.egg-info/PKG-INFO
writing top-level names to MACS2.egg-info/top_level.txt
writing dependency_links to MACS2.egg-info/dependency_links.txt
reading manifest file 'MACS2.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'MANIFEST'
no previously-included directories found matching 'test'
writing manifest file 'MACS2.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.5-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.macosx-10.5-x86_64-2.7
creating build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/init.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/bdgbroadcall_cmd.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/bdgcmp_cmd.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/bdgdiff_cmd.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/bdgopt_cmd.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/bdgpeakcall_cmd.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/callpeak_cmd.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/cmbreps_cmd.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/Constants.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/diffpeak_cmd.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/filterdup_cmd.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/OptValidator.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/OutputWriter.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/pileup_cmd.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/predictd_cmd.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/randsample_cmd.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
copying MACS2/refinepeak_cmd.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2
creating build/lib.macosx-10.5-x86_64-2.7/MACS2/IO
copying MACS2/IO/init.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2/IO
copying MACS2/IO/BinKeeper.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2/IO
copying MACS2/IO/test_processing.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2/IO
copying MACS2/IO/test_threading.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2/IO
creating build/lib.macosx-10.5-x86_64-2.7/MACS2/data
copying MACS2/data/init.py -> build/lib.macosx-10.5-x86_64-2.7/MACS2/data
copying MACS2/data/g0.01.dat -> build/lib.macosx-10.5-x86_64-2.7/MACS2/data
copying MACS2/data/g0.05.dat -> build/lib.macosx-10.5-x86_64-2.7/MACS2/data
running build_ext
skipping 'MACS2/Prob.c' Cython extension (up-to-date)
building 'MACS2.Prob' extension
creating build/temp.macosx-10.5-x86_64-2.7
creating build/temp.macosx-10.5-x86_64-2.7/MACS2
/usr/bin/clang -fno-strict-aliasing -I//anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda/lib/python2.7/site-packages/numpy/core/include -I//anaconda/include/python2.7 -c MACS2/Prob.c -o build/temp.macosx-10.5-x86_64-2.7/MACS2/Prob.o -w -Ofast
error: invalid integral value 'fast' in '-Ofast'
error: invalid integral value 'fast' in '-Ofast'
error: command '/usr/bin/clang' failed with exit status 1

@skurscheid
Copy link

"clang" is missing. This is the C/C++ compiler required for compiling the C code portions of MACS2. You are almost certainly missing Xcode on your Mac. At a minimum the command line tools are required:

https://developer.apple.com/library/ios/technotes/tn2339/_index.html

Try installing the command line tools, and if that not helps the complete Xcode package.

@taoliu
Copy link
Contributor

taoliu commented Jul 30, 2015

@skurscheid Thanks for answering the question.

Now I closed this ticket. If @bcantarel still has trouble to install, feel free to comment and discuss.

@taoliu taoliu closed this as completed Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants