You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using prefect 2.18.3 on via windows conda environments. We are noticing that prefect does not return on CLI whenever we activate the virtual environment from another machine via network (UNC paths).
Set up
We have a machine: V-TM-QEQ-06, where the machine hosts the Prefect virtual environment. This is located in C:\PResearch within the machine.
We want to activate this virtual environment from other machines to use prefect. Therefore, we map and shared this network location \\v-tm-qeq-06\PResearch so that it can be globally accessed from the network drive.
On another machine: V-TM-QEQ-04, we want to activate this virtual environment by running conda activate \\v-tm-qeq-06\PResearch
After activating, we realize that prefect does not resolve to the right path. It resolves to the original C:\ path from v-tm-qeq-06
Error Message
(\\v-tm-qeq-06\PResearch) C:\Users\qtask>prefect
Fatal error in launcher: Unable to create process using '"C:\PResearch\python.exe" "\\v-tm-qeq-06\PResearch\Scripts\prefect.exe" ': The system cannot find the file specified.
Takeaways
Can we please enable UNC paths so that the prefect.exe can resolve to the UNC path given? Thank you!
Version info
(C:\PResearch) C:\Users\qtask>prefect version
Version: 2.18.3
API version: 0.8.4
Python version: 3.9.19
Git commit: c449aee8
Built: Thu, May 2, 2024 5:47 PM
OS/Arch: win32/AMD64
Profile: default
Server type: server
Additional context
As a workaround, we created new venv for each machine, and then pointed the PREFECT_API_URL = http://v-tm-qeq-06:4200/api
and it seems to solve the issue for now, however it should really be pointing to the correct venv when using cli prefect commands.
Raised this issue as it could be related to the other issue I have posted with task retries. Both machines are running on two separate venvs, would that have caused the issue? How do we solve that issue and this one at the same time if that is the case? Thank you
We activated the virtual environment conda activate \\v-tm-qeq-06\PResearch
We run prefect version on the activated virtual environment cmd console
It returns the error Fatal error in launcher: Unable to create process using '"C:\PResearch\python.exe" "\\v-tm-qeq-06\PResearch\Scripts\prefect.exe" ': The system cannot find the file specified. . To me it seems like it is resolving to the C:\Presearch path isntead of the \v-tm-qeq-06\PResearch path
Bug summary
Introduction
We are using prefect 2.18.3 on via windows conda environments. We are noticing that prefect does not return on CLI whenever we activate the virtual environment from another machine via network (UNC paths).
Set up
V-TM-QEQ-06
, where the machine hosts the Prefect virtual environment. This is located inC:\PResearch
within the machine.\\v-tm-qeq-06\PResearch
so that it can be globally accessed from the network drive.V-TM-QEQ-04
, we want to activate this virtual environment by runningconda activate \\v-tm-qeq-06\PResearch
prefect
does not resolve to the right path. It resolves to the originalC:\
path fromv-tm-qeq-06
Error Message
Takeaways
Version info
Additional context
As a workaround, we created new venv for each machine, and then pointed the
PREFECT_API_URL = http://v-tm-qeq-06:4200/api
and it seems to solve the issue for now, however it should really be pointing to the correct venv when using cli prefect commands.
Raised this issue as it could be related to the other issue I have posted with task retries. Both machines are running on two separate venvs, would that have caused the issue? How do we solve that issue and this one at the same time if that is the case? Thank you
#16059
The text was updated successfully, but these errors were encountered: