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

Python v2.6 and checkPython task #7

Closed
azagniotov opened this issue Aug 2, 2019 · 0 comments
Closed

Python v2.6 and checkPython task #7

azagniotov opened this issue Aug 2, 2019 · 0 comments

Comments

@azagniotov
Copy link

Hi @xvik ,

The checkPython task is failing for me with the following error:
AttributeError: 'tuple' object has no attribute 'major'

Task :checkPython FAILED
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 1, in <module>
AttributeError: 'tuple' object has no attribute 'major'
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':checkPython'.
> Python call failed: python -S -c exec("import sys;ver=sys.version_info;print(str(ver.major)+'.'+str(ver.minor)+'.'+str(ver.micro));print(sys.prefix)")

The following is the code that constructs the above command
https://github.com/xvik/gradle-use-python-plugin/blob/master/src/main/groovy/ru/vyarus/gradle/plugin/python/cmd/Python.groovy#L311

The error AttributeError: 'tuple' object has no attribute 'major' has to do with the fact that the box where I am running Gradle has Python v2.6.6 installed.

It is pretty bad, I know :( as Python v2.6 is very old, but I am afraid I am not in a position to upgrade it.

Thoughts?

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

1 participant