Hi all!
I just wanted to have a prefect3 version on my MacOS 14.6.1 to test. Python 3.11.6 and in venv I ran ‘pip install -U prefect’ and completed. To verify I ran prefect version and get errors. Please help me like prefect again... (thanks!)
Error:
Traceback (most recent call last):
File “/Users/common/work/prefect/bin/prefect”, line 5, in <module>
from prefect.cli import app
File “/Users/common/work/prefect/lib/python3.11/site-packages/prefect/cli/__init__.py”, line 12, in <module>
import prefect.cli.shell
File “/Users/common/work/prefect/lib/python3.11/site-packages/prefect/cli/shell.py”, line 16, in <module>
from prefect import flow
File “<frozen importlib._bootstrap>“, line 1229, in _handle_fromlist
File “/Users/common/work/prefect/lib/python3.11/site-packages/prefect/__init__.py”, line 117, in
getattr
module = import_module(module_name, package=package)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/homebrew/Cellar/python@3.11/3.11.6/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/common/work/prefect/lib/python3.11/site-packages/prefect/main.py”, line 55, in <module>
prefect.logging.configuration.setup_logging()
File “/Users/common/work/prefect/lib/python3.11/site-packages/prefect/logging/configuration.py”, line 71, in setup_logging
config = load_logging_config(
^^^^^^^^^^^^^^^^^^^^
File “/Users/common/work/prefect/lib/python3.11/site-packages/prefect/logging/configuration.py”, line 41, in load_logging_config
template.substitute(
current_settings.to_environment_variables())
File “/opt/homebrew/Cellar/python@3.11/3.11.6/Frameworks/Python.framework/Versions/3.11/lib/python3.11/string.py”, line 121, in substitute
return self.pattern.sub(convert, self.template)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/homebrew/Cellar/python@3.11/3.11.6/Frameworks/Python.framework/Versions/3.11/lib/python3.11/string.py”, line 114, in convert
return str(mapping[named])
~~~~~~~^^^^^^^
KeyError: ‘PREFECT_LOGGING_SERVER_LEVEL’