Closed mjfi2sb3 closed 5 years ago
Hi @mjfi2sb3,
Can you provide the command you are running to install pomoxis? Porechop is indeed not available on pypi, though the installation methods in the README.md (bar the last one if run as-is), should not cause an attempt to be made.
If you are a conda user you will most likely wish to follow the instructions under "Installation with conda", if not the instructions under "Installation from source" will be more appropriate.
Hi @cjw85,
I actually tried "Installation with conda" (CONDA=/path/to/anaconda3 make conda) and "Installation from source" (make install). Both gave the same error.
Best, /SB
On Mon, 7 Jan 2019 at 11:59, cjw85 notifications@github.com wrote:
Hi @mjfi2sb3 https://github.com/mjfi2sb3,
Can you provide the command you are running to install pomoxis? Porechop is indeed not available on pypi, though the installation methods in the README.md (bar the last one if run as-is), should not cause an attempt to be made.
If you are a conda user you will most likely wish to follow the instructions under "Installation with conda", if not the instructions under "Installation from source" will be more appropriate.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nanoporetech/pomoxis/issues/25#issuecomment-451865080, or mute the thread https://github.com/notifications/unsubscribe-auth/APR8U08AR_nKSoONulJL0P_nMm6tJFKtks5vAwxfgaJpZM4Zy_Ee .
--
This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.
The conda route would install Porechop using conda, so I am puzzled as to how you would get the above error message. Can you attach the full terminal output, perhaps something is going wrong earlier on?
Hi,
The command I run is
CONDA=/bcl-nas/apps/anaconda3/v2018.12/ make install
and the log is attached.
Best & thanks, /SB
On Mon, 7 Jan 2019 at 12:08, cjw85 notifications@github.com wrote:
The conda route would install Porechop using conda, so I am puzzled as to how you would get the above error message. Can you attach the full terminal output, perhaps something is going wrong earlier on?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nanoporetech/pomoxis/issues/25#issuecomment-451867313, or mute the thread https://github.com/notifications/unsubscribe-auth/APR8U4w7thzReDsymXkxtaEFtR5cOFFIks5vAw5zgaJpZM4Zy_Ee .
--
This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.
cd submodules/bwapy && make bwa/libbwa.a
make[1]: Entering directory /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/submodules/bwapy' make[1]:
bwa/libbwa.a' is up to date.
make[1]: Leaving directory `/bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/submodules/bwapy'
. ./venv/bin/activate && cd submodules/bwapy && python setup.py install
running install
running bdist_egg
running egg_info
writing bwapy.egg-info/PKG-INFO
writing dependency_links to bwapy.egg-info/dependency_links.txt
writing entry points to bwapy.egg-info/entry_points.txt
writing requirements to bwapy.egg-info/requires.txt
writing top-level names to bwapy.egg-info/top_level.txt
reading manifest file 'bwapy.egg-info/SOURCES.txt'
writing manifest file 'bwapy.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/egg
creating build/bdist.linux-x86_64/egg/bwapy
copying build/lib.linux-x86_64-3.7/bwapy/init.py -> build/bdist.linux-x86_64/egg/bwapy
copying build/lib.linux-x86_64-3.7/bwapy/libbwa.py -> build/bdist.linux-x86_64/egg/bwapy
copying build/lib.linux-x86_64-3.7/bwalib.cpython-37m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg
byte-compiling build/bdist.linux-x86_64/egg/bwapy/init.py to init.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/bwapy/libbwa.py to libbwa.cpython-37.pyc
creating stub loader for bwalib.cpython-37m-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/bwalib.py to bwalib.cpython-37.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying bwapy.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bwapy.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bwapy.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bwapy.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bwapy.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bwapy.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bwapy.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
creating 'dist/bwapy-0.1.3-py3.7-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 bwapy-0.1.3-py3.7-linux-x86_64.egg
removing '/bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/lib/python3.7/site-packages/bwapy-0.1.3-py3.7-linux-x86_64.egg' (and everything under it)
creating /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/lib/python3.7/site-packages/bwapy-0.1.3-py3.7-linux-x86_64.egg
Extracting bwapy-0.1.3-py3.7-linux-x86_64.egg to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/lib/python3.7/site-packages
bwapy 0.1.3 is already the active version in easy-install.pth
Installing bwamempy script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin
Installed /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/lib/python3.7/site-packages/bwapy-0.1.3-py3.7-linux-x86_64.egg Processing dependencies for bwapy==0.1.3 Searching for cffi==1.11.5 Best match: cffi 1.11.5 Adding cffi 1.11.5 to easy-install.pth file
Using /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/lib/python3.7/site-packages Searching for pycparser==2.19 Best match: pycparser 2.19 Adding pycparser 2.19 to easy-install.pth file
Using /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/lib/python3.7/site-packages Finished processing dependencies for bwapy==0.1.3 . ./venv/bin/activate && POMO_BINARIES=1 python setup.py install running install running bdist_egg running egg_info writing pomoxis.egg-info/PKG-INFO writing dependency_links to pomoxis.egg-info/dependency_links.txt writing entry points to pomoxis.egg-info/entry_points.txt writing requirements to pomoxis.egg-info/requires.txt writing top-level names to pomoxis.egg-info/top_level.txt reading manifest file 'pomoxis.egg-info/SOURCES.txt' writing manifest file 'pomoxis.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/pomoxis copying build/lib/pomoxis/init.py -> build/bdist.linux-x86_64/egg/pomoxis copying build/lib/pomoxis/watcher.py -> build/bdist.linux-x86_64/egg/pomoxis creating build/bdist.linux-x86_64/egg/pomoxis/align copying build/lib/pomoxis/align/init.py -> build/bdist.linux-x86_64/egg/pomoxis/align copying build/lib/pomoxis/align/bwa.py -> build/bdist.linux-x86_64/egg/pomoxis/align copying build/lib/pomoxis/align/common.py -> build/bdist.linux-x86_64/egg/pomoxis/align copying build/lib/pomoxis/align/minimap.py -> build/bdist.linux-x86_64/egg/pomoxis/align copying build/lib/pomoxis/align/py2client.py -> build/bdist.linux-x86_64/egg/pomoxis/align creating build/bdist.linux-x86_64/egg/pomoxis/common copying build/lib/pomoxis/common/init.py -> build/bdist.linux-x86_64/egg/pomoxis/common copying build/lib/pomoxis/common/bio.py -> build/bdist.linux-x86_64/egg/pomoxis/common copying build/lib/pomoxis/common/catalogue_errors.py -> build/bdist.linux-x86_64/egg/pomoxis/common copying build/lib/pomoxis/common/common_errors_from_bam.py -> build/bdist.linux-x86_64/egg/pomoxis/common copying build/lib/pomoxis/common/coverage_from_bam.py -> build/bdist.linux-x86_64/egg/pomoxis/common copying build/lib/pomoxis/common/qscores_from_summary.py -> build/bdist.linux-x86_64/egg/pomoxis/common copying build/lib/pomoxis/common/ref_seqs_from_bam.py -> build/bdist.linux-x86_64/egg/pomoxis/common copying build/lib/pomoxis/common/simulate_calls.py -> build/bdist.linux-x86_64/egg/pomoxis/common copying build/lib/pomoxis/common/stats_from_bam.py -> build/bdist.linux-x86_64/egg/pomoxis/common copying build/lib/pomoxis/common/subsample_bam.py -> build/bdist.linux-x86_64/egg/pomoxis/common copying build/lib/pomoxis/common/summary_from_stats.py -> build/bdist.linux-x86_64/egg/pomoxis/common copying build/lib/pomoxis/common/trim_alignments.py -> build/bdist.linux-x86_64/egg/pomoxis/common copying build/lib/pomoxis/common/util.py -> build/bdist.linux-x86_64/egg/pomoxis/common creating build/bdist.linux-x86_64/egg/pomoxis/provider copying build/lib/pomoxis/provider/init.py -> build/bdist.linux-x86_64/egg/pomoxis/provider copying build/lib/pomoxis/provider/replayfast5.py -> build/bdist.linux-x86_64/egg/pomoxis/provider byte-compiling build/bdist.linux-x86_64/egg/pomoxis/init.py to init.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/watcher.py to watcher.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/align/init.py to init.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/align/bwa.py to bwa.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/align/common.py to common.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/align/minimap.py to minimap.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/align/py2client.py to py2client.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/common/init.py to init.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/common/bio.py to bio.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/common/catalogue_errors.py to catalogue_errors.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/common/common_errors_from_bam.py to common_errors_from_bam.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/common/coverage_from_bam.py to coverage_from_bam.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/common/qscores_from_summary.py to qscores_from_summary.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/common/ref_seqs_from_bam.py to ref_seqs_from_bam.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/common/simulate_calls.py to simulate_calls.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/common/stats_from_bam.py to stats_from_bam.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/common/subsample_bam.py to subsample_bam.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/common/summary_from_stats.py to summary_from_stats.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/common/trim_alignments.py to trim_alignments.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/common/util.py to util.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/provider/init.py to init.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/pomoxis/provider/replayfast5.py to replayfast5.cpython-37.pyc installing package data to build/bdist.linux-x86_64/egg running install_data creating build/bdist.linux-x86_64/egg/exes copying bincache/minimap2 -> build/bdist.linux-x86_64/egg/exes copying bincache/miniasm -> build/bdist.linux-x86_64/egg/exes copying bincache/racon -> build/bdist.linux-x86_64/egg/exes copying bincache/samtools -> build/bdist.linux-x86_64/egg/exes copying bincache/bcftools -> build/bdist.linux-x86_64/egg/exes copying bincache/seqkit -> build/bdist.linux-x86_64/egg/exes 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-3.7/assess_assembly -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts copying build/scripts-3.7/intersect_assembly_errors -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts copying build/scripts-3.7/mini_align -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts copying build/scripts-3.7/mini_assemble -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/assess_assembly to 755 changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/intersect_assembly_errors to 755 changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/mini_align to 755 changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/mini_assemble to 755 copying pomoxis.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying pomoxis.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying pomoxis.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying pomoxis.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying pomoxis.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO copying pomoxis.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying pomoxis.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO creating 'dist/pomoxis-0.2.0-py3.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing pomoxis-0.2.0-py3.7.egg removing '/bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/lib/python3.7/site-packages/pomoxis-0.2.0-py3.7.egg' (and everything under it) creating /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/lib/python3.7/site-packages/pomoxis-0.2.0-py3.7.egg Extracting pomoxis-0.2.0-py3.7.egg to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/lib/python3.7/site-packages pomoxis 0.2.0 is already the active version in easy-install.pth Installing assess_assembly script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing intersect_assembly_errors script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing mini_align script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing mini_assemble script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing align_serve script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing catalogue_errors script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing common_errors_from_bam script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing coverage_from_bam script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing coverage_from_fastx script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing fast_convert script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing long_fastx script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing pomoxis_path script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing qscores_from_summary script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing read_until_filter script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing ref_seqs_from_bam script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing simulate_calls script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing split_fastx script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing stats_from_bam script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing subsample_bam script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing summary_from_stats script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin Installing trim_alignments script to /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/bin
Installed /bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/lib/python3.7/site-packages/pomoxis-0.2.0-py3.7.egg Processing dependencies for pomoxis==0.2.0 Searching for Porechop Reading https://pypi.org/simple/Porechop/ File "build/bdist.linux-x86_64/egg/pomoxis/init.py", line 20 asyncio.async(wakeup()) ^ SyntaxError: invalid syntax
File "build/bdist.linux-x86_64/egg/pomoxis/watcher.py", line 85 self._loop.call_soon_threadsafe(asyncio.async, self._process_file(event)) ^ SyntaxError: invalid syntax
File "/bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/lib/python3.7/site-packages/pomoxis-0.2.0-py3.7.egg/pomoxis/init.py", line 20 asyncio.async(wakeup()) ^ SyntaxError: invalid syntax
File "/bcl-nas/apps/pomoxis-v0.2.0-git1c2032c_02/venv/lib/python3.7/site-packages/pomoxis-0.2.0-py3.7.egg/pomoxis/watcher.py", line 85 self._loop.call_soon_threadsafe(asyncio.async, self._process_file(event)) ^ SyntaxError: invalid syntax
Couldn't find index page for 'Porechop' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.org/simple/ No local packages or working download links found for Porechop error: Could not find suitable distribution for Requirement.parse('Porechop') make: *** [install] Error 1
I think the command you want to be running is:
CONDA=/bcl-nas/apps/anaconda3/v2018.12/ make conda
(I can see there is a typo in the README which we will correct). You are using python3.7, with which we do not test; you can see some errors in the log which pertain to this, though I doubt they are the cause of the Porechop issue.
Hi,
It seems that you are right CONDA=/bcl-nas/apps/anaconda3/v2018.12/ make conda
is the command I should have used (see attached log). However, when
I run some of the commands such as trim_alignments -h I get the
following error. Is this due to the python version?
` trim_alignments -h Traceback (most recent call last): File "/bcl-nas/apps/anaconda3/v2018.12/bin/trim_alignments", line 11, in
I believe this is an issue with using python 3.7: a quick look at the python 3.7 release notes tells me async
and await
are now reserved keywords, so the above code is not valid python 3.7.
As such pomoxis is not compatible with python 3.7 (and isnt likely to be made so in the immediate future).
Hi @cjw85;
yes, I created a virtual environment for python 3.6 under anaconda (conda create -n py36 python=3.6 anaconda) then installed pomoxis in this environment as you described (CONDA=/bcl-nas/apps/anaconda3/v2018.12_02/envs/py36/ make conda). This seems to have solved the problem and all tools seem to work including those that call porechop.
Best & thanks again. /SB
--
This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.
Thanks for confirming everything is now working.
Hi,
I am getting the following error related to porechop while compiling. Any suggestions how to resolve?
Processing dependencies for pomoxis==0.2.0 Searching for Porechop Reading https://pypi.org/simple/Porechop/ Couldn't find index page for 'Porechop' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.org/simple/ No local packages or working download links found for Porechop error: Could not find suitable distribution for Requirement.parse('Porechop') make: *** [install] Error 1