!BmAgWlfcrgaRfViMVl:matrix.org

Sygnal

102 Members
Sygnal is a reference Push Gateway for Matrix. #sygnal:matrix.org. Github https://github.com/matrix-org/sygnal24 Servers

Load older messages


SenderMessageTime
27 Apr 2022
@joe_yee923:matrix.orgjoe_yee923 *

We downloaded the code from the git and then used the Dockerfile to build it.

docker build -f docker/Dockerfile .

But it gave errors as below

`Processing /sygnal
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 164, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 188, in prepare_metadata_for_build_wheel
self.run_setup()
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 282, in run_setup
self).run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 174, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 84, in <module>
long_description_content_type="text/markdown",
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 109, in setup
_setup_distribution = dist = klass(attrs)
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 466, in init
for k, v in attrs.items()
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 293, in init
self.finalize_options()
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 886, in finalize_options
ep(self)
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 907, in _finalize_setup_keywords
ep.load()(self, ep.name, value)
File "/tmp/pip-build-env-8x0c1yk5/normal/lib/python3.7/site-packages/setuptools_scm/integration.py", line 75, in version_keyword
_assign_version(dist, config)
File "/tmp/pip-build-env-8x0c1yk5/normal/lib/python3.7/site-packages/setuptools_scm/integration.py", line 51, in _assign_version
_version_missing(config)
File "/tmp/pip-build-env-8x0c1yk5/normal/lib/python3.7/site-packages/setuptools_scm/init.py", line 107, in _version_missing
f"setuptools-scm was unable to detect version for {config.absolute_root}.\n\n"
LookupError: setuptools-scm was unable to detect version for /sygnal.

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.`

06:17:18
@joe_yee923:matrix.orgjoe_yee923 *

We downloaded the code from the git and then used the Dockerfile to build it.

docker build -f docker/Dockerfile .

But it gave errors as below

`Processing /sygnal
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 164, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 188, in prepare_metadata_for_build_wheel
self.run_setup()
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 282, in run_setup
self).run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 174, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 84, in <module>
long_description_content_type="text/markdown",
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 109, in setup
_setup_distribution = dist = klass(attrs)
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 466, in init
for k, v in attrs.items()
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 293, in init
self.finalize_options()
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 886, in finalize_options
ep(self)
File "/tmp/pip-build-env-8x0c1yk5/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 907, in _finalize_setup_keywords
ep.load()(self, ep.name, value)
File "/tmp/pip-build-env-8x0c1yk5/normal/lib/python3.7/site-packages/setuptools_scm/integration.py", line 75, in version_keyword
_assign_version(dist, config)
File "/tmp/pip-build-env-8x0c1yk5/normal/lib/python3.7/site-packages/setuptools_scm/integration.py", line 51, in _assign_version
_version_missing(config)
File "/tmp/pip-build-env-8x0c1yk5/normal/lib/python3.7/site-packages/setuptools_scm/init.py", line 107, in _version_missing
f"setuptools-scm was unable to detect version for {config.absolute_root}.\n\n"
LookupError: setuptools-scm was unable to detect version for /sygnal.

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.`

06:17:54
@reivilibre.element:librepush.netreivilibre how did you download the code? Did you git clone? 08:48:59
@reivilibre.element:librepush.netreivilibre * joe_yee923: how did you download the code? Did you git clone? 08:49:06
@joe_yee923:matrix.orgjoe_yee923
In reply to @reivilibre.element:librepush.net
joe_yee923: how did you download the code? Did you git clone?
I did a zip download
11:08:27
@joe_yee923:matrix.orgjoe_yee923
In reply to @reivilibre.element:librepush.net
joe_yee923: how did you download the code? Did you git clone?
and also tried to download it from the source file
11:09:14
@reivilibre.element:librepush.netreivilibre Try using git clone rather than using the zip download 11:27:12
@joe_yee923:matrix.orgjoe_yee923
In reply to @reivilibre.element:librepush.net
Try using git clone rather than using the zip download
Just tried that as well still same error during build
11:43:44
@joe_yee923:matrix.orgjoe_yee923Seems I am missing something11:44:02
@joe_yee923:matrix.orgjoe_yee923Will keep looking11:44:10
@reivilibre.element:librepush.netreivilibre

It works for me; can you double check you have a .git directory in the repository?

e.g. ls .git

11:47:55
@joe_yee923:matrix.orgjoe_yee923ok will check and if not will delete all and redo it11:48:25
@andrewm:amorgan.xyz@andrewm:amorgan.xyz left the room.12:03:22
@joe_yee923:matrix.orgjoe_yee923

Ok now i get this below error

docker run -it matrixdotorg/sygnal

Using configuration file: sygnal.yaml
Could not find configuration file!
Path: sygnal.yaml
Absolute Path: /sygnal.yaml
Traceback (most recent call last):
File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.7/site-packages/sygnal/sygnal.py", line 353, in <module>
config = parse_config()
File "/usr/local/lib/python3.7/site-packages/sygnal/sygnal.py", line 252, in parse_config
with open(config_path) as file_handle:
FileNotFoundError: [Errno 2] No such file or directory: 'sygnal.yaml'

12:09:54
@reivilibre.element:librepush.netreivilibreyou will need to write a configuration file and mount it into the container12:15:14
@joe_yee923:matrix.orgjoe_yee923
In reply to @reivilibre.element:librepush.net
you will need to write a configuration file and mount it into the container
I have the file sygnal.yaml already there in the same directory
12:15:54
@joe_yee923:matrix.orgjoe_yee923For some reason its not picking it up12:16:10
@reivilibre.element:librepush.netreivilibreyou need to mount it into the container12:16:31
@joe_yee923:matrix.orgjoe_yee923ok i c12:16:57
@joe_yee923:matrix.orgjoe_yee923

Ok now i got it running but it seems we need to define the appID's in the sygnal.yaml file to get this working properly.

# docker run -it --mount type=bind,source=/srv/docker-apps/sygnal/sygnal.yaml,target=/sygnal.yaml matrixdotorg/sygnal -p 5000:80
Using configuration file: sygnal.yaml
Error during startup:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/sygnal/sygnal.py", line 228, in start
yield ensureDeferred(self.make_pushkins_then_start())
File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 1130, in ensureDeferred
return Deferred.fromCoroutine(coro)
File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 1106, in fromCoroutine
return _cancellableInlineCallbacks(coro)
File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 1816, in _cancellableInlineCallbacks
_inlineCallbacks(None, gen, status)
--- <exception caught here> ---
File "/usr/local/lib/python3.7/site-packages/sygnal/sygnal.py", line 228, in start
yield ensureDeferred(self.make_pushkins_then_start())
File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 1661, in _inlineCallbacks
result = current_context.run(gen.send, result)
File "/usr/local/lib/python3.7/site-packages/sygnal/sygnal.py", line 209, in make_pushkins_then_start
"No app IDs are configured. Edit sygnal.yaml to define some."
builtins.RuntimeError: No app IDs are configured. Edit sygnal.yaml to define some.
12:34:44
@reivilibre.element:librepush.netreivilibreyes you do; have a look at the readme12:43:34
@joe_yee923:matrix.orgjoe_yee923 Thanks for the help reivilibre really appreciate it 12:44:00
@joe_yee923:matrix.orgjoe_yee923This is something very new to me so sorry for all stupid questions, sygnal is first time we are trying to implement12:44:36
1 May 2022
@wybpip:matrix.org@wybpip:matrix.org joined the room.18:11:43
@wybpip:matrix.org@wybpip:matrix.org left the room.18:12:06
5 May 2022
@joe_yee923:matrix.orgjoe_yee923 set a profile picture.03:36:03
9 May 2022
@joe_yee923:matrix.orgjoe_yee923

I have tried most the things but still getting this error

root@MatrixSygnal:/srv/docker-apps/sygnal# docker run -it --mount type=bind,source=/srv/docker-apps/sygnal/sygnal.yaml,target=/sygnal.yaml matrixdotorg/sygnal -p 5000:80
Using configuration file: sygnal.yaml
Error during startup:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/sygnal/sygnal.py", line 228, in start
    yield ensureDeferred(self.make_pushkins_then_start())
  File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 1130, in ensureDeferred
    return Deferred.fromCoroutine(coro)
  File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 1106, in fromCoroutine
    return _cancellableInlineCallbacks(coro)
  File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 1816, in _cancellableInlineCallbacks
    _inlineCallbacks(None, gen, status)
--- <exception caught here> ---
  File "/usr/local/lib/python3.7/site-packages/sygnal/sygnal.py", line 228, in start
    yield ensureDeferred(self.make_pushkins_then_start())
  File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 1661, in _inlineCallbacks
    result = current_context.run(gen.send, result)
  File "/usr/local/lib/python3.7/site-packages/sygnal/sygnal.py", line 203, in make_pushkins_then_start
    "Failed to load and create pushkin for kind '%s'" % app_cfg["type"]
builtins.TypeError: 'NoneType' object is not subscriptable
root@MatrixSygnal:/srv/docker-apps/sygnal#
09:25:35
@reivilibre.element:librepush.netreivilibresounds like your configuration isn't properly formatted09:27:47
@joe_yee923:matrix.orgjoe_yee923
In reply to @reivilibre.element:librepush.net
sounds like your configuration isn't properly formatted
Ok will have to check it one line at a time it seems may be some white space or something
09:34:37
11 May 2022
@syukur:matrix.orgsyukurSygnal can support notification for huawei phone?03:04:17

There are no newer messages yet.


Back to Room List