centraldedados / datacentral

Tools for generating portable data portals
58 stars 9 forks source link

make install fails with Python 3.4 #10

Closed michalskop closed 9 years ago

michalskop commented 10 years ago

I am getting following error when running make install(info from ~/.pip/pip.log):

... Downloading async-0.6.1.tar.gz Downloading from URL https://pypi.python.org/packages/source/a/async/async-0.6.1.tar.gz#md5=6f0e2ced1fe85f8410b9bde11be08587 (from https://pypi.python.org/simple/async/) Running setup.py (path:/home/michal/project/datacentral/.env/build/async/setup.py) egg_info for package async Traceback (most recent call last): File "", line 17, in File "/home/michal/project/datacentral/.env/build/async/setup.py", line 24 print "Ignored failure when building extensions, pure python modules will be used instead" ^ SyntaxError: invalid syntax Complete output from command python setup.py egg_info: Traceback (most recent call last):

File "", line 17, in

File "/home/michal/project/datacentral/.env/build/async/setup.py", line 24

print "Ignored failure when building extensions, pure python modules will be used instead"

                                                                                         ^

SyntaxError: invalid syntax


Cleaning up... Removing temporary dir /home/michal/project/datacentral/.env/build... Command python setup.py egg_info failed with error code 1 in /home/michal/project/datacentral/.env/build/async Exception information: Traceback (most recent call last): File "/home/michal/project/datacentral/.env/lib/python3.4/site-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/home/michal/project/datacentral/.env/lib/python3.4/site-packages/pip/commands/install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/home/michal/project/datacentral/.env/lib/python3.4/site-packages/pip/req.py", line 1229, in prepare_files req_to_install.run_egg_info() File "/home/michal/project/datacentral/.env/lib/python3.4/site-packages/pip/req.py", line 325, in run_egg_info command_desc='python setup.py egg_info') File "/home/michal/project/datacentral/.env/lib/python3.4/site-packages/pip/util.py", line 697, in call_subprocess % (command_desc, proc.returncode, cwd)) pip.exceptions.InstallationError: Command python setup.py egg_info failed with error code 1 in /home/michal/project/datacentral/.env/build/async

rlafuente commented 10 years ago

This looks like a hitch with Python 3. I've only tested this on Python 2.7, and from that traceback it appears that the interpreter deals with a Python 2-style print statement in the async library (print "moo" instead of print("moo")).

Can you try this on a Python 2.x environment? If not, I'll try and get Python 3 to try this on my system.

rlafuente commented 9 years ago

It turns out that supporting Python 3 is not yet possible because of our GitPython dependency (more info on this issue).

It was a bit of a hassle to get the Git code right and it works at the moment -- on Python 2.7 at least. So, until the moment someone (or me) can find the time to replace GitPython with a Py3-compatible Git library, the only way to run Datacentral is using Python 2.7.