Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

create-dev-env.sh is failing at azdev setup --repo . --ext capi --verbose #181

Open
marosset opened this issue Feb 11, 2023 · 2 comments
Open

Comments

@marosset
Copy link
Contributor

I tried to run ./create-dev-env.sh both in the dev container (through VS code) and in locally in a WSL2 environement and both times I got the following errors

 + azdev setup --repo . --ext capi --verbose
/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.25.8) or chardet (5.1.0) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
Traceback (most recent call last):
  File "/home/marosset/.local/bin/azdev", line 8, in <module>
    sys.exit(main())
  File "/home/marosset/.local/lib/python3.8/site-packages/azdev/__main__.py", line 39, in main
    config_dir=get_azdev_config_dir())
  File "/home/marosset/.local/lib/python3.8/site-packages/azdev/utilities/config.py", line 24, in get_azdev_config_dir
    _, env_name = os.path.splitdrive(get_env_path())
  File "/usr/lib/python3.8/posixpath.py", line 134, in splitdrive
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Here is the version of the azure cli i'm using if that matters

az version
Azure-cli    Azure-cli-core    Azure-cli-telemetry
-----------  ----------------  ---------------------
2.45.0       2.45.0            1.0.8
@mboersma
Copy link
Member

FWIW, I opened the project with CodeSpaces and my local VS Code and it's fine. But this is macOS and python 3.10.

@marosset
Copy link
Contributor Author

I opened the project with CodeSpaces and it worked fine too.

I noticed that when i run create-dev-env.sh from inside a WSL environment, it looks like the python virtualenv isn't getting configured properly. What is strand is that if i run all of the commands from that script manually I can get the dev env working 🤷‍♂️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants