Does PyGradle work with Python3.8 - re.py line 145 enum no attribute IntFlag
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 603
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
Okay, ... Still a newbie to python, ... I use gradle in professional life, ... I was excited to see python plugin for gradle, ...
been looking into this off and on for 2 days, .... thought maybe I was doing something wrong, ... starting to think that maybe pygradle doesnt work work Python3.8?
See output below.
gradle build
> Task :installBuildRequirements FAILED
Error installing package using `[/root/workspace/build/venv/bin/python, /root/workspace/build/venv/bin/pip, install, --disable-pip-version-check, --no-deps, --upgrade, /home/gradle/.gradle/caches/modules-2/files-2.1/pypi/enum34/1.1.6/14ef5878333ff91099893d615192c8cd0b1525a/enum34-1.1.6.tar.gz]`
Processing /home/gradle/.gradle/caches/modules-2/files-2.1/pypi/enum34/1.1.6/14ef5878333ff91099893d615192c8cd0b1525a/enum34-1.1.6.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/root/workspace/build/venv/lib/python3.8/site-packages/setuptools/__init__.py", line 6, in
import distutils.core
File "/root/workspace/build/venv/lib/python3.8/distutils/__init__.py", line 1, in
import imp
File "/root/workspace/build/venv/lib/python3.8/imp.py", line 27, in
import tokenize
File "/root/workspace/build/venv/lib/python3.8/tokenize.py", line 32, in
import re
File "/root/workspace/build/venv/lib/python3.8/re.py", line 145, in
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-491x_3qg/
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
Reproduce the failure with `gradle build` on Python 3.8 and inspect the `installBuildRequirements` task, especially its installation of enum34. Confirm the expected Python 3.8 compatibility behavior and add or update coverage for the failing dependency-installation path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100