Closed edanerg closed 3 years ago
@AlexWang000
@AlexWang000 I suggest starting a new environment. In particular, you can try deleting your old env, and then running these:
module load java/11
module load python/3.7
module load scipy-stack
ENVDIR=$HOME/venv/capreolus-env
virtualenv --no-download $ENVDIR
source $ENVDIR/bin/activate
pip install tf-models-official==2.5 tensorflow-ranking==0.4.2
cat requirements.txt | cut -d '#' -f 1 | grep "\S" | xargs -n 1 -i sh -c 'pip install --no-index {} || pip install {}'
pip install --no-index torch==1.9.0 spacy==2.2.2
Note that if you get disconnected from the instance you need to run the module/source commands before proceeding, to ensure dependencies are being installed in the correct env and not the system env.
@nimasadri11 I have tried this script several times, each time using a new env. I was also using module command every time. I get the same errors.
@AlexWang000 hi thanks for reporting this, the problem could probably solved by installing that perticular package using TMPDIR=~/scratch/tmp pip install pymagnitude --no-cache-dir
The reason behind that is probably someone has install the pymagnitude
before in the machine, and the /tmp/pymagnitude..
was never deleted and you are not permitted to change other's file.
Hey, @crystina-z @nimasadri11, thanks for the help
I was able to resolve the issue using:
module load java/11
module load python/3.7
module load scipy-stack
ENVDIR=$HOME/scratch/venv/capreolus-env
TMPDIR=$HOME/scratch/tmp
virtualenv --no-download $ENVDIR
source $ENVDIR/bin/activate
pip install tf-models-official==2.5 --no-cache-dir
pip install tensorflow-ranking==0.4.2 --no-cache-dir
cat requirements.txt | cut -d '#' -f 1 | grep "\S" | xargs -n 1 -i sh -c 'pip install --no-index {} || pip install {}'
pip install --no-index torch==1.9.0 spacy==2.2.2
It sill gives me similar errors (I guess some of them are from "pip install --no-index {}"), but now I can print the config and fine tune monobert.
@AlexWang000 great to hear that! I'll close the issue for now as the problem seems to be solved? feel free to reopen if it gets back later
I followed the setup-cc.md in the docs.
Errors I get while running
Errors I get while running:
I do have miniconda installed, although I don't think it is used in the script.
What have I tried:
This resolves the pg_config error, the tmp directory error and make pip use smart dependency resolver.
However I still get
when running