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

Python2 and 3 support not feasible on HPC environments #82

Open
Psy-Fer opened this issue Aug 22, 2019 · 6 comments
Open

Python2 and 3 support not feasible on HPC environments #82

Psy-Fer opened this issue Aug 22, 2019 · 6 comments

Comments

@Psy-Fer
Copy link

Psy-Fer commented Aug 22, 2019

Hello,

trying to install this, the 2 python2 packages fail, as in order to install them , I need a python 2.7+ venv, while also having a python 3.6 venv. Is it possible to make this ONLY python 3?

@Psy-Fer
Copy link
Author

Psy-Fer commented Aug 22, 2019

Or, perhaps an explanation of how to do a --user install that doesn't, for example, use .local/bin (can we change this to isolate virtual environments?) that can use a python3 venv and a python2 venv, on centOS

@tjakobi
Copy link
Contributor

tjakobi commented Aug 22, 2019

Dear @Psy-Fer,

thank you for your feedback. Actually, I am working on porting everything to Python 3 and there are only a few pieces of code in dieterich-lab/FUCHS that require some more convincing.

In the meantime, since circtools directly calls the two Python 2 programs via os.system() you may install circtools into a Python 3 venv and DCC + FUCHS in a Python 2 venv - just make sure DCC and FUCHS are in $PATH.

Cheers,
Tobias

@Psy-Fer
Copy link
Author

Psy-Fer commented Aug 22, 2019

Ahh absolute legend.

I'll give that a go and let you know how I get along.
Thanks!

@Psy-Fer
Copy link
Author

Psy-Fer commented Aug 23, 2019

Hello

okay so after hacking at the python2 and python3 virtual environments for a bit, I added the following to the python3 activate script

VIRTUAL_ENV="/home/jamfer/work/sandy363"
export VIRTUAL_ENV

_OLD_VIRTUAL_PATH="$PATH"
PATH="$VIRTUAL_ENV/bin:$PATH"
PATH="/home/jamfer/work/sandy2714/bin:$PATH"
export PATH

#iexport PATH="/home/jamfer/work/DCC/scripts:$PATH"
#export PATH="/home/jamfer/work/FUCHS/scripts:$PATH"
export PATH="/home/jamfer/.local/bin:$PATH"
export PYTHONPATH="/home/jamfer/.local/lib/python3.6/site-packages/"
export PYTHONPATH="/home/jamfer/.local/lib/python2.7/site-packages/:$PYTHONPATH"

This allowed for the python2 to get executed by the python2, and python3 to get hit by python3, while being able to see the lib site-packages of each.

I'll run a test of the full thing soon when my colleague is ready.

Cheers,
James

@iichelhadi
Copy link

Dear @Psy-Fer,

thank you for your feedback. Actually, I am working on porting everything to Python 3 and there are only a few pieces of code in dieterich-lab/FUCHS that require some more convincing.

In the meantime, since circtools directly calls the two Python 2 programs via os.system() you may install circtools into a Python 3 venv and DCC + FUCHS in a Python 2 venv - just make sure DCC and FUCHS are in $PATH.

Cheers,
Tobias

Hi Tobias,
Any progress on this? I am having difficulty installing DCC and FUCHS on HPC using different env for circtools with python3 and DCC env with python2. Issue is that DCC requires HTSeq which is only available for python3

regards

@tjakobi
Copy link
Contributor

tjakobi commented Jun 23, 2021

Dear @iichelhadi,

the latest versions of DCC and FUCHS are both Python3 based and should work without separate venvs.

How did you install circtools/DCC/FUCHS?

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

3 participants