dickmao / nnreddit

A Gnus backend for Reddit
70 stars 5 forks source link

Invalid virtualenv #81

Open nyambol opened 3 years ago

nyambol commented 3 years ago

nnreddit-venv: installing venv to c:/Users/micha/AppData/Roaming/.virtualenvs/nnreddit-20210912.236-c:/WINDOWS/py.exe... OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\\Users\\micha\\AppData\\Roaming\\.virtualenvs\\nnreddit-20210912.236-c:' nnreddit-venv: Invalid virtualenv nnreddit-20210912.236-c:/WINDOWS/py.exe specified!

Don't know what it's doing. Seems to be concat'ing the path to py with the path to the virtualenv.

{micha} [9] --> get-command virtualenv CommandType Name Version Source Application virtualenv.exe 0.0.0.0 c:\users\micha\appdata\roaming\python\python310\scripts\virtualenv.exe

C:\Users\micha {micha} [7] --> get-command python CommandType Name Version Source Application python.exe 3.10.150.… C:\Python310\python.exe

Welcome to the Emacs shell g:/My Drive/org $ which virtualenv c:/Users/micha/AppData/Roaming/Python/Python310/Scripts/virtualenv.exe

dickmao commented 3 years ago

Nothing I've ever written has worked on Windows, which is ironic since my dream job for many years was one at Microsoft. Sorry brah.

roelanto commented 4 months ago

For those that come here after initially setting nnreddit-python-command to something with a path ("/usr/bin/python3") --> the path is the problem. The virtual env is named as this command, so including the path. That doesn't work on Mac or Windows.

Solution is to set the python-command to something that can be found in the $PATH, so directly to python3.