Open frgomes opened 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.
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.