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

Installing EDSNLP #397

Open
ohassanaly opened this issue Apr 3, 2025 · 1 comment
Open

Installing EDSNLP #397

ohassanaly opened this issue Apr 3, 2025 · 1 comment

Comments

@ohassanaly
Copy link

I am unable to pip install edsnlp

How to reproduce the bug

Created a new conda env with python 3.7.12
then running pip install edsnlp

here is the log

pip install edsnlp
Looking in indexes: https://pypi.org/simple, https://jupyter-read:****@gitlab.eds.aphp.fr/api/v4/groups/497/-/packages/pypi/simple, https://jupyter-read:****@gitlab.eds.aphp.fr/api/v4/projects/1962/packages/pypi/simple
Collecting edsnlp
/export/home/cse240030/.user_conda/miniconda/lib/python3.7/site-packages/cryptography/hazmat/backends/openssl/x509.py:17: CryptographyDeprecationWarning: This version of cryptography contains a temporary pyOpenSSL fallback path. Upgrade pyOpenSSL now.
utils.DeprecatedIn35,
Using cached https://files.pythonhosted.org/packages/8b/d2/0ab8dabd3a2001bf00355f771d1019c33068b94bd10c5314a72f41fee68d/edsnlp-0.16.0.tar.gz
Exception:
Traceback (most recent call last):
File "/export/home/cse240030/.user_conda/miniconda/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 179, in main
status = self.run(options, args)
File "/export/home/cse240030/.user_conda/miniconda/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 315, in run
resolver.resolve(requirement_set)
File "/export/home/cse240030/.user_conda/miniconda/lib/python3.7/site-packages/pip/_internal/resolve.py", line 131, in resolve
self._resolve_one(requirement_set, req)
File "/export/home/cse240030/.user_conda/miniconda/lib/python3.7/site-packages/pip/_internal/resolve.py", line 294, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/export/home/cse240030/.user_conda/miniconda/lib/python3.7/site-packages/pip/_internal/resolve.py", line 242, in _get_abstract_dist_for
self.require_hashes
File "/export/home/cse240030/.user_conda/miniconda/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 349, in prepare_linked_requirement
abstract_dist.prep_for_dist(finder, self.build_isolation)
File "/export/home/cse240030/.user_conda/miniconda/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 109, in prep_for_dist
self.req.load_pyproject_toml()
File "/export/home/cse240030/.user_conda/miniconda/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 489, in load_pyproject_toml
str(self)
File "/export/home/cse240030/.user_conda/miniconda/lib/python3.7/site-packages/pip/_internal/pyproject.py", line 66, in load_pyproject_toml
pp_toml = pytoml.load(f)
File "/export/home/cse240030/.user_conda/miniconda/lib/python3.7/site-packages/pip/_vendor/pytoml/parser.py", line 11, in load
return loads(fin.read(), translate=translate, object_pairs_hook=object_pairs_hook, filename=getattr(fin, 'name', repr(fin)))
File "/export/home/cse240030/.user_conda/miniconda/lib/python3.7/site-packages/pip/_vendor/pytoml/parser.py", line 24, in loads
ast = _p_toml(src, object_pairs_hook=object_pairs_hook)
File "/export/home/cse240030/.user_conda/miniconda/lib/python3.7/site-packages/pip/_vendor/pytoml/parser.py", line 340, in _p_toml
s.expect_eof()
File "/export/home/cse240030/.user_conda/miniconda/lib/python3.7/site-packages/pip/_vendor/pytoml/parser.py", line 125, in expect_eof
return self._expect(self.consume_eof())
File "/export/home/cse240030/.user_conda/miniconda/lib/python3.7/site-packages/pip/_vendor/pytoml/parser.py", line 165, in _expect
raise TomlError('msg', self._pos[0], self._pos[1], self._filename)
pip._vendor.pytoml.core.TomlError: /tmp/pip-install-d2jdgdq7/edsnlp/pyproject.toml(356, 1): msg

@LucasDedieu
Copy link
Collaborator

Hello,

I tried to reproduce the issue by creating a fresh Conda environment with Python 3.7.12 and running pip install edsnlp, but the installation worked without any errors.

Could you provide more details about your setup?

  • Do you experience the same issue with an earlier version of edsnlp? Try: pip install edsnlp==0.15.0
  • Have you tried upgrading dependencies before installing edsnlp? You can do this with: pip install --upgrade pyOpenSSL cryptography before installing edsnlp

Let me know what you find!

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