Question: Trouble Installing Htseq-Count
0
gravatar for Nick
5.5 years ago by
Nick250
Spain
Nick250 wrote:

I tried to install htseq-count on CentOS 5.9. I am getting errors:

[root@cltnfs HTSeq-0.5.4p3]# python setup.py build
/usr/lib64/python2.4/distutils/dist.py:236: UserWarning: Unknown distribution option: 'requires'
warnings.warn(msg)
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.4
creating build/lib.linux-x86_64-2.4/HTSeq
copying HTSeq/__init__.py -> build/lib.linux-x86_64-2.4/HTSeq
copying HTSeq/_HTSeq_internal.py -> build/lib.linux-x86_64-2.4/HTSeq
copying HTSeq/StepVector.py -> build/lib.linux-x86_64-2.4/HTSeq
copying HTSeq/_version.py -> build/lib.linux-x86_64-2.4/HTSeq
creating build/lib.linux-x86_64-2.4/HTSeq/scripts
copying HTSeq/scripts/__init__.py -> build/lib.linux-x86_64-2.4/HTSeq/scripts
copying HTSeq/scripts/qa.py -> build/lib.linux-x86_64-2.4/HTSeq/scripts
copying HTSeq/scripts/count.py -> build/lib.linux-x86_64-2.4/HTSeq/scripts
running build_ext
building 'HTSeq._HTSeq' extension
creating build/temp.linux-x86_64-2.4
creating build/temp.linux-x86_64-2.4/src
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC -I/usr/lib64/python2.4/site-packages/numpy/core/include -I/usr/include/python2.4 -c src/_HTSeq.c -o build/temp.linux-x86_64-2.4/src/_HTSeq.o -w
gcc -pthread -shared build/temp.linux-x86_64-2.4/src/_HTSeq.o -o build/lib.linux-x86_64-2.4/HTSeq/_HTSeq.so
building 'HTSeq._StepVector' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/python2.4 -c src/StepVector_wrap.cxx -o build/temp.linux-x86_64-2.4/src/StepVector_wrap.o -w
c++ -pthread -shared build/temp.linux-x86_64-2.4/src/StepVector_wrap.o -o build/lib.linux-x86_64-2.4/HTSeq/_StepVector.so
running build_scripts
creating build/scripts-2.4
copying and adjusting scripts/htseq-qa -> build/scripts-2.4
copying and adjusting scripts/htseq-count -> build/scripts-2.4
changing mode of build/scripts-2.4/htseq-qa from 644 to 755
changing mode of build/scripts-2.4/htseq-count from 644 to 755
[root@cltnfs HTSeq-0.5.4p3]# sudo python setup.py install
/usr/lib64/python2.4/distutils/dist.py:236: UserWarning: Unknown distribution option: 'requires'
  warnings.warn(msg)
running install
running bdist_egg
running egg_info
writing HTSeq.egg-info/PKG-INFO
writing top-level names to HTSeq.egg-info/top_level.txt
writing dependency_links to HTSeq.egg-info/dependency_links.txt
reading manifest file 'HTSeq.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'example_data'
no previously-included directories found matching 'test'
warning: no previously-included files found matching 'todo.txt'
writing manifest file 'HTSeq.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/HTSeq
copying build/lib.linux-x86_64-2.4/HTSeq/__init__.py -> build/bdist.linux-x86_64/egg/HTSeq
copying build/lib.linux-x86_64-2.4/HTSeq/_HTSeq_internal.py -> build/bdist.linux-x86_64/egg/HTSeq
copying build/lib.linux-x86_64-2.4/HTSeq/StepVector.py -> build/bdist.linux-x86_64/egg/HTSeq
copying build/lib.linux-x86_64-2.4/HTSeq/_version.py -> build/bdist.linux-x86_64/egg/HTSeq
creating build/bdist.linux-x86_64/egg/HTSeq/scripts
copying build/lib.linux-x86_64-2.4/HTSeq/scripts/__init__.py -> build/bdist.linux-x86_64/egg/HTSeq/scripts
copying build/lib.linux-x86_64-2.4/HTSeq/scripts/qa.py -> build/bdist.linux-x86_64/egg/HTSeq/scripts
copying build/lib.linux-x86_64-2.4/HTSeq/scripts/count.py -> build/bdist.linux-x86_64/egg/HTSeq/scripts
copying build/lib.linux-x86_64-2.4/HTSeq/_HTSeq.so -> build/bdist.linux-x86_64/egg/HTSeq
copying build/lib.linux-x86_64-2.4/HTSeq/_StepVector.so -> build/bdist.linux-x86_64/egg/HTSeq
byte-compiling build/bdist.linux-x86_64/egg/HTSeq/__init__.py to __init__.pyc
  File "build/bdist.linux-x86_64/egg/HTSeq/__init__.py", line 842
    except ValueError as e:
                       ^
