pygradle icon indicating copy to clipboard operation
pygradle copied to clipboard

pivy-importer get confused with - and _ symbols

Open KIC opened this issue 7 years ago • 1 comments

running this command: java -jar pivy-importer-0.6.17-all.jar --repo ./lib/pip/ plotly:2.2.3 dash:0.19.0 dash-renderer:0.11.1 dash-html-components:0.8.0 dash-core-components:0.15.2 --replace "Babel:0.8=Babel:1.3" will result in a missing dependency.

> Could not find dash-renderer.tar.gz (pypi:dash-renderer:0.11.1).
  Searched in the following locations:
      file:/xxx/lib/pip/pypi/dash-renderer/0.11.1/dash-renderer-0.11.1.tar.gz
> Could not find dash-html-components.tar.gz (pypi:dash-html-components:0.8.0).
  Searched in the following locations:
      file:/xxx/lib/pip/pypi/dash-html-components/0.8.0/dash-html-components-0.8.0.tar.gz
> Could not find dash-core-components.tar.gz (pypi:dash-core-components:0.15.2).
  Searched in the following locations:
      file:/xxx/lib/pip/pypi/dash-core-components/0.15.2/dash-core-components-0.15.2.tar.gz

But in fact the files are there just not with a - but with an _

$ ls -l lib/pip/pypi/dash-renderer/0.11.1/
total 125
-rw-r--r-- 1 kindler 1049089 126634 Dec 24 19:35 dash_renderer-0.11.1.tar.gz
-rw-r--r-- 1 kindler 1049089    586 Dec 24 19:42 dash-renderer-0.11.1.ivy

renaming the file does solve the problem.

PS I am wondering why pivy importer is not just a gradle task so we could use standard python repo and generate the ivy metadata on the fly.

PPS Happy Christmas !!

KIC avatar Dec 24 '17 18:12 KIC

Same here. The package tensorflow-gpu:1.13.1:cp37-cp37m-manyliux1_x86_64 is pulled in as tensorflow_gpu, but the pip command line would be pip install tensorflow-gpu. Maybe it would be safe to just convert all underscores to dashes, similiar to safe_name used by setuptools. See this question and answer on the mailing list for details.

Turakar avatar Mar 19 '19 09:03 Turakar