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

Error with installation #48

Open
dgg95223 opened this issue May 8, 2024 · 5 comments
Open

Error with installation #48

dgg95223 opened this issue May 8, 2024 · 5 comments

Comments

@dgg95223
Copy link

dgg95223 commented May 8, 2024

Dear developers,
I am trying to install a cpu version of Uni-Core on WSL from the source using command python setup.py install --disable-cuda-ext. But I always get the following message:
error: urllib3 2.2.1 is installed but urllib3<1.27,>=1.21.1 is required by {'requests'}
After I install urllib3 1.26, it still goes wrong as showing below:

Processing dependencies for unicore==0.0.1
error: urllib3 2.2.1 is installed but urllib3<1.27,>=1.21.1 is required by {'requests'}
(venv_torch) (base) jingheng@Bai-Group:~/Uni-Core$ pip uninstall urllib3==2.2.1
Found existing installation: urllib3 1.26.0
Uninstalling urllib3-1.26.0:
Would remove:
/home/jingheng/venv_torch/lib/python3.9/site-packages/urllib3-1.26.0.dist-info/*
/home/jingheng/venv_torch/lib/python3.9/site-packages/urllib3/*
Proceed (Y/n)?

I am not sure what the problem is, please let me know how to fix it. Thank you.

@emotionor
Copy link

This error may be due to multiple versions of urllib3 in your environment. Maybe you can try uninstalling urllib3 completely and reinstalling a compatible version.

pip uninstall urllib3
pip install urllib3==1.26.0

@dgg95223
Copy link
Author

Thank you for your reply.

pip uninstall urllib3
pip install urllib3==1.26.0

I have tried this method and checked the version of urllib3 with pip list.

unicore 0.0.1
Unidecode 1.2.0
unimol 1.0.0
unimol-tools 1.0.0
urllib3 1.26.0

But the same error keeps popping out.

@emotionor
Copy link

If you are using the right environment but error: urllib3 2.2.1 is installed still exists, you can check your /home/jingheng/venv_torch/lib/python3.9/site-packages/ path. Maybe urllib3 2.2.1 hasn't been completely uninstalled, you can remove it manually.

@dgg95223
Copy link
Author

dgg95223 commented May 14, 2024

Thank you very much for your help. After I manually remove urllib3 2.2.1 from /home/jingheng/venv_torch/lib/python3.9/site-packages/, it finally finishes installation. However, another issue arises when I do import unicore:

fused_multi_tensor is not installed corrected
fused_rounding is not installed corrected
fused_layer_norm is not installed corrected
fused_softmax is not installed corrected

Is it something wrong with my gcc compiler leading to this error?
How can I fix it? Thank you again for your time and patience.

@emotionor
Copy link

This is due to that these libraries used for cuda acceleration were not successfully compiled. Don't worry, unicore works fine at this point.

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