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

Fix name in pyproject.toml #12

Closed
wants to merge 1 commit into from
Closed

Fix name in pyproject.toml #12

wants to merge 1 commit into from

Conversation

alkino
Copy link
Contributor

@alkino alkino commented Jan 12, 2023

Otherwise, we got an error when trying to install sphinx.

  File "<string>", line 2, in <module>
  File "<pip-setuptools-caller>", line 34, in <module>
  File "./setup.py", line 116, in <module>
    setup(
  File "./venv/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 507, in setup
    return setuptools.setup(**kw)
  File "./venv/lib/python3.10/site-packages/setuptools/__init__.py", line 86, in setup
    _install_setup_requires(attrs)
  File "./venv/lib/python3.10/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "./venv/lib/python3.10/site-packages/setuptools/dist.py", line 875, in fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
  File "./venv/lib/python3.10/site-packages/pkg_resources/__init__.py", line 802, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (sphinxcontrib.applehelp 1.0.3 (./.eggs/sphinxcontrib.applehelp-1.0.3-py3.10.egg), Requirement.parse('sphinxcontrib-applehelp'), {'sphinx'})

@alkino
Copy link
Contributor Author

alkino commented Jan 12, 2023

This is a blind fix because the problem is sphinxcontrib.applehelp vs sphinxcontrib-applehelp

For now a fix is to depends of sphinxcontrib-applehelp<1.0.3 before including sphinx.

@alkino alkino marked this pull request as draft January 12, 2023 16:47
Otherwise, we got an error when trying to install sphinx.

Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "<pip-setuptools-caller>", line 34, in <module>
  File "./setup.py", line 116, in <module>
    setup(
  File "./venv/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 507, in setup
    return setuptools.setup(**kw)
  File "./venv/lib/python3.10/site-packages/setuptools/__init__.py", line 86, in setup
    _install_setup_requires(attrs)
  File "./venv/lib/python3.10/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "./venv/lib/python3.10/site-packages/setuptools/dist.py", line 875, in fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
  File "./venv/lib/python3.10/site-packages/pkg_resources/__init__.py", line 802, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (sphinxcontrib.applehelp 1.0.3 (./.eggs/sphinxcontrib.applehelp-1.0.3-py3.10.egg), Requirement.parse('sphinxcontrib-applehelp'), {'sphinx'})
@alkino alkino marked this pull request as ready for review January 12, 2023 21:56
@rigogsilva
Copy link

I think this is causing an infinite loop when using poetry install sphinx.

1: selecting sphinxcontrib.applehelp (1.0.3)
1: selecting sphinxcontrib.applehelp (1.0.3)
1: selecting sphinxcontrib.applehelp (1.0.3)
1: selecting sphinxcontrib.applehelp (1.0.3)
1: selecting sphinxcontrib.applehelp (1.0.3)
1: selecting sphinxcontrib.applehelp (1.0.3)
1: selecting sphinxcontrib.applehelp (1.0.3)
1: selecting sphinxcontrib.applehelp (1.0.3)
1: selecting sphinxcontrib.applehelp (1.0.3)
1: selecting sphinxcontrib.applehelp (1.0.3)
1: selecting sphinxcontrib.applehelp (1.0.3)
1: selecting sphinxcontrib.applehelp (1.0.3)
...
This goes on forever and it never resolves.

@alenrajsp
Copy link

I think this is causing an infinite loop when using poetry install sphinx.

1: selecting sphinxcontrib.applehelp (1.0.3) 1: selecting sphinxcontrib.applehelp (1.0.3) 1: selecting sphinxcontrib.applehelp (1.0.3) 1: selecting sphinxcontrib.applehelp (1.0.3) 1: selecting sphinxcontrib.applehelp (1.0.3) 1: selecting sphinxcontrib.applehelp (1.0.3) 1: selecting sphinxcontrib.applehelp (1.0.3) 1: selecting sphinxcontrib.applehelp (1.0.3) 1: selecting sphinxcontrib.applehelp (1.0.3) 1: selecting sphinxcontrib.applehelp (1.0.3) 1: selecting sphinxcontrib.applehelp (1.0.3) 1: selecting sphinxcontrib.applehelp (1.0.3) ... This goes on forever and it never resolves.

I am having the same problem.

@FelixGSE
Copy link

FelixGSE commented Jan 19, 2023

We are facing the same issue. It is causing us a lot of trouble. @alkino Are you working on this / Do you need support? @AA-Turner Is there something you can do here - I noticed you made the commit 2 weeks ago

@alkino
Copy link
Contributor Author

alkino commented Jan 19, 2023

Not really. I don't really understand what's going on. You can take ownership of my PR. For now i stick to the previous version.

@alenrajsp
Copy link

alenrajsp commented Jan 20, 2023

@alkino I believe the problem is the following.

  1. The name of this project on pypi is sphinxcontrib.applehelp the same name is present in your pyproject.toml
  2. Your previous name of the package was sphinxcontrib-applehelp.
  3. The name used in Sphinx is sphinxcontrib-applehelp.

The name sphinxcontrib.applehelp vs sphinxcontrib-applehelp, leads to name resolving issues in many of the package managers... While pypi platform of course allows renaming the package (switching minus and dot), the same is not valid for many of the package managers.

@AA-Turner
Copy link
Member

I've released 1.0.4 which should solve this problem.

A

@AA-Turner AA-Turner closed this Jan 23, 2023
@alkino alkino deleted the fix_name branch January 23, 2023 09:42
@alkino
Copy link
Contributor Author

alkino commented Jan 23, 2023

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants