The instructions do not ensure that python3 is actually setup in the virtualenv.
Fixed in https://pagure.io/mdapi/pull-request/47
I added some more details at https://pagure.io/mdapi/pull-request/48
However, it currently fails like this on a F24 machine:
Traceback (most recent call last): File "./mdapi-get_repo_md", line 74, in <module> cert_prefix='mdapi', File "/home/fedora/till/.virtualenvs/mdapi/lib/python3.5/site-packages/fedmsg/__init__.py", line 55, in init config = fedmsg.config.load_config([], None) File "/home/fedora/till/.virtualenvs/mdapi/lib/python3.5/site-packages/fedmsg/config.py", line 162, in load_config raise ValueError("No config value 'endpoints' found.") ValueError: No config value 'endpoints' found.
We should add a basic fedmsg.d to the sources then
fedmsg.d
Added the fedmsg.d/mdapi.py in sources in PR #47
fedmsg.d/mdapi.py
I get this error now:
$ ./mdapi-get_repo_md mdapi/default_config.py Traceback (most recent call last): File "/home/fedora/till/.virtualenvs/mdapi/lib/python3.5/site-packages/fedmsg/core.py", line 89, in __init__ config['endpoints'][name] = config[name] KeyError: 'relay_inbound' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "./mdapi-get_repo_md", line 74, in <module> cert_prefix='mdapi', File "/home/fedora/till/.virtualenvs/mdapi/lib/python3.5/site-packages/fedmsg/__init__.py", line 60, in init __local.__context = fedmsg.core.FedMsgContext(**config) File "/home/fedora/till/.virtualenvs/mdapi/lib/python3.5/site-packages/fedmsg/core.py", line 91, in __init__ raise KeyError("Could not find endpoint for fedmsg-relay." KeyError: 'Could not find endpoint for fedmsg-relay. Try installing fedmsg-relay.'
We may want to change the setup.py to install fedmsg[all]
fedmsg[all]
I think this is now fixed, so let's close and re-open if there still something missing :)
Metadata Update from @pingou: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Log in to comment on this ticket.