Build issue with pygradle
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 603
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Gradle installBuildRequirements task and the setup.py traceback, then inspect how pygradle selects the virtualenv Python version and installs Babel-related requirements. Reproduce the Sphinx build failure and verify that the documented Python 3.6 configuration works without the Babel/pytz error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100