Comments (9)
Maybe this bug is in relation with #9 ?
from nanobox-engine-python.
@harobed this very well could be related to #9, though I don't see an expected error in the log. Can you confirm this is still an issue, then we can close it?
from nanobox-engine-python.
I would like to test it, but I can't use my python engine because I've this bug : nanobox-io/nanobox#95
from nanobox-engine-python.
Bug fixed after :
nanobox update
nanobox update-images
- and, important
nanobox destroy
from nanobox-engine-python.
and, important nanobox destroy
This I think because /usr/local/bin/nanobox-server
in vagrant isn't updated after nanobox update
, what do you think about that @glinton @sdomino ?
from nanobox-engine-python.
I need also to use last nanobox-engine-python
from git clone to get the last version elsewhere I've :
/opt/nos/lib/payload.sh: line 9: PL_error:: command not found
Are there a command to update native engine ? if not, it's possible to append nanobox update-engines
?
I keep this issue open because this bug isn't fixed « out of the box ».
from nanobox-engine-python.
Nanobox tries not to mess with the Vagrantfile once it creates it, so adding an engine after it's been created would cause it not to be mounted. There are a few ways to get around this:
- Like you mentioned, destroying the box and recreating it to regenerate the Vagrantfile (not ideal)
- Deleting the Vagrantfile and running a command to regenerate it (not ideal)
- Running "nanobox init -f" will regenerate it (this is ok, but "init" is a "hidden" command)
I think what we'll probably do is with a "nanobox reload" regenerate a new Vagrantfile since reload is kind of a last resort way of resetting your VM before destroying it and trying again.
As for update-engines, all that would basically do is a "git up" on the repo, which is probably something easier/better handled by you just manually running it to get the updates for w/e engine you happen to be using at the time.
from nanobox-engine-python.
@harobed The reason the bug wasn't fixed "out of the box" was because we failed to publish our python engine after fixing the issue (77cb95c). If I remember though, there may be one other place where this would be caused. I'm almost sure it's resolved though, but if you do see this again, please let us know.
Also, regarding @sdomino's comment about updating the engine yourself with a git pull
, this should only be necessary if you are developing on the engine, using a custom engine, or manually testing a new, unpublished, addition to the engine. Nanobox will should be fetching the latest engine when you run|dev
from nanobox-engine-python.
What I do :
$ git clone https://github.com/harobed/nanobox-python-sample.git
$ cd nanobox-python-sample
$ nanobox destroy
$ nanobox update
$ nanobox update-images
$ nanobox dev
I've got :
VIRTUALENV ENV ------------------------>
New python executable in env/bin/python2.7
Also creating executable in env/bin/python
Installing setuptools, pip...done.
[√] SUCCESS
$ env/bin/pip install -r /opt/code/requirements.txt
PIP INSTALL --------------------------->
You are using pip version 6.0.8, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting flask (from -r /opt/code/requirements.txt (line 1))
Downloading Flask-0.10.1.tar.gz (544kB)
Collecting Werkzeug>=0.7 (from flask->-r /opt/code/requirements.txt (line 1))
Downloading Werkzeug-0.11.2-py2.py3-none-any.whl (304kB)
Collecting Jinja2>=2.4 (from flask->-r /opt/code/requirements.txt (line 1))
Downloading Jinja2-2.8-py2.py3-none-any.whl (263kB)
Collecting itsdangerous>=0.21 (from flask->-r /opt/code/requirements.txt (line 1))
Downloading itsdangerous-0.24.tar.gz (46kB)
Collecting MarkupSafe (from Jinja2>=2.4->flask->-r /opt/code/requirements.txt (line 1))
Downloading MarkupSafe-0.23.tar.gz
Installing collected packages: MarkupSafe, itsdangerous, Jinja2, Werkzeug, flask
Running setup.py install for MarkupSafe
building 'markupsafe._speedups' extension
gcc -fno-strict-aliasing -O2 -Wno-error -I/usr/include/x86_64-linux-gnu -DHAVE_DB_185_H -pthread -I/usr/include -I/data/include/db4 -I/data/include -I/data/include/ncurses -DNDEBUG -O2 -Wno-error -I/usr/include/x86_64-linux-gnu -DHAVE_DB_185_H -pthread -I/usr/include -I/data/include/db4 -I/data/include -I/data/include/ncurses -fPIC -I/data/include/python2.7 -c markupsafe/_speedups.c -o build/temp.linux-x86_64-2.7/markupsafe/_speedups.o
gcc -shared -L/var/tmp/pkgsrc-build-base/base/python27/work/Python-2.7.10 -L/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -pthread -L/data/lib -Wl,-R/data/lib build/temp.linux-x86_64-2.7/markupsafe/_speedups.o -L/data/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/markupsafe/_speedups.so
Running setup.py install for itsdangerous
Running setup.py install for flask
Successfully installed Jinja2-2.8 MarkupSafe-0.23 Werkzeug-0.11.2 flask-0.10.1 itsdangerous-0.24
[√] SUCCESS
Ok this bug is fixed :)
from nanobox-engine-python.
Related Issues (17)
- requirements packages are installed but not accessible
- Boxfile exec field isn't used at the end of nanobox run HOT 5
- bad interpreter: No such file or directory HOT 5
- Pip installs packages to different site-packages directory HOT 13
- Refactor workflow
- Ensure pip modules are caching between builds HOT 3
- UTF-16
- Provide dependencies for Pillow by default
- Missing sqlite in python3.6 HOT 1
- Need help understanding Python
- Proposal for automatically installing OS packages based on Python requirements HOT 1
- Python engine cmd error HOT 4
- python-3.6 and psycopg2 (Error: pg_config executable not found.) HOT 2
- Python from pkgin is compiled with old flags HOT 2
- ignoring Boxfile when specifying python34 HOT 4
- /opt/nos/lib/payload.sh: line 9: PL_error:: command not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nanobox-engine-python.