So, yes, running any of these absolutely directly:
cd src
python eddn/Gateway.py
will fail. But you *can*:
cd src
python -m eddn.Gateway
and they work perfectly fine.
* py_modules parameter to setup() isn't documented in the setuptools
docs, but is in a general 'python packaging' one.
* So now the main scripts are NOT within the `eddn` package..
* But all other code is...
* But the schema files don't need to be.
# Conflicts:
# src/schemas/fssbodysignals-README.md
# src/schemas/fssbodysignals-v1.0.json
# src/schemas/fsssignaldiscovered-README.md
# src/schemas/fsssignaldiscovered-v1.0.json
With `import eddn.core.Validator` and the like it was actually picking
up the egg versions of the files, not local ones.
Currently this will run as per:
cd src/eddn
python Gateway.py --config ~/.local/share/eddn/dev/config.json
# Conflicts:
# src/eddn/schemas/fssbodysignals-README.md
# src/eddn/schemas/fssbodysignals-v1.0.json
# src/eddn/schemas/fsssignaldiscovered-README.md
# src/eddn/schemas/fsssignaldiscovered-v1.0.json
* Move the service scripts out of src/eddn/ into src/
* Move the schemas/ to src/schemas/
* Some updates to setup.py, i.e. source of files, but the setuptools
part isn't yet work.
# Conflicts:
# src/schemas/fssbodysignals-README.md
# src/schemas/fssbodysignals-v1.0.json
# src/schemas/fsssignaldiscovered-README.md
# src/schemas/fsssignaldiscovered-v1.0.json
We literally weren't making use of the 'topic' in the message. Thus, so
as to avoid issues with trying to mash a string topic together with a
bytes (compressed) message, I've ripped that out.
* setsockopt_string()
* Trying to see what's up with:
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 906, in gevent._gevent_cgreenlet.Greenlet.run
File "/home/eddn/dev/python3.9-venv/lib/python3.9/site-packages/eddn-2.0a0.dev0-py3.9.egg/eddn/Monitor.py", line 203, in monitor_worker
message_text = zlib.decompress(message)
zlib.error: Error -3 while decompressing data: incorrect header check
2021-11-04T18:25:03Z <Greenlet at 0x7f71dbecf150: monitor_worker(b'\'https://eddn.edcd.io/schemas/journal/1\' |-| b)> failed with error
The CL arg won't actually *do* anything yet, because this script doesn't
actually have a logger set up at all. But we need to fake this else
eddn.conf.Settings.loadConfig() won't be called correctly or work.