Bug 269255 - net-im/py-matrix-synapse: TypeError: 'NoneType' object is not iterable
Summary: net-im/py-matrix-synapse: TypeError: 'NoneType' object is not iterable
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-30 18:03 UTC by co+org.freebsd
Modified: 2025-05-03 19:22 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (ports)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description co+org.freebsd 2023-01-30 18:03:03 UTC
Hello!

The latest package (py39-matrix-synapse-1.74.0_1) seems to have a problem. On attempting to start up the server with:


/usr/local/bin/python3.9 \
-m synapse.app.homeserver \
--server-name example.com \
--config-path /local/etc/synapse/homeserver.yaml \
--report-stats=no

The following occurs:

2023-01-30_17:53:04.51839 Traceback (most recent call last):
2023-01-30_17:53:04.51890   File "/usr/local/lib/python3.9/runpy.py", line 188, in _run_module_as_main
2023-01-30_17:53:04.52038     mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
2023-01-30_17:53:04.52073   File "/usr/local/lib/python3.9/runpy.py", line 111, in _get_module_details
2023-01-30_17:53:04.52112     __import__(pkg_name)
2023-01-30_17:53:04.52132   File "/usr/local/lib/python3.9/site-packages/synapse/app/__init__.py", line 18, in <module>
2023-01-30_17:53:04.52165     from synapse.util import check_dependencies
2023-01-30_17:53:04.52233   File "/usr/local/lib/python3.9/site-packages/synapse/util/check_dependencies.py", line 58, in <module>
2023-01-30_17:53:04.52344     set(metadata.metadata(DISTRIBUTION_NAME).get_all("Provides-Extra")) - DEV_EXTRAS
2023-01-30_17:53:04.52373 TypeError: 'NoneType' object is not iterable
Comment 1 jdn06 2023-02-13 20:54:43 UTC
I have the same problem, which is not solved by the recent upgrades.
Is there something I can do to help debugging?
Comment 2 jdn06 2023-02-28 10:17:35 UTC
Freebuser found an issue on upstream development site that suggests it is a packaging problem:

https://github.com/matrix-org/synapse/issues/12565
Comment 3 jdn06 2023-04-05 15:46:47 UTC
Seems solved for me by upgrade to 1.80.0.
Comment 4 jdn06 2023-04-08 09:40:08 UTC
In fact, the error is still here. I had to downgrade to 1.72.
Comment 5 Li-Wen Hsu freebsd_committer freebsd_triage 2023-04-27 18:29:08 UTC
Can you help to check if 1.82.0 still has this issue?
Comment 6 jdn06 2023-05-05 11:24:27 UTC
Yes, 1.82.0 still has this issue.
Comment 7 jdn06 2023-06-30 13:58:08 UTC
The bug is still here with 1.85.2.
Comment 8 Tilman Keskinoz freebsd_committer freebsd_triage 2025-05-03 19:22:03 UTC
Did you customize your config?

I tried the default config with python3.11 and 1.127.1 and it seems to work.