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

python-Levenshtein-wheels problem bad solution link #413

Closed
chrisribe opened this issue Oct 4, 2024 · 3 comments · Fixed by #418
Closed

python-Levenshtein-wheels problem bad solution link #413

chrisribe opened this issue Oct 4, 2024 · 3 comments · Fixed by #418

Comments

@chrisribe
Copy link
Member

This link is no longer valid: https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-levenshtein
in setup doc:
https://github.com/Azure/aaz-dev-tools/edit/dev/docs/pages/usage/setup_and_run.md#install-tools-for-azure-cli-development

4.4 Possible problems
For windows users, dependency python-levenshtein installation might run into trouble. developers might need to download .whl file and install it manually (reference to link)

This is preventing me from completing the setup on windows.

@chrisribe
Copy link
Member Author

chrisribe commented Oct 4, 2024

I re-setup in WSL and was getting the same issue. I found a workaround and wanted to share it here for reference.

Cause:
The latest setuptools adds a vendored wheel 0.43.0 and ignores wheel 0.30.0

Workaround: (pin setuptools to 70.0.0)
pip3 install setuptools==70.0.0

@chrisribe
Copy link
Member Author

After re-testing this seems to fail still, will try and document the fix

Using cached requests_oauthlib-2.0.0-py2.py3-none-any.whl (24 kB)
Installing collected packages: sphinxcontrib-websupport, python-dateutil, pyproject-api, mccabe, MarkupSafe, jsbeautifier, jmespath, isort, isodate, iniconfig, imagesize, idna, gitdb, filelock, execnet, docutils, dill, deepdiff, colorama, charset-normalizer, chardet, cffi, certifi, cachetools, babel, astroid, argcomplete, alabaster, virtualenv, requests, pytest, pylint, knack, jinja2, gitpython, flake8, cryptography, tox, sphinx, requests-oauthlib, pytest-xdist, pytest-forked, azure-core, azure-cli-diff-tool, msrest, azure-multiapi-storage, azdev
ERROR: Exception:
Traceback (most recent call last):
  File "/mnt/c/GitRepos/tools/AzureCLITools/env/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 105, in _run_wrapper
    status = _inner_run()
             ^^^^^^^^^^^^
  File "/mnt/c/GitRepos/tools/AzureCLITools/env/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 96, in _inner_run
    return self.run(options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/c/GitRepos/tools/AzureCLITools/env/lib/python3.12/site-packages/pip/_internal/cli/req_command.py", line 67, in wrapper
    return func(self, options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/c/GitRepos/tools/AzureCLITools/env/lib/python3.12/site-packages/pip/_internal/commands/install.py", line 457, in run
    installed = install_given_reqs(
                ^^^^^^^^^^^^^^^^^^^
  File "/mnt/c/GitRepos/tools/AzureCLITools/env/lib/python3.12/site-packages/pip/_internal/req/__init__.py", line 70, in install_given_reqs
    requirement.install(
  File "/mnt/c/GitRepos/tools/AzureCLITools/env/lib/python3.12/site-packages/pip/_internal/req/req_install.py", line 867, in install
    install_wheel(
  File "/mnt/c/GitRepos/tools/AzureCLITools/env/lib/python3.12/site-packages/pip/_internal/operations/install/wheel.py", line 732, in install_wheel
    _install_wheel(
  File "/mnt/c/GitRepos/tools/AzureCLITools/env/lib/python3.12/site-packages/pip/_internal/operations/install/wheel.py", line 621, in _install_wheel
    assert os.path.exists(pyc_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

@wangzelin007
Copy link
Member

wangzelin007 commented Oct 10, 2024

Hi @chrisribe
I also created a WSL and I was able to execute it successfully, here are all the commands I used:

python -m venv env --prompt azcli
source env/bin/activate
pip install azdev -U
pip install --upgrade pip
pip install setuptools==70.0.0
azdev setup --cli ./azure-cli --repo ./azure-cli-extensions

Image

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

Successfully merging a pull request may close this issue.

2 participants