ExtDB instance has no attribute xom

Issue #116 on hold
Steven Willis created an issue

Upon trying to push, I get the following exception in the log:

Traceback (most recent call last):
  File "/usr/local/bin/bottle.py", line 862, in _handle
    return route.call(**args)
  File "/usr/local/bin/bottle.py", line 1729, in wrapper
    rv = callback(*a, **ka)
  File "/usr/local/lib/python2.7/site-packages/devpi_server/views.py", line 304, in pushrelease
    entry = stage.xom.filestore.getentry(relpath)
AttributeError: ExtDB instance has no attribute 'xom'

It looks like most of the time 'xom' is being accessed in 'views.py', it's through 'self.xom', not 'stage.xom'. Was it a typo for it to be 'stage.xom'? It looks like it's this way in two spots:

/usr/local/lib/python2.7/site-packages/devpi_server/views.py:304:                    entry = stage.xom.filestore.getentry(relpath)
/usr/local/lib/python2.7/site-packages/devpi_server/views.py:819:                              stage.xom.config.args.outside_url)

Comments (6)

  1. Steven Willis reporter

    What about the second occurrence? Around line 815 in trigger_jenkins(). That looks to still be there.

  2. Holger Krekel repo owner

    The code in trunk has changed a lot since the last release, the 2.0 release is imminent. So i just checked if the lines are still tehre and there weren't.

    In anycase, please tell in the future which command you use in which scenario that leads to a traceback. Thanks.

  3. Log in to comment