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

When I run python Helixer.py, met: "ImportError: cannot import name 'where' from 'certifi' (unknown location" #134

Open
kuangzhuoran opened this issue Jun 20, 2024 · 1 comment

Comments

@kuangzhuoran
Copy link

I just installed Helixer like:
pip install -r requirements.3.10.txt
pip install .

Then I run "python Helixer.py -h", I met error: "ImportError: cannot import name 'where' from 'certifi' (unknown location"

(zhuoran) [kuangzhuoran@mu01 Helixer]$ python ./Helixer.py
Traceback (most recent call last):
File "/beegfs/home/kuangzhuoran/software/Helixer/./Helixer.py", line 13, in
from helixer.core.data import prioritized_models, report_if_current_not_best, identify_current, MODEL_PATH
File "/beegfs/home/kuangzhuoran/software/Helixer/helixer/core/data.py", line 5, in
import requests
File "/beegfs/home/kuangzhuoran/miniconda3/envs/zhuoran/lib/python3.10/site-packages/requests/init.py", line 147, in
from . import packages, utils
File "/beegfs/home/kuangzhuoran/miniconda3/envs/zhuoran/lib/python3.10/site-packages/requests/utils.py", line 24, in
from . import certs
File "/beegfs/home/kuangzhuoran/miniconda3/envs/zhuoran/lib/python3.10/site-packages/requests/certs.py", line 14, in
from certifi import where
ImportError: cannot import name 'where' from 'certifi' (unknown location)

@alisandra
Copy link
Collaborator

Not sure on why this error is coming up, but using singularity (now named apptainer) is surely an easier way to install Helixer:

get apptainer installed: https://apptainer.org/docs/admin/main/installation.html

run like this (except replace 'singularity' with 'apptainer') https://github.com/gglyptodon/helixer-docker#running-via-singularity

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

2 participants