linkedin / linkedin/pygradle

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

Open
#309 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
603
Forks
142
PR merge metrics
No merged PRs in 30d

Description

[error.log](https://github.com/linkedin/pygradle/files/3282751/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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the exact pivy-importer command and moto:1.3.8 input. Start at SdistDownloader.groovy:57, then follow DependencyDownloader.groovy:53 and ImporterCLI.java:100; done means the importer completes without the python-jose:0.1.0 source-distribution error.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, java, python
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.