Open ralienpp opened 9 years ago
Same issue here. If it matters:
Platter looks wonderful: no more git, gcc and dev libraries on my servers. I am really looking forward to make it work!
I am also running into the virtualenv.py': [Errno 2] No such file or directory
problem with Ubuntu 14.04:
[04:02:18][create-platter-distribution] Saved /home/teamcity/temp/buildTmp/tmp19TFbF-venv-tmp/virtualenv-12.1.1.tar.gz
[04:02:18][create-platter-distribution] Successfully downloaded virtualenv
[04:02:18][create-platter-distribution] Created scratchpad in /home/teamcity/temp/buildTmp/tmp0Mt5Wf-venv
[04:02:18][create-platter-distribution] Initializing build virtualenv in /home/teamcity/temp/buildTmp/tmp0Mt5Wf-venv
[04:02:18][create-platter-distribution] Executing /home/teamcity/.virtualenvs/platter/bin/python2.7 /home/teamcity/temp/buildTmp/tmp19TFbF-venv-tmp/virtualenv.py /home/teamcity/temp/buildTmp/tmp0Mt5Wf-venv
[04:02:18][create-platter-distribution] /home/teamcity/.virtualenvs/platter/bin/python2.7: can't open file '/home/teamcity/temp/buildTmp/tmp19TFbF-venv-tmp/virtualenv.py': [Errno 2] No such file or directory
[04:02:18][create-platter-distribution] Error: Failed to execute command "/home/teamcity/.virtualenvs/platter/bin/python2.7"
[04:02:18][create-platter-distribution] Cleaning up scratchpad in /home/teamcity/temp/buildTmp/tmp0Mt5Wf-venv
[04:02:18][create-platter-distribution] Cleaning up scratchpad in /home/teamcity/temp/buildTmp/tmp19TFbF-venv-tmp
In particular:
/home/teamcity/.virtualenvs/platter/bin/python2.7: can't open file '/home/teamcity/temp/buildTmp/tmp19TFbF-venv-tmp/virtualenv.py': [Errno 2] No such file or directory
Strangely, I got platter to work just fine on my OS X system.
I strongly suspect that the above problem with finding virtualenv.py
has to do with the fact that on my Mac, virtualenv was being installed from a wheel (which I think platter likes), but on the Ubuntu system, it was installing virtualenv from a tarball (because it was using a private index server that didn't have the wheel) and that confuses platter. By forcing my build server to use an internal devpi server that has a wheel for virtualenv, the problem went away.
I wonder if https://github.com/mitsuhiko/platter/pull/12 fixes the issue I ran into -- I'll try to find some time to try it out later.
I attempt to use Platter on a RasPi, I stumbled upon several issues, the first one produces this output:
Having investigated it a little bit, I understood that it attempts to use
/tmp/tmpRcLmBb-venv-tmp/virtualenv.py
, whereas the path that is actually formed on the system is/tmp/tmpRcLmBb-venv-tmp/virtualenv-12.0.7/virtualenv.py
(in other words, there is avirtualenv-12.0.7
subdirectory).Altering the path manually via a debugger does the trick and Platter moves on. It then fails at another point:
Remarks:
/tmp/tmp5XYUlZ-venv/bin/python
does existsetup.py
in the current directory, which is/home/pi