SyntaxError: invalid syntax
byte-compiling build/bdist.linux-x86_64/egg/HTSeq/_HTSeq_internal.py to _HTSeq_internal.pyc
byte-compiling build/bdist.linux-x86_64/egg/HTSeq/StepVector.py to StepVector.pyc
byte-compiling build/bdist.linux-x86_64/egg/HTSeq/_version.py to _version.pyc
byte-compiling build/bdist.linux-x86_64/egg/HTSeq/scripts/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/HTSeq/scripts/qa.py to qa.pyc
byte-compiling build/bdist.linux-x86_64/egg/HTSeq/scripts/count.py to count.pyc
  File "build/bdist.linux-x86_64/egg/HTSeq/scripts/count.py", line 187
    rr = r[0] if r[0] is not None else r[1]
               ^
SyntaxError: invalid syntax
creating stub loader for HTSeq/_HTSeq.so
creating stub loader for HTSeq/_StepVector.so
byte-compiling build/bdist.linux-x86_64/egg/HTSeq/_HTSeq.py to _HTSeq.pyc
byte-compiling build/bdist.linux-x86_64/egg/HTSeq/_StepVector.py to _StepVector.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-2.4/htseq-qa -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-2.4/htseq-count -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/htseq-qa to 755
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/htseq-count to 755
writing HTSeq.egg-info/native_libs.txt
copying HTSeq.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying HTSeq.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying HTSeq.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying HTSeq.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
HTSeq.StepVector: module references __file__
creating dist
creating 'dist/HTSeq-0.5.4p3-py2.4-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing HTSeq-0.5.4p3-py2.4-linux-x86_64.egg
creating /usr/lib64/python2.4/site-packages/HTSeq-0.5.4p3-py2.4-linux-x86_64.egg
Extracting HTSeq-0.5.4p3-py2.4-linux-x86_64.egg to /usr/lib64/python2.4/site-packages
  File "/usr/lib64/python2.4/site-packages/HTSeq-0.5.4p3-py2.4-linux-x86_64.egg/HTSeq/__init__.py", line 842
    except ValueError as e:
                       ^
SyntaxError: invalid syntax
  File "/usr/lib64/python2.4/site-packages/HTSeq-0.5.4p3-py2.4-linux-x86_64.egg/HTSeq/scripts/count.py", line 187
    rr = r[0] if r[0] is not None else r[1]
               ^
SyntaxError: invalid syntax
Adding HTSeq 0.5.4p3 to easy-install.pth file
Installing htseq-count script to /usr/bin
Installing htseq-qa script to /usr/bin

Installed /usr/lib64/python2.4/site-packages/HTSeq-0.5.4p3-py2.4-linux-x86_64.egg
Processing dependencies for HTSeq==0.5.4p3


[root@cltnfs HTSeq-0.5.4p3]# cd ..
[root@cltnfs software]# python
Python 2.4.3 (#1, Jan  9 2013, 06:47:03)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import HTSeq
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib64/python2.4/site-packages/HTSeq-0.5.4p3-py2.4-linux-x86_64.egg/HTSeq/__init__.py", line 842
    except ValueError as e:
                       ^

Can anyone help?

installation • 6.2k views
ADD COMMENTlink modified 5.5 years ago • written 5.5 years ago by Nick250
3
gravatar for matted
5.5 years ago by
matted7.0k
Boston, United States
matted7.0k wrote:

It looks like these are all errors from using an older version of Python. You're using python 2.4, and the HTSeq docs state "To use HTSeq, you need at least version 2.5 of Python".

ADD COMMENTlink written 5.5 years ago by matted7.0k
0
gravatar for Nick
5.5 years ago by
Nick250
Spain
Nick250 wrote:

@ matted: Thanks. I'm using CentOS 5.9 and I cannot upgrade the system-wide python 2.4. I installed, instead, python26 via easyinstall. So I ran setup.py but there were other errors:

    [root@cltnfs HTSeq-0.5.4p3]# python26 setup.py install --user
running install
running bdist_egg
running egg_info
writing HTSeq.egg-info/PKG-INFO
writing top-level names to HTSeq.egg-info/top_level.txt
writing dependency_links to HTSeq.egg-info/dependency_links.txt
deleting HTSeq.egg-info/native_libs.txt
reading manifest file 'HTSeq.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'example_data'
no previously-included directories found matching 'test'
warning: no previously-included files found matching 'todo.txt'
writing manifest file 'HTSeq.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'HTSeq._HTSeq' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -I/usr/kerberos/include -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/lib64/python2.6/site-packages/numpy/core/include -I/usr/include/python2.6 -c src/_HTSeq.c -o build/temp.linux-x86_64-2.6/src/_HTSeq.o -w
src/_HTSeq.c:237:31: error: numpy/arrayobject.h: No such file or directory
src/_HTSeq.c:238:31: error: numpy/ufuncobject.h: No such file or directory
src/_HTSeq.c:356: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_int8_t’
src/_HTSeq.c:365: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_int16_t’
src/_HTSeq.c:374: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_int32_t’
src/_HTSeq.c:383: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_int64_t’
src/_HTSeq.c:392: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_uint8_t’
src/_HTSeq.c:401: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_uint16_t’
src/_HTSeq.c:410: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_uint32_t’
src/_HTSeq.c:419: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_uint64_t’
src/_HTSeq.c:428: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_float32_t’
src/_HTSeq.c:437: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_float64_t’
src/_HTSeq.c:446: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_int_t’
src/_HTSeq.c:455: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_long_t’
src/_HTSeq.c:464: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_longlong_t’
src/_HTSeq.c:473: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_uint_t’
src/_HTSeq.c:482: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_ulong_t’
src/_HTSeq.c:491: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_ulonglong_t’
src/_HTSeq.c:500: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_intp_t’
src/_HTSeq.c:509: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_uintp_t’
src/_HTSeq.c:518: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_float_t’
src/_HTSeq.c:527: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_double_t’
src/_HTSeq.c:536: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_longdouble_t’
src/_HTSeq.c:579: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_cfloat_t’
src/_HTSeq.c:588: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_cdouble_t’
src/_HTSeq.c:597: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_clongdouble_t’
src/_HTSeq.c:606: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_complex_t’
src/_HTSeq.c:910: error: expected declaration specifiers or ‘...’ before ‘PyArrayObject’
src/_HTSeq.c:928: error: expected declaration specifiers or ‘...’ before ‘PyArrayObject’
src/_HTSeq.c:1226: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__Pyx_PyInt_from_py_npy_long’
src/_HTSeq.c:1397: error: expected ‘)’ before ‘*’ token
src/_HTSeq.c:1398: error: expected ‘)’ before ‘*’ token
src/_HTSeq.c:1399: error: expected ‘)’ before ‘*’ token
src/_HTSeq.c:1422: error: ‘__pyx_t_5numpy_int_t’ undeclared here (not in a function)
src/_HTSeq.c:12290: error: expected declaration specifiers or ‘...’ before ‘PyArrayObject’
src/_HTSeq.c: In function ‘__pyx_f_5HTSeq_6_HTSeq_8Sequence_add_bases_to_count_array’:
src/_HTSeq.c:12291: error: ‘PyArrayObject’ undeclared (first use in this function)
src/_HTSeq.c:12291: error: (Each undeclared identifier is reported only once
src/_HTSeq.c:12291: error: for each function it appears in.)
src/_HTSeq.c:12291: error: ‘__pyx_v_count_array’ undeclared (first use in this function)
src/_HTSeq.c:12293: error: ‘npy_intp’ undeclared (first use in this function)
src/_HTSeq.c:12293: error: expected ‘;’ before ‘__pyx_v_i’
src/_HTSeq.c:12310: error: expected ‘;’ before ‘__pyx_t_8’
src/_HTSeq.c:12313: error: expected ‘;’ before ‘__pyx_t_11’
src/_HTSeq.c:12316: error: expected ‘;’ before ‘__pyx_t_14’
src/_HTSeq.c:12318: error: expected ‘;’ before ‘__pyx_t_16’
src/_HTSeq.c:12320: error: expected ‘;’ before ‘__pyx_t_18’
src/_HTSeq.c:12323: error: expected ‘;’ before ‘__pyx_t_21’
src/_HTSeq.c:12340: error: ‘__pyx_v_count_array_’ undeclared (first use in this function)
src/_HTSeq.c:12363: error: expected expression before ‘)’ token
src/_HTSeq.c:12364: error: expected expression before ‘)’ token
src/_HTSeq.c:12371: error: expected expression before ‘)’ token
src/_HTSeq.c:12396: error: expected expression before ‘)’ token
src/_HTSeq.c:12396: error: subscripted value is neither array nor pointer
src/_HTSeq.c:12419: error: expected expression before ‘)’ token
src/_HTSeq.c:12419: error: subscripted value is neither array nor pointer
src/_HTSeq.c:12453: error: ‘__pyx_t_8’ undeclared (first use in this function)
src/_HTSeq.c:12454: error: ‘__pyx_v_i’ undeclared (first use in this function)
src/_HTSeq.c:12488: error: ‘__pyx_t_11’ undeclared (first use in this function)
src/_HTSeq.c:12503: error: expected expression before ‘)’ token
src/_HTSeq.c:12530: error: ‘__pyx_t_14’ undeclared (first use in this function)
src/_HTSeq.c:12545: error: expected expression before ‘)’ token
src/_HTSeq.c:12572: error: ‘__pyx_t_16’ undeclared (first use in this function)
src/_HTSeq.c:12587: error: expected expression before ‘)’ token
src/_HTSeq.c:12614: error: ‘__pyx_t_18’ undeclared (first use in this function)
src/_HTSeq.c:12629: error: expected expression before ‘)’ token
src/_HTSeq.c:12662: error: ‘__pyx_t_21’ undeclared (first use in this function)
src/_HTSeq.c:12677: error: expected expression before ‘)’ token
src/_HTSeq.c: In function ‘__pyx_pf_5HTSeq_6_HTSeq_8Sequence_7add_bases_to_count_array’:
src/_HTSeq.c:12748: error: ‘PyArrayObject’ undeclared (first use in this function)
src/_HTSeq.c:12748: error: expected expression before ‘)’ token
src/_HTSeq.c:12748: error: too many arguments to function ‘(__pyx_v_self)->__pyx_vtab->add_bases_to_count_array’
src/_HTSeq.c: At top level:
src/_HTSeq.c:26013: error: expected ‘)’ before ‘*’ token
src/_HTSeq.c:26732: error: expected ‘)’ before ‘*’ token
src/_HTSeq.c:26809: error: expected ‘)’ before ‘*’ token
src/_HTSeq.c: In function ‘init_HTSeq’:
src/_HTSeq.c:30897: error: expected declaration specifiers or ‘...’ before ‘PyArrayObject’
src/_HTSeq.c:30908: error: expected declaration specifiers or ‘...’ before ‘PyArrayObject’
src/_HTSeq.c:30952: error: ‘PyArray_Descr’ undeclared (first use in this function)
src/_HTSeq.c:30953: error: ‘PyArrayIterObject’ undeclared (first use in this function)
src/_HTSeq.c:30954: error: ‘PyArrayMultiIterObject’ undeclared (first use in this function)
src/_HTSeq.c:30955: error: ‘PyArrayObject’ undeclared (first use in this function)
src/_HTSeq.c:30956: error: ‘PyUFuncObject’ undeclared (first use in this function)
src/_HTSeq.c: At top level:
src/_HTSeq.c:33035: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__Pyx_PyInt_from_py_npy_long’
error: command 'gcc' failed with exit status 1

Can you give any advice on how to proceed?

ADD COMMENTlink written 5.5 years ago by Nick250

You need to install numpy under the updated version of python. The first two errors that you listed above are what are causing the remaining errors.

ADD REPLYlink written 5.5 years ago by Devon Ryan88k

Yep. In the installation docs, this is the next sentence after "you need at least version 2.5 of Python"...

Theoretically you should be able to get it all set up with its dependencies ready to go by running:

easy_install HTSeq

Or I guess in your case:

python26 `which easy_install` HTSeq
ADD REPLYlink modified 5.5 years ago • written 5.5 years ago by matted7.0k

Thank you - it is a good advice but, unfortunately, it does not work in my case. The computer I am using does not have internet access so easy_install uses some sort of cached repository which lacks HTSeq:

[root@cltnfs ~]# easy_install HTSeq
Searching for HTSeq
Reading http://pypi.python.org/simple/HTSeq/
Download error on http://pypi.python.org/simple/HTSeq/: [Errno 113] No route to host -- Some packages may not be found!
Reading http://pypi.python.org/simple/HTSeq/
Download error on http://pypi.python.org/simple/HTSeq/: [Errno 113] No route to host -- Some packages may not be found!
Couldn't find index page for 'HTSeq' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Download error on http://pypi.python.org/simple/: [Errno 113] No route to host -- Some packages may not be found!
No local packages or download links found for HTSeq
error: Could not find suitable distribution for Requirement.parse('HTSeq')

