linkedin / pygradle

Using Gradle to build Python projects
https://github.com/linkedin/pygradle
Apache License 2.0
586 stars 147 forks source link

Cannot import moto with version > 1.1.0 using pivy-importer-0.10.8-all.jar #309

Open xsaycocie opened 5 years ago

xsaycocie commented 5 years ago

error.log When using the jar to import newer moto versions we run into this error with this exact java command:

java -jar resources/pivy-importer-0.10.8-all.jar --debug --repo /tmp/repository "moto:1.3.8"

`Exception in thread "main" java.lang.RuntimeException: Unable to find source dist for python-jose:0.1.0 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:80) at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:74) at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247) at com.linkedin.python.importer.deps.SdistDownloader.downloadDependency(SdistDownloader.groovy:57) at com.linkedin.python.importer.deps.SdistDownloader$downloadDependency.callCurrent(Unknown Source) at com.linkedin.python.importer.deps.DependencyDownloader.download(DependencyDownloader.groovy:53) at com.linkedin.python.importer.ImporterCLI.importPackages(ImporterCLI.java:100) at com.linkedin.python.importer.ImporterCLI.main(ImporterCLI.java:73) `

I've also attached the entire output in error.log