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
Issues with installing matplotlib on Travis with Python 3 #1781
Comments
For the first one -- is the permission denied for The parallel 2to3 can probably be wrapped in a |
We're seeing similar things with our own Travis tests -- the Python 3 tests used to work but recently stopped, with a similar "Permission denied" error. I can't reproduce it in a Travis VM, so it's not at all clear what's going on here, but I will keep this space posted as information develops. |
It does seem that avoiding multiprocessing helps. See #1784. |
Can you confirm that |
@mdboom - just tried with |
Great. I'll go ahead and close this then. You can always pip install from a git url until our next release that incorporates this fix has an official entry on PyPI. |
At the moment, doing
pip install matplotlib
will fail on Travis for two reasons:If
python-dateutil
is not available, aPermission Denied
error will be raised when Matplotlib tries to install it:https://api.travis-ci.org/jobs/5006942/log.txt?deansi=true
This can be 'fixed' by pre-installing python-dateutil (and I think the same would happen for pytz, so I pre-emptively installed it too). So maybe this isn't really a bug, just a limitation of installing packages from another package.
The use of
multiprocessing
for running 2to3 will also raise aPermission Denied
, though I'm not too sure why:https://api.travis-ci.org/jobs/5006942/log.txt?deansi=true
However, fixing the setup.py file so that 2to3 is just run sequentially without resorting to
multiprocessing
and then serving the patched file to Travis seems to do the trick.So maybe Travis has some limitations on the number of processes that can be run?
Either way, it seems to me it might be good to make matplotlib Travis-proof and if the multiprocessing doesn't work for 2to3, maybe it should resort to running them sequentially?
The text was updated successfully, but these errors were encountered: