azure-cli-dev-tools icon indicating copy to clipboard operation
azure-cli-dev-tools copied to clipboard

Why azdev only allow run in virtualenv?

Open haroldrandom opened this issue 6 years ago • 2 comments

If not install azdev in a virtualenv, it will throw errors:

root@098c3f2011fb:/# azdev setup -c -r azure-cli-extensions/
Traceback (most recent call last):
  File "/usr/local/bin/azdev", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/azdev/__main__.py", line 40, in main
    config_dir=get_azdev_config_dir())
  File "/usr/local/lib/python3.6/dist-packages/azdev/utilities/config.py", line 24, in get_azdev_config_dir
    _, env_name = os.path.splitdrive(get_env_path())
  File "/usr/lib/python3.6/posixpath.py", line 138, in splitdrive
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType

haroldrandom avatar Jan 14 '20 08:01 haroldrandom

Any answer to this? I also encountered this error after installing azdev without using a virtual env.

Mossaka avatar Dec 28 '20 21:12 Mossaka

Hello,

Any answer to this?

Best regards Damian

dtometzki avatar Apr 13 '22 14:04 dtometzki