linkedin / linkedin/pygradle

Wheel dependencies with pivy-importer not supported yet?

Open
#178 2 comments 2 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

Try running:

`java -jar pivy-importer-0.3.16-all.jar --repo repo opencv-python:3.4.0.12`

(opencv-python on PyPI has only .whl files available, not .tar.gz or .zip)
and observe:

`Exception in thread "main" java.lang.NullPointerException: Cannot get property 'url' on null object
at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:60)
at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:172)
at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:296)
at com.linkedin.python.importer.deps.DependencyDownloader.downloadDependency(DependencyDownloader.groovy:65)
at com.linkedin.python.importer.deps.DependencyDownloader$downloadDependency.callCurrent(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
at com.linkedin.python.importer.deps.DependencyDownloader.download(DependencyDownloader.groovy:48)
at com.linkedin.python.importer.ImporterCLI.main(ImporterCLI.java:65)
`

So there seems to be a problem when we don't have a typical archive download URL available (and only wheels)... is there any way we can get this to work, or am I making a mistake somewhere?

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 stated java -jar command and opencv-python:3.4.0.12. Start at DependencyDownloader.groovy:65, then trace the call from ImporterCLI.main; done means a dependency available only as a wheel can be handled without the reported NullPointerException.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.