Can you give me an advice how to proceed in these circumstances?

ADD REPLYlink modified 5.5 years ago • written 5.5 years ago by Nick250

To be blunt, my advice would be to find a machine that has internet access...

I'm not sure how you were installing things before, but it all will be much more challenging than it needs to be if you force yourself to operate under these conditions. I don't understand how yum was working, or how you got the HTSeq source originally.

ADD REPLYlink written 5.5 years ago by matted7.0k

Thank you, dpryan79. I, actually, did install it before I got the above error by doing

yum install python26-numpy

Any other suggestion?

ADD REPLYlink modified 5.5 years ago • written 5.5 years ago by Nick250

For some reason, the installation isn't working properly (I would presume that there's a PYTHON_PATH issue). Try directly running python26 and then import numpy to see if that works. It shouldn't, which means you need to either fix your PYTHON_PATH or reinstall numpy (you can go the more manual route of downloading the source code and doing python26 setup.py install).

ADD REPLYlink modified 5.5 years ago • written 5.5 years ago by Devon Ryan88k

Thank you for your advice. However, importing numpy in python26 works. Installation of htseq-count still doesn't.

ADD REPLYlink modified 5.5 years ago • written 5.5 years ago by Nick250

Good, do you still get the same error (namely, that it can't find arrayobject.h and ufuncobject.h)? If so, then there's still something amiss with the PATH, though otherwise things appear to be working properly. Are the missing files actually located under /usr/lib64/python2.6/site-packages/numpy/core/include/numpy or /usr/include/python2.6/numpy? If not, you might just copy them there and retry the installation.

ADD REPLYlink written 5.5 years ago by Devon Ryan88k

@dpryan79: Many thanks to you and to @matted for your kind help and advice. Our system administrator upgraded python and eliminated the network issue which was preventing me from accessing internet so it was no problem to do a normal installation of htseq-count. It's all fine now.

ADD REPLYlink written 5.4 years ago by Nick250
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 869 users visited in the last hour