Hello

It's a regression on bottle or API change or whatever we should never care about, but we have to. :(
This is a serious problem when we do not pin package version we depend on. ;-(

OK. This is the way to circumvent it:

1. start with a clean virtualenv. In my case I have this:

$ pip list
argparse (1.2.1)
Cython (0.19.2)
ez-setup (0.9)
lxml (3.2.4)
mox (0.5.3)
pip (1.4)
psycopg2 (2.5.2)
python-ldap (2.4.13)
requests (2.2.0)
setuptools (2.1)
setuptools-bzr (2.2)
setuptools-git (1.0)
setuptools-hg (0.4)
streaming-httplib2 (0.7.6)
wsgiref (0.1.2)
xlrd (0.9.2)


2. Install bottle==0.11.6

$ pip install bottle==0.11.6


3. Install devpi

$ pip install devpi


4. In my case, I removed the data directory and I've recreated the indexes I need from scratch.


I hope it helps.
Have a productive day.

-- Richard


On Monday, February 17, 2014 3:46:06 AM UTC, dan...@gmail.com wrote:

I'm trying to run devpi-server 1.2.1 as a private packaging server but I cant get uploads to work.

I'm running devpi-server like this:

devpi-server --host 0.0.0.0

And I ran this on the client:

devpi use http://$HOST:3141
devpi login root --password=''
devpi index -c dev
devpi upload

I get a 500 error on the client side, and I see this on the server side:

2014-02-17 14:41:21,208 [INFO ] devpi_server.views: root/dev: got submit release info u'builder'
172.16.42.1 - - [17/Feb/2014 14:41:21] "POST /root/dev/ HTTP/1.1" 200 0
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 1727, in wrapper
    rv = callback(*a, **ka)
  File "/usr/local/lib/python2.7/dist-packages/devpi_server/views.py", line 428, in submit
    content.filename, content.value)
AttributeError: 'FileUpload' object has no attribute 'value'
172.16.42.1 - - [17/Feb/2014 14:41:21] "POST /root/dev/ HTTP/1.1" 500 768



I have setuptools up to date on both sides.

What could this be?