[GH-ISSUE #347] Ошибка process_responce() #278

Closed
opened 2026-10-13 19:53:43 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @dittohead on GitHub (Jul 14, 2020).
Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/347

Установил все из requirements.txt, запускаю сервер и при открытии страницы в браузере получаю следующее:

При запуске:

/opt/monitorrent/monitorrent/upgrade_manager.py:35: UserWarning: 'connection' argument to configure() is expected to be a sqlalchemy.engine.Connection instance, got <sqlalchemy.orm.session.ContextSession object at 0x80a8bf750>
  migration_context = MigrationContext.configure(session)
Server started on 0.0.0.0:6687

При запросе к UI:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/cheroot/server.py", line 1277, in communicate
    req.respond()
  File "/usr/local/lib/python3.7/site-packages/cheroot/server.py", line 1073, in respond
    self.server.gateway(self).respond()
  File "/usr/local/lib/python3.7/site-packages/cheroot/wsgi.py", line 143, in respond
    response = self.req.server.wsgi_app(self.env, self.start_response)
  File "/usr/local/lib/python3.7/site-packages/falcon/api.py", line 286, in __call__
    process_response(req, resp, resource, req_succeeded)
TypeError: process_response() takes 4 positional arguments but 5 were given

FreeNAS 11.3, Jail 11.3, python 3.7

>pip list
Package           Version
----------------- ---------
alembic           1.4.2
beautifulsoup4    4.9.1
Brotli            1.0.7
certifi           2020.6.20
chardet           3.0.4
cheroot           8.3.1
dateutils         0.6.8
deluge-client     1.9.0
enum34            1.1.10
falcon            2.0.0
feedparser        5.2.1
future            0.18.2
html5lib          0.9999999
hug               2.6.1
idna              2.10
itsdangerous      1.1.0
jaraco.functools  3.0.1
Mako              1.1.3
MarkupSafe        1.1.1
more-itertools    8.4.0
phpserialize      1.3
pip               19.1.1
python-dateutil   2.8.1
python-editor     1.0.4
pytz              2020.1
requests          2.24.0
semver            2.10.2
setuptools        44.0.0
six               1.15.0
soupsieve         2.0.1
SQLAlchemy        1.1.18
SQLAlchemy-Enum34 1.0.1
sqlite3           0.0.0
transmissionrpc   0.11
urllib3           1.25.9
Originally created by @dittohead on GitHub (Jul 14, 2020). Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/347 Установил все из requirements.txt, запускаю сервер и при открытии страницы в браузере получаю следующее: При запуске: ``` /opt/monitorrent/monitorrent/upgrade_manager.py:35: UserWarning: 'connection' argument to configure() is expected to be a sqlalchemy.engine.Connection instance, got <sqlalchemy.orm.session.ContextSession object at 0x80a8bf750> migration_context = MigrationContext.configure(session) Server started on 0.0.0.0:6687 ``` При запросе к UI: ``` Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/cheroot/server.py", line 1277, in communicate req.respond() File "/usr/local/lib/python3.7/site-packages/cheroot/server.py", line 1073, in respond self.server.gateway(self).respond() File "/usr/local/lib/python3.7/site-packages/cheroot/wsgi.py", line 143, in respond response = self.req.server.wsgi_app(self.env, self.start_response) File "/usr/local/lib/python3.7/site-packages/falcon/api.py", line 286, in __call__ process_response(req, resp, resource, req_succeeded) TypeError: process_response() takes 4 positional arguments but 5 were given ``` FreeNAS 11.3, Jail 11.3, python 3.7 ``` >pip list Package Version ----------------- --------- alembic 1.4.2 beautifulsoup4 4.9.1 Brotli 1.0.7 certifi 2020.6.20 chardet 3.0.4 cheroot 8.3.1 dateutils 0.6.8 deluge-client 1.9.0 enum34 1.1.10 falcon 2.0.0 feedparser 5.2.1 future 0.18.2 html5lib 0.9999999 hug 2.6.1 idna 2.10 itsdangerous 1.1.0 jaraco.functools 3.0.1 Mako 1.1.3 MarkupSafe 1.1.1 more-itertools 8.4.0 phpserialize 1.3 pip 19.1.1 python-dateutil 2.8.1 python-editor 1.0.4 pytz 2020.1 requests 2.24.0 semver 2.10.2 setuptools 44.0.0 six 1.15.0 soupsieve 2.0.1 SQLAlchemy 1.1.18 SQLAlchemy-Enum34 1.0.1 sqlite3 0.0.0 transmissionrpc 0.11 urllib3 1.25.9 ```
bsakaguchi 2026-10-13 19:53:43 +00:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@werwolfby commented on GitHub (Apr 2, 2023):

Да, cheroot супортается только версии 6.x уже зафризано в requirements.txt

<!-- gh-comment-id:1493250050 --> @werwolfby commented on GitHub (Apr 2, 2023): Да, cheroot супортается только версии 6.x уже зафризано в requirements.txt
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
werwolfby/monitorrent#278
No description provided.