Python syntax error when running bin/zotonic #274

noahdiewald opened this Issue Dec 8, 2011 · 3 comments


None yet
3 participants

I was following the installation instructions using the current source at github. I ran "bin/zotonic addsite -s blog mysite" and I got the following error:

  File "<string>", line 1
    import os,sys;print os.path.realpath("bin/zotonic/../..")
SyntaxError: invalid syntax
Command not found: addsite

I have Python 3.2.2 on Arch Linux.

I edited the bin/zotonic script to use the non-python fall-back and it works fine.


helllamer commented Dec 8, 2011

Saem annoying error. I propose to replace python call with something like $(readlink -f $0)


arjan commented Dec 8, 2011

Readlink is not available on all platforms I think.
I'll make the call python 3.x compatible.

@arjan arjan closed this in eae4c53 Dec 8, 2011


arjan commented Dec 9, 2011

Yes I recall now, on BSD and mac readlink -f does not work like it does on linux.

rpip pushed a commit to rpip/zotonic that referenced this issue Aug 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment