Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: [Errno 2] No such file or directory: 'porechop/cpp_functions.so' #74

Open
EPKok opened this issue Sep 11, 2018 · 5 comments
Open

Comments

@EPKok
Copy link

EPKok commented Sep 11, 2018

Executed python3 setup.py install --user and encountered this issue during installation:

running install_egg_info
running egg_info
writing porechop.egg-info/PKG-INFO
writing dependency_links to porechop.egg-info/dependency_links.txt
writing entry points to porechop.egg-info/entry_points.txt
writing top-level names to porechop.egg-info/top_level.txt
reading manifest file 'porechop.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'porechop.egg-info/SOURCES.txt'
Copying porechop.egg-info to /home/kokep/.local/lib/python3.6/site-packages/porechop-0.2.3-py3.6.egg-info
running install_scripts
Installing porechop script to /home/kokep/.local/bin
error: [Errno 2] No such file or directory: 'porechop/cpp_functions.so'

Where can I find "cpp_functions.so"?
Thanks in advance.

@EPKok
Copy link
Author

EPKok commented Sep 12, 2018

This issue is solved. The older version of gcc was directed. I manually export CC and CXX. However, after installation, when I executed porechop, this error showed up
could not find cpp_functions.so - please reinstall
cpp_functions.so is already in porechop directory but it cannot be detected.

@Sn0flingan
Copy link

Sounds like you still are having compiler issues. I would reinstall both Porechop and gcc and try again.

@lab-rat-kid
Copy link

lab-rat-kid commented Nov 14, 2019

I also get errors installing

Compiling Porechop: make -j 8
g++ -std=c++14 -Iporechop/include -fPIC -O3 -D NDEBUG -Wall -Wextra -pedantic -mtune=native -c -o porechop/src/adapter_align.o porechop/src/adapter_align.cpp
g++ -std=c++14 -Iporechop/include -fPIC -O3 -D NDEBUG -Wall -Wextra -pedantic -mtune=native -c -o porechop/src/alignment.o porechop/src/alignment.cpp
cc1plus: error: unrecognized command line option "-std=c++14"
cc1plus: error: unrecognized command line option "-std=c++14"
make: *** [porechop/src/alignment.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [porechop/src/adapter_align.o] Error 1

also

error: [Errno 2] No such file or directory: 'porechop/cpp_functions.so'

I'm using:
g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)

@yeemey
Copy link

yeemey commented Jan 7, 2020

@lab-rat-kid, the README recommends GCC 4.9.1 or later. You might want to try GCC 5.

From the README notes:

If you'd like to specify which compiler to use, set the CXX variable: export CXX=g++-6; python3 setup.py install

I managed to get it installed with GCC 7, but ran into the next error: could not find cpp_functions.so - please reinstall. I finally decided to build and run without installation (i.e., ./porechop-runner.py) instead of fiddling with installing porechop in my conda environment because of this issue.

@jiaxuluo
Copy link

jiaxuluo commented Apr 1, 2024

conda install https://anaconda.org/brown-data-science/gcc/5.4.0/download/linux-64/gcc-5.4.0-0.tar.bz2
I use this command to install gcc-5 in conda environment and it works.
Here is the original link: https://gist.github.com/goldsborough/d466f43e8ffc948ff92de7486c5216d6?permalink_comment_id=4370936#gistcomment-4370936

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants