rrwick / Porechop

adapter trimmer for Oxford Nanopore reads
GNU General Public License v3.0
322 stars 123 forks source link

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

Open EPKok opened 5 years ago

EPKok commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

lab-rat-kid commented 4 years ago

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 commented 4 years ago

@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 commented 3 months ago

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