Bug 220120 - net-im/py-matrix-synapse : error message when trying to generate config file
Summary: net-im/py-matrix-synapse : error message when trying to generate config file
Status: Closed DUPLICATE of bug 219993
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mark Felder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-19 03:05 UTC by dasti
Modified: 2017-06-19 14:12 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dasti 2017-06-19 03:05:37 UTC
FreeBSD 11.0-RELEASE-p1
Python 2.7.13
py27-matrix-synapse-0.21.0 


I was trying to follow this tutorial to install synapse on freebsd https://forums.freebsd.org/threads/59835/ but I keep getting this error message.


######################################################################################################
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/lib/python2.7/site-packages/synapse/app/homeserver.py", line 31, in <module>
    from synapse.rest import ClientRestResource
  File "/usr/local/lib/python2.7/site-packages/synapse/rest/__init__.py", line 20, in <module>
    from synapse.rest.client.v1 import (
  File "/usr/local/lib/python2.7/site-packages/synapse/rest/client/v1/pusher.py", line 23, in <module>
    from synapse.http.server import finish_request
  File "/usr/local/lib/python2.7/site-packages/synapse/http/server.py", line 31, in <module>
    from twisted.web import server, resource
  File "/usr/local/lib/python2.7/site-packages/twisted/web/server.py", line 31, in <module>
    from twisted.web import iweb, http, util
  File "/usr/local/lib/python2.7/site-packages/twisted/web/util.py", line 13, in <module>
    from twisted.python import urlpath
  File "/usr/local/lib/python2.7/site-packages/twisted/python/urlpath.py", line 15, in <module>
    from hyperlink import URL as _URL
ImportError: No module named hyperlink
######################################################################################################


I tried those approaches without success
- reinstall using port in stead of pkg
- use the sample config file from /usr/local/etc/matrix-synapse and start it as is
- use the command line from the port install message /usr/local/bin/python2.7 -B -m synapse.app.homeserver -c /usr/local/etc/matrix-synapse/homeserver.yaml --generate-config --server-name=example.com

It looks like a python related message.

Best regards
dasti
Comment 1 Mark Felder freebsd_committer freebsd_triage 2017-06-19 14:12:21 UTC
This is caused by a bug in devel/py-twisted

*** This bug has been marked as a duplicate of bug 219993 ***