question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation error: undefined symbol: PyFPE_jbuf

See original GitHub issue

On an up to date Centos 7 installation, I can’t do anything to make this error go away. I understand that it shouldn’t effect our ability to run the software, but the error remains.

[root@slurm-01 cutadapt-1.9.1]# find . -name "*.pyc" -exec rm -rf {} \;
[root@slurm-01 cutadapt-1.9.1]# 
[root@slurm-01 cutadapt-1.9.1]# /usr/bin/python2.7 setup.py build_ext -i
running build_ext
[root@slurm-01 cutadapt-1.9.1]# bin/cutadapt --help

ERROR: A required extension module could not be imported because it is
incompatible with your system. A quick fix is to recompile the extension
modules with the following command:

    /usr/bin/python setup.py build_ext -i

See the documentation for alternative ways of installing the program.

The original error message follows.

Traceback (most recent call last):
  File "bin/cutadapt", line 9, in <module>
    from cutadapt.scripts import cutadapt
  File "/config/binaries/cutadapt/cutadapt-1.9.1/cutadapt/scripts/cutadapt.py", line 62, in <module>
    check_importability()
  File "/config/binaries/cutadapt/cutadapt-1.9.1/cutadapt/__init__.py", line 9, in check_importability
    import cutadapt._align
ImportError: /config/binaries/cutadapt/cutadapt-1.9.1/cutadapt/_align.so: undefined symbol: PyFPE_jbuf
[root@slurm-01 cutadapt-1.9.1]# python2.7 bin/cutadapt --help

ERROR: A required extension module could not be imported because it is
incompatible with your system. A quick fix is to recompile the extension
modules with the following command:

    /usr/bin/python2.7 setup.py build_ext -i

See the documentation for alternative ways of installing the program.

The original error message follows.

Traceback (most recent call last):
  File "bin/cutadapt", line 9, in <module>
    from cutadapt.scripts import cutadapt
  File "/config/binaries/cutadapt/cutadapt-1.9.1/cutadapt/scripts/cutadapt.py", line 62, in <module>
    check_importability()
  File "/config/binaries/cutadapt/cutadapt-1.9.1/cutadapt/__init__.py", line 9, in check_importability
    import cutadapt._align
ImportError: /config/binaries/cutadapt/cutadapt-1.9.1/cutadapt/_align.so: undefined symbol: PyFPE_jbuf
[root@slurm-01 cutadapt-1.9.1]# 

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
datakidcommented, Apr 14, 2016

Ah! I ended up setting up with python setup.py install --prefix= and python3 setup.py install --prefix=, then having two modulefiles.

The important part in the modulefiles, to avoid this error

from cutadapt.scripts import cutadapt
ImportError: No module named cutadapt.scripts

is to setenv PYTHONPATH=$path/lib64/python[x]/site-packages/ and where necessary set-alias python '/usr/bin/python3'

0reactions
marcelmcommented, Jan 12, 2018

You can try pip3 install instead to get a cutadapt with multi-core support. (Which is only available on Python 3.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

numpy undefined symbol: PyFPE_jbuf - python - Stack Overflow
7 environment I went to install a particular package Ta-lib via pip, but then had this same Question's import error relating to numpy...
Read more >
undefined symbol: PyFPE_jbuf #7542 - scikit-learn ... - GitHub
I uninstalled numpy and scipy and then reinstalled from conda-forge however I'm still getting this error. numpy.__path__ gives the conda path.
Read more >
crm print undefined symbol: PyFPE_jbuf | Support - SUSE
After installing the recent updates, crm print the following error: ha3:~ # crm status Fatal error: ...
Read more >
Ubuntu 17.10 undefined symbol: PyFPE_jbuf - Google Groups
Hello there, I am having fresh Ubuntu 17.10 installation. This is what happens:
Read more >
ImportError: rknn/api/rknn_base.cpython-35m-x86_64-linux ...
After I installed rknn toolkit successfully on my PC (ubuntu 18.04 LTS), try to import rknn.api the ... undefined symbol: PyFPE_jbuf.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found