# prefect-community

mahmoud elhalwany

06/12/2022, 11:47 AM
hello -- i have installed prefect-2 but I got this error
Copy code
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/prefect/cli/", line 59, in wrapper
    return fn(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/prefect/utilities/", line 120, in wrapper
    return run_async_in_new_loop(async_fn, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/prefect/utilities/", line 67, in run_async_in_new_loop
    return, *args, **kwargs))
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/anyio/_core/", line 56, in run
    return, *args, **backend_options)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/anyio/_backends/", line 233, in run
    return native_run(wrapper(), debug=debug)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/", line 43, in run
    return loop.run_until_complete(main)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/", line 584, in run_until_complete
    return future.result()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/anyio/_backends/", line 228, in wrapper
    return await func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/prefect/cli/", line 162, in version
    if is_ephemeral:
UnboundLocalError: local variable 'is_ephemeral' referenced before assignment
An exception occurred.

Anna Geller

06/12/2022, 2:42 PM
I hate to say this for the third time in a row 😅 but similarly as two threads above you, could you please move your code to the thread? This is important for us to keep the main channel clean
Regarding your error, can you try again in a new clean virtual environment, possibly with a higher Python version?