https://prefect.io logo
v

Vinoth Kumar

02/01/2022, 8:03 AM
Hi unable to install prefect Orion . I am getting ImportError: cannot import name 'ThreadedChildWatcher' from 'asyncio'
a

Anna Geller

02/01/2022, 8:48 AM
Can you share more how you installed the package? You can try to reinstall using:
Copy code
pip uninstall prefect
pip install -U "prefect>=2.0a9"
This way, you should get the latest version
v

Vinoth Kumar

02/01/2022, 8:51 AM
yes i did . Package has been installed. unable to check version and when i try to run the code i am getting the I am getting ImportError: cannot import name 'ThreadedChildWatcher' from 'asyncio
a

Anna Geller

02/01/2022, 9:08 AM
what if you try installing it on WSL? I haven’t tested that on Windows yet. Also, you may try in a virtual environment with a lower Python version e.g. 3.8
ok, just tested on both 3.8 and 3.9 and both work fine in a conda environment. I see that you are using Pycharm. Can you try adding a new Conda interpreter and install Orion from scratch there?
v

Vinoth Kumar

02/01/2022, 9:28 AM
Once installation completed
Not working
pip install prefect
Above command working properly
But i want higher verison of prefect
a

Anna Geller

02/01/2022, 9:34 AM
Did you run it in a conda virtual environment? If Conda doesn’t work for you, I would recommend installing in WSL “pip install prefect” will install Prefect <= 1.0 rather than Orion (Prefect>=2.0)
v

Vinoth Kumar

02/01/2022, 9:36 AM
yes . i have installed conda only
a

Anna Geller

02/01/2022, 9:39 AM
v

Vinoth Kumar

02/01/2022, 10:24 AM
facing same issues
can you suggest some other tool ?
a

Anna Geller

02/01/2022, 10:29 AM
I would recommend trying WSL - Windows Subsystem for Linux. Have you tried that?
v

Vinoth Kumar

02/01/2022, 10:47 AM
No .i dont have idea about that
a

Anna Geller

02/01/2022, 10:49 AM
v

Vinoth Kumar

02/01/2022, 11:25 AM
can you confirm prefect>=2.0a9 is not supported for direct windows?
i have installed jupiter notebook and tried and getting same error
a

Anna Geller

02/01/2022, 11:52 AM
I can only confirm that we currently don’t run any tests on Windows and haven’t optimized the package for Windows yet. Therefore, for now I would recommend installing in WSL. Alternatively - since it seems you don’t wanna try the WSL option 🙂 - you can try using Docker:
Copy code
docker pull prefecthq/prefect:2.0a9-python3.9
v

Vinoth Kumar

02/01/2022, 12:17 PM
ok
a

Anna Geller

02/01/2022, 12:27 PM
but I can confirm this error - just tried to reproduce on a windows tablet and got the same error
v

Vinoth Kumar

02/01/2022, 12:28 PM
okay okay
i will try in linux
👍 1
2 Views