-
Notifications
You must be signed in to change notification settings - Fork 0
Description
python start_server.py
doesn't work, but
uv run python start_server.py
works.
twikit-rss % uv sync warning: Skipping installation of entry points (project.scripts) because this project is not packaged; to install entry points, set tool.uv.package = trueor define abuild-system`
Resolved 49 packages in 0.94ms
Audited 46 packages in 0.04ms
xxx@mac twikit-rss % python start_server.py
Traceback (most recent call last):
File "/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/lib/python3.13/logging/config.py", line 405, in resolve
found = getattr(found, frag)
AttributeError: module 'twikit_rss' has no attribute 'uvicorn_logger'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/lib/python3.13/logging/config.py", line 407, in resolve
self.importer(used)
~~~~~~~~~~~~~^^^^^^
File "/Users/xxx/Desktop/twikit-rss/twikit_rss/uvicorn_logger.py", line 3, in
from twikit_rss.app import app
File "/Users/xxx/Desktop/twikit-rss/twikit_rss/app.py", line 9, in
from twikit_rss.rss_generator import RSSGenerator
File "/Users/xxx/Desktop/twikit-rss/twikit_rss/rss_generator.py", line 5, in
from feedgen.feed import FeedGenerator
ModuleNotFoundError: No module named 'feedgen'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/lib/python3.13/logging/config.py", line 592, in configure
filters[name] = self.configure_filter(filters[name])
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/lib/python3.13/logging/config.py", line 735, in configure_filter
result = self.configure_custom(config)
File "/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/lib/python3.13/logging/config.py", line 484, in configure_custom
c = self.resolve(c)
File "/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/lib/python3.13/logging/config.py", line 412, in resolve
raise v from e
ValueError: Cannot resolve 'twikit_rss.uvicorn_logger.HealthCheckFilter': No module named 'feedgen'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/xxx/Desktop/twikit-rss/start_server.py", line 9, in
uvicorn.run(
~~~~~~~~~~~^
"twikit_rss.app:app",
^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
log_config="twikit_rss/uvicorn_logger.json",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/homebrew/lib/python3.13/site-packages/uvicorn/main.py", line 517, in run
config = Config(
app,
...<44 lines>...
h11_max_incomplete_event_size=h11_max_incomplete_event_size,
)
File "/opt/homebrew/lib/python3.13/site-packages/uvicorn/config.py", line 275, in init
self.configure_logging()
~~~~~~~~~~~~~~~~~~~~~~^^
File "/opt/homebrew/lib/python3.13/site-packages/uvicorn/config.py", line 371, in configure_logging
logging.config.dictConfig(loaded_config)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/lib/python3.13/logging/config.py", line 935, in dictConfig
dictConfigClass(config).configure()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/lib/python3.13/logging/config.py", line 594, in configure
raise ValueError('Unable to configure '
'filter %r' % name) from e
ValueError: Unable to configure filter 'health_check_filter'`