SyntaxError: build.py @def copy_resources
Reported by Bill McGonigle | May 13th, 2013 @ 03:17 PM
I'm trying to build dupeguru-me on Fedora 17. The pre-requisites are installed, source checked out via hg, but when I get to the build.py step, I get:
$ python build.py --clean Traceback (most recent call last):
File "build.py", line 20, in from hscommon import sphinxgen File
"/home/flowerpt/src/dupeguru/dupeguru-me/dupeguru-me/hscommon/sphinxgen.py",
line 12, in from .build import print_and_do, read_changelog_file,
filereplace File
"/home/flowerpt/src/dupeguru/dupeguru-me/dupeguru-me/hscommon/build.py",
line 290 def copy_resources(self, *resources, use_symlinks=False):
^ SyntaxError: invalid syntax
confirming by hand:
$ python -m py_compile /home/flowerpt/src/dupeguru/dupeguru-me/dupeguru-me/hscommon/build.py
SyntaxError: ('invalid syntax', ('/home/flowerpt/src/dupeguru/dupeguru-me/dupeguru-me/hscommon/build.py', 290, 53, ' def copy_resources(self, *resources, use_symlinks=False):\n'))
Python version is:
python-2.7.3-7.2.fc17.x86_64
I looked at the function definition syntax BNF python.org, and I don't see the obvious problem, but I'm definitely not a python hacker.
Comments and changes to this ticket
-
Virgil Dupras May 13th, 2013 @ 10:44 PM
- State changed from new to invalid
dupeGuru uses python3. Try the same command with Python3 (and the specified prerequisites).
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป