okfn / ckanclient-deprecated

DEPRECATED - please see https://github.com/ckan/ckanapi. [Python client library for CKAN]
http://pypi.python.org/pypi/ckanclient
25 stars 17 forks source link

setup.py should install all dependencies #28

Open frgomes opened 10 years ago

frgomes commented 10 years ago

I was getting error 302 when using CkanClient from a remote box, but not when using from the box where CKAN was installed. After a lot of tests, I've finally got to the point where I copied the full virtualenv from one box to the other.

In a nutshell: setup.py fails to install all needed dependencies.

The error 302 is absolutely misleading. Worse than giving no information is giving wrong/misleading information. If CkanClient tries to import something which is not there or is wrong version, it should fail and state the fact, instead of swallowing the exception, go ahead and fail later due some other reason.

davidread commented 10 years ago

The only dependency outside python 2.6/2.7 is pycurl/requests used by upload_file. However that would raise an ImportError exception and quit, rather than returning 302. So I'm not sure how to proceed, unless you can supply more information about which call the error was in and what python of version you had.