You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 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?
The text was updated successfully, but these errors were encountered:
Hi @xvik ,
The
checkPython
task is failing for me with the following error:AttributeError: 'tuple' object has no attribute 'major'
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 Pythonv2.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?
The text was updated successfully, but these errors were encountered: