pygradle
pygradle copied to clipboard
Could not create an instance of type com.linkedin.gradle.python.PythonExtension_Decorated.
When I run the example of PyGradle, I came across this exception.
my environments: win7 64-bit jdk1.8.0_51 gradle-3.1
thanks
This is a duplicate of issue #68 Closing this one. Please follow up for resolution on #68.
@zvezdan this are different issues.
@cay914 can you please run gradle wrapper --gradle-version 3.0 --stacktrace
?
file.txt OK. Here is the exception file log. @ethankhall
@ethankhall I have had the same thing on my machine at work, and I attempted the same exact process on a linux vm and I did not have any issues, just tried it on my machine here at my home and produced the same error as on my windows machine at work, so it looks like the issue could be os dependent.
@scuba10steve did you see it on Windows then?
@ethankhall Yes, but not on a linux based machine, more specifically it was a VirtualBox VM running Xubuntu 16.04.
Awesome thanks, I'll take a look at whats going on.
Same here..
Gradle 3.2.1
Groovy: 2.4.7
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_111 (Oracle Corporation 25.111-b14)
OS: Windows 10 10.0 amd64
Same error using both the Windows cmd and the git bash (cygwin):
* What went wrong:
An exception occurred applying plugin request [id: 'com.linkedin.python-cli', version: '0.3.36']
> Failed to apply plugin [class 'com.linkedin.gradle.python.plugin.PythonPlugin']
> Could not create an instance of type com.linkedin.gradle.python.PythonExtension_Decorated.
Thanks!
same here..
Gradle 4.7
Groovy:2.4.15
JVM: 1.8.0_172(build 1.8.0_172-b11)
OS: Windows 7 64bit
example-project>gradle wrapper --gradle-version 3.0 --stacktrace
FAILURE: Build failed with an exception.
* Where:
Build file 'D:\2.ws\pycharm\example-project\build.gradle' line: 2
* What went wrong:
An exception occurred applying plugin request [id: 'com.linkedin.python-sdist', version: '0.3.9']
> Failed to apply plugin [class 'com.linkedin.gradle.python.plugin.PythonPlugin']
> Could not create an instance of type com.linkedin.gradle.python.PythonExtension_Decorated.
> Unable to find or execute python
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.plugins.InvalidPluginException: An exception occurred applying plugin request [id: 'com.linkedin.python-sdist', version: '0.3.9']
Is this resolved, I have the same issue on windows.
I was having the same issue, when I noticed I had Python in my user Path variable in Windows, but I had not added it to the SYSTEM Path variable as well. I believe the later is what the python interpreter pulls for System.getenv('PATH')
. Adding python dir to SYSTEM Path variable should fix this issue.