python script error: ImportError: No module named pysam
1
2
Entering edit mode
6.9 years ago
jaqx008 ▴ 110

Hello all. I have been having issues on running a python script. I have tried to resolve it by uninstalling and reinstalling pysam since the error is about pysam mostly. below is the command and error i get.

$ python2.7 overlapping_reads.py 
Traceback (most recent call last):
  File "overlapping_reads.py", line 4, in <module>
    import pysam
ImportError: No module named pysam

Can someone help?also, belo is portion of my script if that helps. Thanks

import argparse
from collections import defaultdict

import pysam


def Parser():
    the_parser = argparse.ArgumentParser()
    the_parser.add_argument(
        '--input', action="store", type=str, help="bam alignment file")
    the_parser.add_argument(
        '--minquery', type=int,
        help="Minimum readsize of query reads (nt) - must be an integer")
    the_parser.add_argument(
        '--maxquery', type=int,
        help="Maximum readsize of query reads (nt) - must be an integer")
    the_parser.add_argument(
        '--mintarget', type=int,
pysam pythonscript .py overlapsignature • 38k views
ADD COMMENT
0
Entering edit mode

I added code markup to your post for increased readability. You can do this by selecting the text and clicking the 101010 button. When you compose or edit a post that button is in your toolbar, see image below:

101010 Button

ADD REPLY
0
Entering edit mode

This is most likely the case where you are using a pip command associated with a different python installation.

Please share the exact command used to install pysam. That could help decide what to do next to figure out where pysam might be getting installed.

ADD REPLY
0
Entering edit mode

this is what I used. conda install -c bioconda pysam=0.9.1

ADD REPLY
2
Entering edit mode
6.9 years ago

I have tried to resolve it by uninstalling and reinstalling pysam

Make sure you install pysam for the right python version. In your case, I suggest:

python2.7 -m pip install pysam
ADD COMMENT
0
Entering edit mode
it gave the same error.

$ python2.7 -m pip install pysam
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named pip
ADD REPLY
0
Entering edit mode

That's not the same error. You need to install pip.

ADD REPLY
0
Entering edit mode

I uninstall and installed pip again.

sudo easy_install pip
Password:
Searching for pip
Reading https://pypi.python.org/simple/pip/
Downloading https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl#sha256=717cdffb2833be8409433a93746744b59505f42146e8d37de6c62b430e25d6d7
Best match: pip 10.0.1
Processing pip-10.0.1-py2.py3-none-any.whl
Installing pip-10.0.1-py2.py3-none-any.whl to /anaconda3/lib/python3.6/site-packages
writing requirements to /anaconda3/lib/python3.6/site-packages/pip-10.0.1-py3.6.egg/EGG-INFO/requires.txt
Adding pip 10.0.1 to easy-install.pth file
Installing pip script to /anaconda3/bin
Installing pip3 script to /anaconda3/bin
Installing pip3.6 script to /anaconda3/bin

Installed /anaconda3/lib/python3.6/site-packages/pip-10.0.1-py3.6.egg
Processing dependencies for pip
Finished processing dependencies for pip

python2.7 -m pip install pysam
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named pip
ADD REPLY
1
Entering edit mode

Yes you installed pip for /anaconda3/lib/Python3.6, but not for python2.7

ADD REPLY
0
Entering edit mode

I have tried all I can to install pip for python2.7. all efforts have proved abortive.

ADD REPLY
2
Entering edit mode

You can create a new conda environment with Python 2 and install pysam:

conda create -n pysam -c bioconda python=2 pysam=0.9.1

Then, activate that environment and run your script:

conda activate pysam
python2.7 overlapping_reads.py
ADD REPLY
0
Entering edit mode

I did that. and it gave this.

python2.7 overlapping_reads.py 
Traceback (most recent call last):
  File "overlapping_reads.py", line 4, in <module>
    import pysam
ImportError: No module named pysam
ADD REPLY
1
Entering edit mode

Creating a conda environment should solve your issues actually. Can you try this again and make sure you execute all commands?

conda create -n pysam -c bioconda python=2 pysam
conda activate pysam
python overlapping_reads.py
ADD REPLY
0
Entering edit mode

In addition to Wouter's suggestion of a conda environment, you may need to temporarily rename ~/.local so that packages installed via pip or pip3 aren't loaded by accident. You'll occasionally run into issues otherwise.

ADD REPLY
0
Entering edit mode

If you execute

which easy_install

you will see that your operating system first selects the easy_install from anaconda

You need to make sure that you use the easy_install from python2.7.

For that, you can do

which python2.7

and figure out the directory where the python2.7 executable is. In my case that is /usr/local/bin/python2.7. And the correct easy install would then be /usr/local/bin/easy_install

Do you really need python2.7 here?

ADD REPLY
0
Entering edit mode

for some reason, this python script works with python2.7. I don't know why. but all I want to do is execute the .py script. i do python xxx.py and it doest run because of the pysam in the script.

python2.7 overlapping_reads.py 
Traceback (most recent call last):
  File "overlapping_reads.py", line 4, in <module>
    import pysam
ImportError: No module named pysam

and i if i do

python2.7 -m pip install pysam

I get

/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named pip
ADD REPLY
0
Entering edit mode

Have you read and tried what I've written?

ADD REPLY
0
Entering edit mode

Yes.. I did tried it. but when I get to the point to execute the py script, doesn't work.

ADD REPLY
1
Entering edit mode

doesn't work

Just a minute, I'm getting my crystal ball to see the error message.

ADD REPLY
1
Entering edit mode

Ok

ADD REPLY
0
Entering edit mode

Okay, let's try again. What's the output of

which python2.7
ADD REPLY
0
Entering edit mode

/usr/bin/python2.7 /usr/bin/easy_install

$ /usr/bin/easy_install
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-71297.pth'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /Library/Python/2.7/site-packages/

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  https://pythonhosted.org/setuptools/easy_install.html

Please make the appropriate changes for your system and try again.
ADD REPLY
0
Entering edit mode

The error message makes this quite clear what is going on: you don't have permission to write in that directory and you'll need sudo for this:

sudo /usr/bin/easy_install pip

Please remember, when asking questions and getting help to be as detailed as possible. We cannot guess what is going on if you don't share all information.

ADD REPLY
0
Entering edit mode

Ok Thanks. the last command was able to install pip. But pip wasn't able to install pysam. see bellow.

$ python2.7 -m pip install pysam
Collecting pysam
  Using cached https://files.pythonhosted.org/packages/fc/9b/4bb8d016406dcff47e2866e14d3dcb10741ec3920649e8c521996830944f/pysam-0.14.1.tar.gz
matplotlib 1.3.1 requires nose, which is not installed.
matplotlib 1.3.1 requires tornado, which is not installed.
Installing collected packages: pysam
  Running setup.py install for pysam ... error
    Complete output from command /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-W6N8pp/pysam/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-record-EGbw40/install-record.txt --single-version-externally-managed --compile:
    # pysam: no cython available - using pre-compiled C
    # pysam: htslib mode is shared
    # pysam: HTSLIB_CONFIGURE_OPTIONS=None
    checking for gcc... gcc
    checking whether the C compiler works... yes

code continued..... then ended with

Command "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-W6N8pp/pysam/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-record-EGbw40/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-W6N8pp/pysam/
ADD REPLY
0
Entering edit mode

Is it possible to add the full output?

Please remember, when asking questions and getting help to be as detailed as possible. We cannot guess what is going on if you don't share all information.

ADD REPLY
0
Entering edit mode

My bad. I pasted part of it because the forum has a limited character allowed. I tried to post everything but the characters were 5X more than the allowed. again I apologize.

ADD REPLY
0
Entering edit mode

Could you use a github gist to share the error?

ADD REPLY
0
Entering edit mode

I just posted it on GitHub. Thanks

ADD REPLY
0
Entering edit mode

Great. Can you share the link?

ADD REPLY
0
Entering edit mode

Below is the link. sorry for the troubles.

$ pip install pysam
Collecting pysam
Using cached https://files.pythonhosted.org/packages/fc/9b/4bb8d016406dcff47e2866e14d3dcb10741ec3920649e8c521996830944f/pysam-0.14.1.tar.gz
Building wheels for collected packages: pysam
Running setup.py bdist_wheel for pysam ... error
Complete output from command /anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-u6tryjwo/pysam/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-wheel-44u7nejn --python-tag cp36:
# pysam: cython is available - using cythonize if necessary
# pysam: htslib mode is shared
# pysam: HTSLIB_CONFIGURE_OPTIONS=None
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for grep that handles long lines and -e... /usr/bin/grep
checking for C compiler warning flags... -Wall
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking shared library type for unknown-Darwin... Darwin dylib
checking how to run the C preprocessor... gcc -E
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... no
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... no
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) no
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for gmtime_r... yes
checking for fsync... yes
checking for drand48... yes
checking whether fdatasync is declared... no
checking for library containing log... none required
checking for zlib.h... yes
checking for inflate in -lz... yes
checking for library containing recv... none required
checking for bzlib.h... yes
checking for BZ2_bzBuffToBuffCompress in -lbz2... yes
checking for lzma.h... no
checking for lzma_easy_buffer_encode in -llzma... yes
checking for curl_easy_pause in -lcurl... yes
checking for CCHmac... yes
checking whether PTHREAD_MUTEX_RECURSIVE is declared... yes
configure: creating ./config.status
config.status: creating config.mk
config.status: creating htslib.pc.tmp
config.status: creating config.h
config.status: config.h is unchanged
# pysam: htslib configure options: --enable-libcurl
make: ./version.sh: Command not found
make: ./version.sh: Command not found
# pysam: htslib_config LDFLAGS=
# pysam: htslib_config LIBHTS_OBJS=kfunc.o knetfile.o kstring.o bcf_sr_sort.o bgzf.o errmod.o faidx.o hfile.o hfile_net.o hts.o hts_os.o md5.o multipart.o probaln.o realn.o regidx.o sam.o synced_bcf_reader.o vcf_sweep.o tbx.o textutils.o thread_pool.o vcf.o vcfutils.o cram/cram_codecs.o cram/cram_decode.o cram/cram_encode.o cram/cram_external.o cram/cram_index.o cram/cram_io.o cram/cram_samtools.o cram/cram_stats.o cram/files.o cram/mFILE.o cram/open_trace_file.o cram/pooled_alloc.o cram/rANS_static.o cram/sam_header.o cram/string_alloc.o hfile_libcurl.o hfile_gcs.o hfile_s3.o
# pysam: htslib_config LIBS=-llzma -lbz2 -lz -lcurl
# pysam: htslib_config PLATFORM=Darwin
# pysam: config_option: ENABLE_PLUGINS=0
# pysam: config_option: HAVE_COMMONCRYPTO=1
# pysam: config_option: HAVE_GMTIME_R=1
# pysam: config_option: HAVE_HMAC=0
# pysam: config_option: HAVE_IRODS=0
# pysam: config_option: HAVE_LIBCURL=1
# pysam: config_option: HAVE_MMAP=1
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/bcftools.py -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/config.py -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/Pileup.py -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/samtools.py -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/utils.py -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/version.py -> build/lib.macosx-10.7-x86_64-3.6/pysam
creating build/lib.macosx-10.7-x86_64-3.6/pysam/include
copying pysam/include/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/pysam/include
package init file 'samtools/__init__.py' not found (or not a regular file)
package init file 'bcftools/__init__.py' not found (or not a regular file)
package init file 'samtools/win32/__init__.py' not found (or not a regular file)
package init file 'htslib/__init__.py' not found (or not a regular file)
package init file 'htslib/htslib/__init__.py' not found (or not a regular file)
copying pysam/libcalignedsegment.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libcalignmentfile.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libcbcf.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libcbcftools.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libcfaidx.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libchtslib.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libcsamfile.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libcsamtools.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libctabix.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libctabixproxies.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libcutils.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libcvcf.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/cbcftools_util.h -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/csamtools_util.h -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/htslib_util.h -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/pysam_stream.h -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/pysam_util.h -> build/lib.macosx-10.7-x86_64-3.6/pysam
creating build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/bam.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/bam2bcf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/bam_endian.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/bam_lpileup.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/bam_plbuf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/bedidx.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/config.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/sam.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/sam_header.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/sam_opts.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/sample.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/samtools.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/samtools.pysam.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/stats_isize.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/tmp_file.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/version.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
creating build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/bam2bcf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/bam_sample.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/bcftools.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/bcftools.pysam.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/bin.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/call.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/config.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/convert.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/filter.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/gvcf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/hclust.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/HMM.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/khash_str2str.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/kheap.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/kmin.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/mw.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/ploidy.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/prob1.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/rbuf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/regidx.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/smpl_ilist.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/tsv2vcf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/vcfbuf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/vcmp.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/version.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
creating build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools/win32
copying samtools/win32/xcurses.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools/win32
copying samtools/win32/zconf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools/win32
copying samtools/win32/zlib.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools/win32
creating build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib
copying htslib/bcf_sr_sort.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib
copying htslib/config.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib
copying htslib/hfile_internal.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib
copying htslib/hts_internal.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib
copying htslib/textutils_internal.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib
copying htslib/thread_pool_internal.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib
copying htslib/version.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib
creating build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/bgzf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/cram.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/faidx.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/hfile.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/hts.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/hts_defs.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/hts_endian.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/hts_log.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/hts_os.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/kbitset.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/kfunc.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/khash.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/khash_str2int.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/klist.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/knetfile.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/kseq.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/ksort.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/kstring.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/regidx.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/sam.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/synced_bcf_reader.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/tbx.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/thread_pool.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/vcf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/vcf_sweep.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/vcfutils.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
Fixing build/lib.macosx-10.7-x86_64-3.6/pysam/__init__.py build/lib.macosx-10.7-x86_64-3.6/pysam/bcftools.py build/lib.macosx-10.7-x86_64-3.6/pysam/config.py build/lib.macosx-10.7-x86_64-3.6/pysam/Pileup.py build/lib.macosx-10.7-x86_64-3.6/pysam/samtools.py build/lib.macosx-10.7-x86_64-3.6/pysam/utils.py build/lib.macosx-10.7-x86_64-3.6/pysam/version.py build/lib.macosx-10.7-x86_64-3.6/pysam/include/__init__.py
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
Fixing build/lib.macosx-10.7-x86_64-3.6/pysam/__init__.py build/lib.macosx-10.7-x86_64-3.6/pysam/bcftools.py build/lib.macosx-10.7-x86_64-3.6/pysam/config.py build/lib.macosx-10.7-x86_64-3.6/pysam/Pileup.py build/lib.macosx-10.7-x86_64-3.6/pysam/samtools.py build/lib.macosx-10.7-x86_64-3.6/pysam/utils.py build/lib.macosx-10.7-x86_64-3.6/pysam/version.py build/lib.macosx-10.7-x86_64-3.6/pysam/include/__init__.py
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running build_ext
skipping 'pysam/libchtslib.c' Cython extension (up-to-date)
building 'pysam.libchtslib' extension
creating build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/pysam
creating build/temp.macosx-10.7-x86_64-3.6/htslib
creating build/temp.macosx-10.7-x86_64-3.6/htslib/cram
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-u6tryjwo/pysam/htslib -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-u6tryjwo/pysam/samtools -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-u6tryjwo/pysam/samtools/lz4 -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-u6tryjwo/pysam/bcftools -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-u6tryjwo/pysam/pysam -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-u6tryjwo/pysam -I/anaconda3/include/python3.6m -c pysam/libchtslib.c -o build/temp.macosx-10.7-x86_64-3.6/pysam/libchtslib.o -Wno-unused -Wno-strict-prototypes -Wno-sign-compare -Wno-error=declaration-after-statement
In file included from pysam/libchtslib.c:4:
In file included from /anaconda3/include/python3.6m/Python.h:34:
In file included from /usr/include/stdlib.h:65:
In file included from /usr/include/sys/wait.h:110:
/usr/include/sys/resource.h:196:2: error: unknown type name 'uint8_t'
uint8_t ri_uuid[16];
^
/usr/include/sys/resource.h:197:2: error: unknown type name 'uint64_t'
uint64_t ri_user_time;
^
/usr/include/sys/resource.h:198:2: error: unknown type name 'uint64_t'
uint64_t ri_system_time;
^
/usr/include/sys/resource.h:199:2: error: unknown type name 'uint64_t'
uint64_t ri_pkg_idle_wkups;
^
/usr/include/sys/resource.h:200:2: error: unknown type name 'uint64_t'
uint64_t ri_interrupt_wkups;
^
/usr/include/sys/resource.h:201:2: error: unknown type name 'uint64_t'
uint64_t ri_pageins;
^
/usr/include/sys/resource.h:202:2: error: unknown type name 'uint64_t'
uint64_t ri_wired_size;
^
/usr/include/sys/resource.h:203:2: error: unknown type name 'uint64_t'
uint64_t ri_resident_size;
^
/usr/include/sys/resource.h:204:2: error: unknown type name 'uint64_t'
uint64_t ri_phys_footprint;
^
/usr/include/sys/resource.h:205:2: error: unknown type name 'uint64_t'
uint64_t ri_proc_start_abstime;
^
/usr/include/sys/resource.h:206:2: error: unknown type name 'uint64_t'
uint64_t ri_proc_exit_abstime;
^
/usr/include/sys/resource.h:210:2: error: unknown type name 'uint8_t'
uint8_t ri_uuid[16];
^
/usr/include/sys/resource.h:211:2: error: unknown type name 'uint64_t'
uint64_t ri_user_time;
^
/usr/include/sys/resource.h:212:2: error: unknown type name 'uint64_t'
uint64_t ri_system_time;
^
/usr/include/sys/resource.h:213:2: error: unknown type name 'uint64_t'
uint64_t ri_pkg_idle_wkups;
^
/usr/include/sys/resource.h:214:2: error: unknown type name 'uint64_t'
uint64_t ri_interrupt_wkups;
^
/usr/include/sys/resource.h:215:2: error: unknown type name 'uint64_t'
uint64_t ri_pageins;
^
/usr/include/sys/resource.h:216:2: error: unknown type name 'uint64_t'
uint64_t ri_wired_size;
^
/usr/include/sys/resource.h:217:2: error: unknown type name 'uint64_t'
uint64_t ri_resident_size;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for pysam
Running setup.py clean for pysam
Failed to build pysam
distributed 1.19.1 has requirement tornado>=4.5.1, but you'll have tornado 4.3 which is incompatible.
Installing collected packages: pysam
Running setup.py install for pysam ... error
Complete output from command /anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-u6tryjwo/pysam/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-record-jmme4k_o/install-record.txt --single-version-externally-managed --compile:
# pysam: cython is available - using cythonize if necessary
# pysam: htslib mode is shared
# pysam: HTSLIB_CONFIGURE_OPTIONS=None
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for grep that handles long lines and -e... /usr/bin/grep
checking for C compiler warning flags... -Wall
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking shared library type for unknown-Darwin... Darwin dylib
checking how to run the C preprocessor... gcc -E
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... no
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... no
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) no
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for gmtime_r... yes
checking for fsync... yes
checking for drand48... yes
checking whether fdatasync is declared... no
checking for library containing log... none required
checking for zlib.h... yes
checking for inflate in -lz... yes
checking for library containing recv... none required
checking for bzlib.h... yes
checking for BZ2_bzBuffToBuffCompress in -lbz2... yes
checking for lzma.h... no
checking for lzma_easy_buffer_encode in -llzma... yes
checking for curl_easy_pause in -lcurl... yes
checking for CCHmac... yes
checking whether PTHREAD_MUTEX_RECURSIVE is declared... yes
configure: creating ./config.status
config.status: creating config.mk
config.status: creating htslib.pc.tmp
config.status: creating config.h
config.status: config.h is unchanged
# pysam: htslib configure options: --enable-libcurl
make: ./version.sh: Command not found
make: ./version.sh: Command not found
# pysam: htslib_config LDFLAGS=
# pysam: htslib_config LIBHTS_OBJS=kfunc.o knetfile.o kstring.o bcf_sr_sort.o bgzf.o errmod.o faidx.o hfile.o hfile_net.o hts.o hts_os.o md5.o multipart.o probaln.o realn.o regidx.o sam.o synced_bcf_reader.o vcf_sweep.o tbx.o textutils.o thread_pool.o vcf.o vcfutils.o cram/cram_codecs.o cram/cram_decode.o cram/cram_encode.o cram/cram_external.o cram/cram_index.o cram/cram_io.o cram/cram_samtools.o cram/cram_stats.o cram/files.o cram/mFILE.o cram/open_trace_file.o cram/pooled_alloc.o cram/rANS_static.o cram/sam_header.o cram/string_alloc.o hfile_libcurl.o hfile_gcs.o hfile_s3.o
# pysam: htslib_config LIBS=-llzma -lbz2 -lz -lcurl
# pysam: htslib_config PLATFORM=Darwin
# pysam: config_option: ENABLE_PLUGINS=0
# pysam: config_option: HAVE_COMMONCRYPTO=1
# pysam: config_option: HAVE_GMTIME_R=1
# pysam: config_option: HAVE_HMAC=0
# pysam: config_option: HAVE_IRODS=0
# pysam: config_option: HAVE_LIBCURL=1
# pysam: config_option: HAVE_MMAP=1
running install
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/bcftools.py -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/config.py -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/Pileup.py -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/samtools.py -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/utils.py -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/version.py -> build/lib.macosx-10.7-x86_64-3.6/pysam
creating build/lib.macosx-10.7-x86_64-3.6/pysam/include
copying pysam/include/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/pysam/include
package init file 'samtools/__init__.py' not found (or not a regular file)
package init file 'bcftools/__init__.py' not found (or not a regular file)
package init file 'samtools/win32/__init__.py' not found (or not a regular file)
package init file 'htslib/__init__.py' not found (or not a regular file)
package init file 'htslib/htslib/__init__.py' not found (or not a regular file)
copying pysam/libcalignedsegment.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libcalignmentfile.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libcbcf.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libcbcftools.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libcfaidx.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libchtslib.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libcsamfile.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libcsamtools.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libctabix.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libctabixproxies.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libcutils.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/libcvcf.pxd -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/cbcftools_util.h -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/csamtools_util.h -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/htslib_util.h -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/pysam_stream.h -> build/lib.macosx-10.7-x86_64-3.6/pysam
copying pysam/pysam_util.h -> build/lib.macosx-10.7-x86_64-3.6/pysam
creating build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/bam.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/bam2bcf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/bam_endian.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/bam_lpileup.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/bam_plbuf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/bedidx.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/config.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/sam.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/sam_header.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/sam_opts.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/sample.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/samtools.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/samtools.pysam.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/stats_isize.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/tmp_file.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
copying samtools/version.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools
creating build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/bam2bcf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/bam_sample.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/bcftools.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/bcftools.pysam.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/bin.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/call.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/config.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/convert.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/filter.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/gvcf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/hclust.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/HMM.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/khash_str2str.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/kheap.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/kmin.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/mw.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/ploidy.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/prob1.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/rbuf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/regidx.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/smpl_ilist.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/tsv2vcf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/vcfbuf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/vcmp.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
copying bcftools/version.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/bcftools
creating build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools/win32
copying samtools/win32/xcurses.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools/win32
copying samtools/win32/zconf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools/win32
copying samtools/win32/zlib.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/samtools/win32
creating build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib
copying htslib/bcf_sr_sort.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib
copying htslib/config.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib
copying htslib/hfile_internal.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib
copying htslib/hts_internal.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib
copying htslib/textutils_internal.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib
copying htslib/thread_pool_internal.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib
copying htslib/version.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib
creating build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/bgzf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/cram.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/faidx.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/hfile.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/hts.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/hts_defs.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/hts_endian.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/hts_log.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/hts_os.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/kbitset.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/kfunc.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/khash.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/khash_str2int.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/klist.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/knetfile.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/kseq.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/ksort.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/kstring.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/regidx.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/sam.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/synced_bcf_reader.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/tbx.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/thread_pool.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/vcf.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/vcf_sweep.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
copying htslib/htslib/vcfutils.h -> build/lib.macosx-10.7-x86_64-3.6/pysam/include/htslib/htslib
Fixing build/lib.macosx-10.7-x86_64-3.6/pysam/__init__.py build/lib.macosx-10.7-x86_64-3.6/pysam/bcftools.py build/lib.macosx-10.7-x86_64-3.6/pysam/config.py build/lib.macosx-10.7-x86_64-3.6/pysam/Pileup.py build/lib.macosx-10.7-x86_64-3.6/pysam/samtools.py build/lib.macosx-10.7-x86_64-3.6/pysam/utils.py build/lib.macosx-10.7-x86_64-3.6/pysam/version.py build/lib.macosx-10.7-x86_64-3.6/pysam/include/__init__.py
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
Fixing build/lib.macosx-10.7-x86_64-3.6/pysam/__init__.py build/lib.macosx-10.7-x86_64-3.6/pysam/bcftools.py build/lib.macosx-10.7-x86_64-3.6/pysam/config.py build/lib.macosx-10.7-x86_64-3.6/pysam/Pileup.py build/lib.macosx-10.7-x86_64-3.6/pysam/samtools.py build/lib.macosx-10.7-x86_64-3.6/pysam/utils.py build/lib.macosx-10.7-x86_64-3.6/pysam/version.py build/lib.macosx-10.7-x86_64-3.6/pysam/include/__init__.py
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running build_ext
skipping 'pysam/libchtslib.c' Cython extension (up-to-date)
building 'pysam.libchtslib' extension
creating build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/pysam
creating build/temp.macosx-10.7-x86_64-3.6/htslib
creating build/temp.macosx-10.7-x86_64-3.6/htslib/cram
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-u6tryjwo/pysam/htslib -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-u6tryjwo/pysam/samtools -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-u6tryjwo/pysam/samtools/lz4 -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-u6tryjwo/pysam/bcftools -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-u6tryjwo/pysam/pysam -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-u6tryjwo/pysam -I/anaconda3/include/python3.6m -c pysam/libchtslib.c -o build/temp.macosx-10.7-x86_64-3.6/pysam/libchtslib.o -Wno-unused -Wno-strict-prototypes -Wno-sign-compare -Wno-error=declaration-after-statement
In file included from pysam/libchtslib.c:4:
In file included from /anaconda3/include/python3.6m/Python.h:34:
In file included from /usr/include/stdlib.h:65:
In file included from /usr/include/sys/wait.h:110:
/usr/include/sys/resource.h:196:2: error: unknown type name 'uint8_t'
uint8_t ri_uuid[16];
^
/usr/include/sys/resource.h:197:2: error: unknown type name 'uint64_t'
uint64_t ri_user_time;
^
/usr/include/sys/resource.h:198:2: error: unknown type name 'uint64_t'
uint64_t ri_system_time;
^
/usr/include/sys/resource.h:199:2: error: unknown type name 'uint64_t'
uint64_t ri_pkg_idle_wkups;
^
/usr/include/sys/resource.h:200:2: error: unknown type name 'uint64_t'
uint64_t ri_interrupt_wkups;
^
/usr/include/sys/resource.h:201:2: error: unknown type name 'uint64_t'
uint64_t ri_pageins;
^
/usr/include/sys/resource.h:202:2: error: unknown type name 'uint64_t'
uint64_t ri_wired_size;
^
/usr/include/sys/resource.h:203:2: error: unknown type name 'uint64_t'
uint64_t ri_resident_size;
^
/usr/include/sys/resource.h:204:2: error: unknown type name 'uint64_t'
uint64_t ri_phys_footprint;
^
/usr/include/sys/resource.h:205:2: error: unknown type name 'uint64_t'
uint64_t ri_proc_start_abstime;
^
/usr/include/sys/resource.h:206:2: error: unknown type name 'uint64_t'
uint64_t ri_proc_exit_abstime;
^
/usr/include/sys/resource.h:210:2: error: unknown type name 'uint8_t'
uint8_t ri_uuid[16];
^
/usr/include/sys/resource.h:211:2: error: unknown type name 'uint64_t'
uint64_t ri_user_time;
^
/usr/include/sys/resource.h:212:2: error: unknown type name 'uint64_t'
uint64_t ri_system_time;
^
/usr/include/sys/resource.h:213:2: error: unknown type name 'uint64_t'
uint64_t ri_pkg_idle_wkups;
^
/usr/include/sys/resource.h:214:2: error: unknown type name 'uint64_t'
uint64_t ri_interrupt_wkups;
^
/usr/include/sys/resource.h:215:2: error: unknown type name 'uint64_t'
uint64_t ri_pageins;
^
/usr/include/sys/resource.h:216:2: error: unknown type name 'uint64_t'
uint64_t ri_wired_size;
^
/usr/include/sys/resource.h:217:2: error: unknown type name 'uint64_t'
uint64_t ri_resident_size;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-u6tryjwo/pysam/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-record-jmme4k_o/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-u6tryjwo/pysam/

ADD REPLY
0
Entering edit mode

And what about

python2.7 -m pip install pysam
ADD REPLY
0
Entering edit mode

$ python2.7 -m pip install pysam
Collecting pysam
Using cached https://files.pythonhosted.org/packages/fc/9b/4bb8d016406dcff47e2866e14d3dcb10741ec3920649e8c521996830944f/pysam-0.14.1.tar.gz
matplotlib 1.3.1 requires nose, which is not installed.
matplotlib 1.3.1 requires tornado, which is not installed.
Installing collected packages: pysam
Running setup.py install for pysam ... error
Complete output from command /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-qZhLf2/pysam/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-record-uC4wxT/install-record.txt --single-version-externally-managed --compile:
# pysam: no cython available - using pre-compiled C
# pysam: htslib mode is shared
# pysam: HTSLIB_CONFIGURE_OPTIONS=None
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for grep that handles long lines and -e... /usr/bin/grep
checking for C compiler warning flags... -Wall
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking shared library type for unknown-Darwin... Darwin dylib
checking how to run the C preprocessor... gcc -E
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... no
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... no
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) no
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for gmtime_r... yes
checking for fsync... yes
checking for drand48... yes
checking whether fdatasync is declared... no
checking for library containing log... none required
checking for zlib.h... yes
checking for inflate in -lz... yes
checking for library containing recv... none required
checking for bzlib.h... yes
checking for BZ2_bzBuffToBuffCompress in -lbz2... yes
checking for lzma.h... no
checking for lzma_easy_buffer_encode in -llzma... yes
checking for curl_easy_pause in -lcurl... yes
checking for CCHmac... yes
checking whether PTHREAD_MUTEX_RECURSIVE is declared... yes
configure: creating ./config.status
config.status: creating config.mk
config.status: creating htslib.pc.tmp
config.status: creating config.h
config.status: config.h is unchanged
# pysam: htslib configure options: --enable-libcurl
make: ./version.sh: Command not found
make: ./version.sh: Command not found
# pysam: htslib_config LIBS=-llzma -lbz2 -lz -lcurl
# pysam: htslib_config PLATFORM=Darwin
# pysam: htslib_config LIBHTS_OBJS=kfunc.o knetfile.o kstring.o bcf_sr_sort.o bgzf.o errmod.o faidx.o hfile.o hfile_net.o hts.o hts_os.o md5.o multipart.o probaln.o realn.o regidx.o sam.o synced_bcf_reader.o vcf_sweep.o tbx.o textutils.o thread_pool.o vcf.o vcfutils.o cram/cram_codecs.o cram/cram_decode.o cram/cram_encode.o cram/cram_external.o cram/cram_index.o cram/cram_io.o cram/cram_samtools.o cram/cram_stats.o cram/files.o cram/mFILE.o cram/open_trace_file.o cram/pooled_alloc.o cram/rANS_static.o cram/sam_header.o cram/string_alloc.o hfile_libcurl.o hfile_gcs.o hfile_s3.o
# pysam: htslib_config LDFLAGS=
# pysam: config_option: ENABLE_PLUGINS=0
# pysam: config_option: HAVE_COMMONCRYPTO=1
# pysam: config_option: HAVE_GMTIME_R=1
# pysam: config_option: HAVE_HMAC=0
# pysam: config_option: HAVE_IRODS=0
# pysam: config_option: HAVE_LIBCURL=1
# pysam: config_option: HAVE_MMAP=1
running install
running build
running build_py
creating build
creating build/lib.macosx-10.13-intel-2.7
creating build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/__init__.py -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/bcftools.py -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/config.py -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/Pileup.py -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/samtools.py -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/utils.py -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/version.py -> build/lib.macosx-10.13-intel-2.7/pysam
creating build/lib.macosx-10.13-intel-2.7/pysam/include
copying pysam/include/__init__.py -> build/lib.macosx-10.13-intel-2.7/pysam/include
package init file 'samtools/__init__.py' not found (or not a regular file)
package init file 'bcftools/__init__.py' not found (or not a regular file)
package init file 'samtools/win32/__init__.py' not found (or not a regular file)
package init file 'htslib/__init__.py' not found (or not a regular file)
package init file 'htslib/htslib/__init__.py' not found (or not a regular file)
copying pysam/libcalignedsegment.pxd -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/libcalignmentfile.pxd -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/libcbcf.pxd -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/libcbcftools.pxd -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/libcfaidx.pxd -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/libchtslib.pxd -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/libcsamfile.pxd -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/libcsamtools.pxd -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/libctabix.pxd -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/libctabixproxies.pxd -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/libcutils.pxd -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/libcvcf.pxd -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/cbcftools_util.h -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/csamtools_util.h -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/htslib_util.h -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/pysam_stream.h -> build/lib.macosx-10.13-intel-2.7/pysam
copying pysam/pysam_util.h -> build/lib.macosx-10.13-intel-2.7/pysam
creating build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
copying samtools/bam.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
copying samtools/bam2bcf.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
copying samtools/bam_endian.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
copying samtools/bam_lpileup.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
copying samtools/bam_plbuf.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
copying samtools/bedidx.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
copying samtools/config.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
copying samtools/sam.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
copying samtools/sam_header.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
copying samtools/sam_opts.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
copying samtools/sample.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
copying samtools/samtools.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
copying samtools/samtools.pysam.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
copying samtools/stats_isize.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
copying samtools/tmp_file.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
copying samtools/version.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools
creating build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/bam2bcf.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/bam_sample.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/bcftools.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/bcftools.pysam.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/bin.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/call.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/config.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/convert.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/filter.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/gvcf.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/hclust.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/HMM.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/khash_str2str.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/kheap.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/kmin.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/mw.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/ploidy.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/prob1.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/rbuf.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/regidx.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/smpl_ilist.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/tsv2vcf.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/vcfbuf.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/vcmp.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
copying bcftools/version.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/bcftools
creating build/lib.macosx-10.13-intel-2.7/pysam/include/samtools/win32
copying samtools/win32/xcurses.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools/win32
copying samtools/win32/zconf.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools/win32
copying samtools/win32/zlib.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/samtools/win32
creating build/lib.macosx-10.13-intel-2.7/pysam/include/htslib
copying htslib/bcf_sr_sort.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib
copying htslib/config.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib
copying htslib/hfile_internal.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib
copying htslib/hts_internal.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib
copying htslib/textutils_internal.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib
copying htslib/thread_pool_internal.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib
copying htslib/version.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib
creating build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/bgzf.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/cram.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/faidx.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/hfile.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/hts.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/hts_defs.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/hts_endian.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/hts_log.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/hts_os.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/kbitset.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/kfunc.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/khash.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/khash_str2int.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/klist.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/knetfile.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/kseq.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/ksort.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/kstring.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/regidx.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/sam.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/synced_bcf_reader.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/tbx.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/thread_pool.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/vcf.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/vcf_sweep.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
copying htslib/htslib/vcfutils.h -> build/lib.macosx-10.13-intel-2.7/pysam/include/htslib/htslib
running build_ext
building 'pysam.libchtslib' extension
creating build/temp.macosx-10.13-intel-2.7
creating build/temp.macosx-10.13-intel-2.7/pysam
creating build/temp.macosx-10.13-intel-2.7/htslib
creating build/temp.macosx-10.13-intel-2.7/htslib/cram
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-qZhLf2/pysam/htslib -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-qZhLf2/pysam/samtools -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-qZhLf2/pysam/samtools/lz4 -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-qZhLf2/pysam/bcftools -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-qZhLf2/pysam/pysam -I/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-qZhLf2/pysam -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pysam/libchtslib.c -o build/temp.macosx-10.13-intel-2.7/pysam/libchtslib.o -Wno-unused -Wno-strict-prototypes -Wno-sign-compare -Wno-error=declaration-after-statement
In file included from pysam/libchtslib.c:4:
In file included from /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:42:
In file included from /usr/include/stdlib.h:65:
In file included from /usr/include/sys/wait.h:110:
/usr/include/sys/resource.h:196:2: error: unknown type name 'uint8_t'
uint8_t ri_uuid[16];
^
/usr/include/sys/resource.h:197:2: error: unknown type name 'uint64_t'
uint64_t ri_user_time;
^
/usr/include/sys/resource.h:198:2: error: unknown type name 'uint64_t'
uint64_t ri_system_time;
^
/usr/include/sys/resource.h:199:2: error: unknown type name 'uint64_t'
uint64_t ri_pkg_idle_wkups;
^
/usr/include/sys/resource.h:200:2: error: unknown type name 'uint64_t'
uint64_t ri_interrupt_wkups;
^
/usr/include/sys/resource.h:201:2: error: unknown type name 'uint64_t'
uint64_t ri_pageins;
^
/usr/include/sys/resource.h:202:2: error: unknown type name 'uint64_t'
uint64_t ri_wired_size;
^
/usr/include/sys/resource.h:203:2: error: unknown type name 'uint64_t'
uint64_t ri_resident_size;
^
/usr/include/sys/resource.h:204:2: error: unknown type name 'uint64_t'
uint64_t ri_phys_footprint;
^
/usr/include/sys/resource.h:205:2: error: unknown type name 'uint64_t'
uint64_t ri_proc_start_abstime;
^
/usr/include/sys/resource.h:206:2: error: unknown type name 'uint64_t'
uint64_t ri_proc_exit_abstime;
^
/usr/include/sys/resource.h:210:2: error: unknown type name 'uint8_t'
uint8_t ri_uuid[16];
^
/usr/include/sys/resource.h:211:2: error: unknown type name 'uint64_t'
uint64_t ri_user_time;
^
/usr/include/sys/resource.h:212:2: error: unknown type name 'uint64_t'
uint64_t ri_system_time;
^
/usr/include/sys/resource.h:213:2: error: unknown type name 'uint64_t'
uint64_t ri_pkg_idle_wkups;
^
/usr/include/sys/resource.h:214:2: error: unknown type name 'uint64_t'
uint64_t ri_interrupt_wkups;
^
/usr/include/sys/resource.h:215:2: error: unknown type name 'uint64_t'
uint64_t ri_pageins;
^
/usr/include/sys/resource.h:216:2: error: unknown type name 'uint64_t'
uint64_t ri_wired_size;
^
/usr/include/sys/resource.h:217:2: error: unknown type name 'uint64_t'
uint64_t ri_resident_size;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'cc' failed with exit status 1
----------------------------------------
Command "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-qZhLf2/pysam/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-record-uC4wxT/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-qZhLf2/pysam/
view raw gistfile1.txt hosted with ❤ by GitHub

ADD REPLY
0
Entering edit mode

I realize the complain about tornado and nose. so I install this two and hoping python2.7 -m pip install pysam would work. But it didn't still.

ADD REPLY
0
Entering edit mode

What Linux distribution is this? Since you mentioned conda earlier, I suspect that this is using gcc from conda rather than your system, which results in the library search path being broken. Can you post the results of which -a gcc?

ADD REPLY
1
Entering edit mode

I think OP is on OS X.

last line from error (copy/pasted):

 Command "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-qZhLf2/pysam/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-record-uC4wxT/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/tz/89qgqyd97wj1cdrpq_d62n100000gr/T/pip-install-qZhLf2/pysam/
ADD REPLY
0
Entering edit mode
which -a gcc

/usr/bin/gcc

ADD REPLY
0
Entering edit mode

Does this error make sense to you please? when I call pip, it displays pip menu, but when I do pip install pysam I get this

svtyper 0.5.0 has requirement pysam>=0.12.0, but you'll have pysam 0.9.1 which is incompatible.
distributed 1.19.1 has requirement tornado>=4.5.1, but you'll have tornado 4.3 which is incompatible.
ADD REPLY

Login before adding your answer.

Traffic: 2731 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6