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?
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?
Thanks for your response, that fixed it. May I suggest pinning the bottle dependency in setup.py? On 18/02/2014 9:11 am, "Richard Gomes" rgome...@gmail.com wrote:
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:
- 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)
- Install bottle==0.11.6
$ pip install bottle==0.11.6
- Install devpi
$ pip install devpi
- 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?
-- You received this message because you are subscribed to a topic in the Google Groups "devpi-dev" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/devpi-dev/SFj4qpqRKjk/unsubscribe. To unsubscribe from this group and all its topics, send an email to devpi-dev+...@googlegroups.com. To post to this group, send email to devp...@googlegroups.com. Visit this group at http://groups.google.com/group/devpi-dev. For more options, visit https://groups.google.com/groups/opt_out.
I would suggest against any pinning in setup.py. Pins in setup.py prevent you from ever installing a newer version and are a huge source of pain in bigger deployments.
The place for pins is a requirements.txt for pip.
Regards, Florian Schulze
On 18 Feb 2014, at 13:33, Daniel Bryan wrote:
Thanks for your response, that fixed it. May I suggest pinning the bottle dependency in setup.py? On 18/02/2014 9:11 am, "Richard Gomes" rgome...@gmail.com wrote:
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:
- 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)
- Install bottle==0.11.6
$ pip install bottle==0.11.6
- Install devpi
$ pip install devpi
- 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?
-- You received this message because you are subscribed to a topic in the Google Groups "devpi-dev" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/devpi-dev/SFj4qpqRKjk/unsubscribe. To unsubscribe from this group and all its topics, send an email to devpi-dev+...@googlegroups.com. To post to this group, send email to devp...@googlegroups.com. Visit this group at http://groups.google.com/group/devpi-dev. For more options, visit https://groups.google.com/groups/opt_out.
-- You received this message because you are subscribed to the Google Groups "devpi-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to devpi-dev+...@googlegroups.com. To post to this group, send email to devp...@googlegroups.com. Visit this group at http://groups.google.com/group/devpi-dev. For more options, visit https://groups.google.com/groups/opt_out.