Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issue with pygradle #337

Open
smslack opened this issue Jan 23, 2020 · 1 comment
Open

Build issue with pygradle #337

smslack opened this issue Jan 23, 2020 · 1 comment

Comments

@smslack
Copy link

smslack commented Jan 23, 2020

I keep getting this error while running the gradle build using pygradle:

Processing /tmp/pypi-local/pypi/Sphinx/1.8.1/Sphinx-1.8.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-req-build-Zb0QRr/setup.py", line 82, in
from babel.messages.pofile import read_po
File "/home/python_packaging_example_git/build/venv/local/lib/python2.7/site-packages/babel/messages/init.py", line 12, in
from babel.messages.catalog import *
File "/home/python_packaging_example_git/build/venv/local/lib/python2.7/site-packages/babel/messages/catalog.py", line 23, in
from babel.dates import format_datetime
File "/home/python_packaging_example_git/build/venv/local/lib/python2.7/site-packages/babel/dates.py", line 28, in
from babel.util import UTC, LOCALTZ
File "/home/python_packaging_example_git/build/venv/local/lib/python2.7/site-packages/babel/util.py", line 282, in
UTC = _pytz.utc
AttributeError: 'module' object has no attribute 'utc'

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':installBuildRequirements'.

How do i fix this?

Also i see that it is using python version 2.7 in the virtualenv, how do i specify to use python 3.6 instead?

@shvilime
Copy link

shvilime commented Feb 14, 2020

To use python version 3.6, you can set this in your build.gradle.

python {
     details {
        details.pythonVersion = '3.6'
     }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants