pygradle icon indicating copy to clipboard operation
pygradle copied to clipboard

Could not create an instance of type com.linkedin.gradle.python.PythonExtension_Decorated.

Open cay914 opened this issue 8 years ago • 11 comments

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

20161103100834

cay914 avatar Nov 03 '16 02:11 cay914

This is a duplicate of issue #68 Closing this one. Please follow up for resolution on #68.

zvezdan avatar Nov 03 '16 03:11 zvezdan

@zvezdan this are different issues. @cay914 can you please run gradle wrapper --gradle-version 3.0 --stacktrace?

ethankhall avatar Nov 08 '16 18:11 ethankhall

file.txt OK. Here is the exception file log. @ethankhall

cay914 avatar Nov 15 '16 13:11 cay914

@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 avatar Jan 04 '17 23:01 scuba10steve

@scuba10steve did you see it on Windows then?

ethankhall avatar Jan 05 '17 00:01 ethankhall

@ethankhall Yes, but not on a linux based machine, more specifically it was a VirtualBox VM running Xubuntu 16.04.

output.txt

scuba10steve avatar Jan 05 '17 00:01 scuba10steve

Awesome thanks, I'll take a look at whats going on.

ethankhall avatar Jan 05 '17 00:01 ethankhall

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!

kevinbader avatar Jan 20 '17 09:01 kevinbader

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']

yasz avatar Jun 27 '18 02:06 yasz

Is this resolved, I have the same issue on windows.

Krannthi avatar Jul 13 '18 21:07 Krannthi

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.

drkstr101 avatar Jan 28 '19 20:01 drkstr101