turbulenz / turbulenz_engine

Turbulenz is a modular 3D and 2D game framework for making HTML5 powered games for browsers, desktops and mobile devices.

Home Page:http://turbulenz.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in setup step 4

IssaMansour opened this issue · comments

Hi,

Can someone help me with this error ?

screen shot 2013-05-07 at 8 30 36 am

Thx

You need to have python-simplejson .
Also, I got this error :
$ python2.7 manage.py jslib
BUILD CMD IS:
make -j 2 MODULAR=1 jslib
[MKDIR] jslib-modular/
[CP ] tslib/base.d.ts tslib/turbulenz.d.ts
[CP ] tslib/base.d.ts tslib/turbulenz.d.ts
[TSC ] debug.ts -> jslib-modular/debug.js
make: node: Command not found
make: *** [jslib-modular/debug.js] Error 127
BUILD TOOK: 0.317391 seconds

[ERROR] - make -j 2 MODULAR=1 jslib

I think the problems is this :
[catafest@catafest turbulenz_engine]$ virtualenv --python=python2.7 pyver27
Running virtualenv with interpreter /usr/local/bin/python2.7
New python executable in pyver27/bin/python2.7
Not overwriting existing python script pyver27/bin/python (you must use pyver27/bin/python2.7)
Traceback (most recent call last):
File "/home/catafest/turbulenz_engine/pyver27/lib/python2.7/site.py", line 66, in
import os
File "/home/catafest/turbulenz_engine/pyver27/lib/python2.7/os.py", line 49, in
import posixpath as path
File "/home/catafest/turbulenz_engine/pyver27/lib/python2.7/posixpath.py", line 17, in
import warnings
ImportError: No module named warnings
ERROR: The executable pyver27/bin/python2.7 is not functioning
ERROR: It thinks sys.prefix is '/home/catafest/turbulenz_engine' (should be '/home/catafest/turbulenz_engine/pyver27')
ERROR: virtualenv is not compatible with this system or executable

IssaMansour: It looks like easy_install didn't work. Try activating the Turbulenz environment (source env/bin/activate) and then try running "easy_install" of "env/bin/easy_install" manually to see if you can call it manually.

Catafest: Have you run the env command? You need to do that before running 'jslib'. Node is installed as part of that.

You should do:

python2.7 manage.py env
source env/bin/activate
python manage.py jslib

Note: Once you activate the env you should see (env) written in the command prompt. After that, 'python' should refer to the python2.7 you setup the env with.

Hi, IssaMansour,

do you have space in your engine path?

virtualenv will use your path in the interpreter path(#!), for historical reason, you can not have any space in interpreter path, and you have no way to fix this problem, check this: http://lists.gnu.org/archive/html/bug-bash/2008-05/msg00052.html

So, just rename your dir.

turbulenz_engine]$ virtualenv env/
New python executable in env/bin/python
Installing setuptools..................done.
turbulenz_engine]$ source env/bin/activate
(env)[catafest@catafest turbulenz_engine]$
(env)[catafest@catafest turbulenz_engine]$ python2.7 manage.py env
Traceback (most recent call last):
File "/home/catafest/turbulenz_engine/env/lib/python2.7/site.py", line 66, in
import os
File "/home/catafest/turbulenz_engine/env/lib/python2.7/os.py", line 49, in
import posixpath as path
File "/home/catafest/turbulenz_engine/env/lib/python2.7/posixpath.py", line 17, in
import warnings
ImportError: No module named warnings

I think my virtualenv is old : ]$ virtualenv --version
1.3.3

Hi,

You have right @caasi. I had a space in my engine path. Thank you that fixed my problem.

@catafest the version of your VirtualEnv must be 1.9.1 or higher. You can downloaded it here: https://pypi.python.org/pypi/virtualenv

I think I can close this issue.