python - ocdev won't run: SyntaxError: invalid Syntax -



python - ocdev won't run: SyntaxError: invalid Syntax -

i can't ocdev tool run. when seek running receive "syntaxerror: invalid syntax" code. guess maybe wrong python version? since python --version outputs 2.7.3. have python3 installed it's not standard version. installed ocdev using pip-3.2. tried reinstalling multiple times. have python3-jinja2 installed. i'm running debian 7.8.

here whole error:

traceback (most recent phone call last): file "/usr/local/bin/ocdev", line 9, in <module> load_entry_point('ocdev==0.1.2', 'console_scripts', 'ocdev')() file "/usr/lib/python3/dist-packages/pkg_resources.py", line 337, in load_entry_point homecoming get_distribution(dist).load_entry_point(group, name) file "/usr/lib/python3/dist-packages/pkg_resources.py", line 2280, in load_entry_point homecoming ep.load() file "/usr/lib/python3/dist-packages/pkg_resources.py", line 1990, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) file "/usr/local/lib/python3.2/dist-packages/ocdev/application.py", line 20, in <module> ocdev.plugins import plugins file "/usr/local/lib/python3.2/dist-packages/ocdev/plugins/__init__.py", line 1, in <module> ocdev.plugins.startapp.startapp import startapp file "/usr/local/lib/python3.2/dist-packages/ocdev/plugins/startapp/startapp.py", line 7, in <module> jinja2 import environment, filesystemloader file "/usr/local/lib/python3.2/dist-packages/jinja2/__init__.py", line 33, in <module> jinja2.environment import environment, template file "/usr/local/lib/python3.2/dist-packages/jinja2/environment.py", line 639 u'\xff\xff\xff\xff'.encode('iso-8859-15') ^ syntaxerror: invalid syntax

in order ocdev work python 3.2 need install legacy versions of jinja2(source) , markupsafe(source). because newer versions require python 3.3.

to proper install follow regular setup guide , utilize next pip/pip3 commands:

pip install -iv jinja2==2.6 pip install -iv markupsafe==0.15 pip install ocdev

i reported in ocdev github repository here.

python owncloud

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -