#46 The instructions to setup the dev environment are wrong
Closed: Fixed 7 years ago Opened 8 years ago by till.

The instructions do not ensure that python3 is actually setup in the virtualenv.


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

Added the fedmsg.d/mdapi.py in sources in PR #47

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]

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)

7 years ago

Log in to comment on this ticket.

Metadata