genoml2 icon indicating copy to clipboard operation
genoml2 copied to clipboard

Microsoft PC - "pip install ." decoding error

Open dazweibaum opened this issue 2 years ago • 0 comments

During the creation of the virtual environment

# Make virtual env conda create -n dev_genoml2 python=3.9 conda activate dev_genoml2

# Install GenoML to this pip install umap-learn pip install .

# Run step 1 genoml discrete supervised munge \ --prefix /Users/makariousmb/Documents/GitHub/dev_genoml2/outputs/test_discrete_geno \ --geno /Users/makariousmb/Documents/GitHub/dev_genoml2/examples/discrete/training \ --pheno /Users/makariousmb/Documents/GitHub/dev_genoml2/examples/discrete/training_pheno.csv

pip install . on windows machine Anaconda Terminal causes error "python setup.py egg_info did not run successfully." This is related to a charmap decoding error in the README.md file. The specific lines in setup.py that cause this error are

with open("README.md", "r") as fh: long_description = fh.read()

Commenting out these lines (21 and 22) and related lines 31 and 32 resolves this issue and allows pip install . to function properly

dazweibaum avatar Oct 05 '23 15:10 dazweibaum