-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Upgrade to 1.6] ImportError: cannot import name unpack_url #1498
Comments
can you access http://pypi.camptocamp.net/pypi/ from your server? |
Yep
|
I presume you tried more than once ? |
Both of "curling" and getting the right version of the egg |
look in you .build/venv/lib/python2.7/site-packages/ folder and see which version of pip is installed there. |
In fact there is:
I deleted those three and installed 7.1.0, it's ok:
But now when trying the failing command, I get:
|
@ochriste Should I do something about |
mmmm, I dont know for sure but you can try to install setuptools using pip: theoretically you shouldnt have to do that as it should be able to find the package, but im short of idea |
ha sorry, I missed a message in the error: the repository located at pypi.camptocamp.net is not a trusted or secure host and is being ignored. thats the cause of the problem |
add --trusted-host pypi.camptocamp.net in the commands: virtualenv --setuptools --no-site-packages --trusted-host pypi.camptocamp.net .build/venv |
Then new error when trying the failing command:
Is my server correctly configured or am I the first one to upgrade following the doc? |
Something related to pypa/pip#2822? |
install setuptools manually |
after that the last command indicated in the doc should work |
err |
if pip complain that it doesnt know --trusted-host, then it's not using the right version of pip. |
I dont really understand though, since we use an absolute path to the pip executable :( |
Finally it worked!! There is for sure some issues here, but with all installs and uninstalls I did, I can't tell you exactly what was wrong... Thanks a lot @ochriste |
chances are you are probably right about it being related to pypa/pip#2822 |
Looks to work, closing |
Following the doc upgrading from 1.5 to 1.6 [1], I have a Python error with
make -f <makefile> project.yaml
:Is something missing?
[1] http://docs.camptocamp.net/c2cgeoportal/1.6/integrator/upgrade_application.html#easy-upgrading-an-application-from-1-5-to-1-6
The text was updated successfully, but these errors were encountered: