Comments (18)
Hi @avilella!
Thank you for reporting this issue. I've been able to reproduce it in a virtual machine. The problem seems to be that checkqc requires a python version greater than 3.5. I'll make sure that this information is added to the README.
I followed this guide to install python3.5. And then I created a virtual environment with python3.5 to install checkqc into.
I then installed pip and created a virtual environment using python 3.5 to run checkqc, and this appears to work:
sudo apt-get install python3-pip
sudo pip3 install virtualenv
virtualenv --python=python3.5 venv-py3.5
source venv-py3.5/bin/activate
pip install -f https://github.com/Illumina/interop/releases/tag/v1.1.1 interop
pip install checkqc
checkqc --version
Does this work for you? I'll make sure to update the documentation accordingly.
from checkqc.
from checkqc.
from checkqc.
from checkqc.
I'm not familiar with the DNA Nexus Make files, but looking at the log above it looks like it is still trying to use python 3.4.
Could you try using this guide to make sure you have python 3.5 installed first?https://askubuntu.com/questions/682869/how-do-i-install-a-different-python-version-using-apt-get
If that does not work perhaps you could try starting by trying to update pip? I'm not sure exactly which version would be required, but this is what it looks like in the Ubuntu 14.04 virtual machine that I'm running:
(venv-py3.5) vagrant@vagrant-ubuntu-trusty-64:~$ pip --version
pip 9.0.1 from /home/vagrant/venv-py3.5/lib/python3.5/site-packages (python 3.5)
from checkqc.
from checkqc.
Hey @avilella. If you have Python2 and Python3 installed along each other then running pip
will often still refer to the version 2 ecosystem, whereas pip3
should use the version 3.
I.e. in your list of commands above try running pip3 --version
, pip3 install -f https://github.com/Illumina/interop/releases/tag/v1.1.1 interop
, pip3 install checkqc
instead.
Sometimes when environments have been mixed up incorrectly it can also work to call the Python binary and load the pip module manually (instead of going through the pip wrapper). I.e. a pip3 install foo
would become python3 -m pip install foo
.
from checkqc.
Hi @avilella!
Did you manage to resolve this issue, or is there something we can do to help?
from checkqc.
from checkqc.
It seems that it is still using python 3.4 which is unsupported. Here is an idea which might force the correct binaries to be used throughout:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo rm -f /etc/apt/apt.conf.d/99dnanexus
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install -y python3.5
sudo apt-get install -y python3-pip
sudo pip3 install virtualenv
virtualenv --python=python3.5 venv-py3.5
/home/dnanexus/venv-py3.5/bin/pip3.5 install --upgrade pip
/home/dnanexus/venv-py3.5/bin/pip3.5 --version
/home/dnanexus/venv-py3.5/bin/pip3.5 install -f https://github.com/Illumina/interop/releases/tag/v1.1.1 interop
/home/dnanexus/venv-py3.5/bin/pip3.5 install checkqc
/home/dnanexus/venv-py3.5/bin/checkqc --version
Not very pretty, but explicitly pointing to the correct version binaries should hopefully make sure the correct once are used all the way through.
from checkqc.
Hi @avilella !
The interop libraries are now available to install via PyPI. This might make it easier for you to install. We still require a python 3.5 as the minimum supported python version, though.
from checkqc.
from checkqc.
Yes. But you can skip the /home/dnanexus/venv-py3.5/bin/pip3.5 install -f https://github.com/Illumina/interop/releases/tag/v1.1.1 interop
part. The updated recipe should be something like this:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo rm -f /etc/apt/apt.conf.d/99dnanexus
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install -y python3.5
sudo apt-get install -y python3-pip
sudo pip3 install virtualenv
virtualenv --python=python3.5 venv-py3.5
/home/dnanexus/venv-py3.5/bin/pip3.5 install --upgrade pip
/home/dnanexus/venv-py3.5/bin/pip3.5 --version
/home/dnanexus/venv-py3.5/bin/pip3.5 install checkqc
/home/dnanexus/venv-py3.5/bin/checkqc --version
from checkqc.
Hi @avilella !
I'm just curious to hear if you got CheckQC working following the instructions above?
from checkqc.
from checkqc.
I think it should be available from here /home/dnanexus/venv-py3.5/bin/checkqc
. So if you point directly at that binary it should run.
from checkqc.
I tested the pip install method on 16.04, which is now supported in DNAnexus, and it worked. The 14.04 still an issue, but less so with the 16.04 option.
from checkqc.
I'm happy to hear that this worked out.
from checkqc.
Related Issues (20)
- Fix or remove CodeCov HOT 1
- Improve README
- Display expected thresholds in normal mode
- FileNotFoundError: [Errno 2] No such file or directory: '... /Unaligned/Stats/Stats.json' HOT 2
- Path to bcl2fastq output in config
- Reads per sample handler always report threshold based on one sample per lane
- Error when using lower bound in read length interval HOT 4
- checkQC can't handle total yield being zero
- API docs does not get generate on readthedocs.io HOT 1
- Supporting NextSeq and MiniSeq HOT 12
- Who is using CheckQC?
- iSeq support missing in README
- Undetermined index handler: Evaluate dual indexes separately
- Detect index switch + reverse complemented index
- Issues for NovaSeq SP with interop==1.1.9
- Feature request - e-mail reports HOT 3
- Nextseq2000 support
- Error in code for UndeterminedPercentageHandler HOT 2
- Make sure automatic tests are run for multiple python versions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from checkqc.