maroba / findiff

Python package for numerical derivatives and partial differential equations in any number of dimensions.
MIT License
413 stars 59 forks source link

pip install error: missing LICENSE file #37

Closed dstndstn closed 3 years ago

dstndstn commented 3 years ago

Hi, On a clean ubuntu 20.04, python 3.8, I get:

> pip3 install findiff
Collecting findiff
  Downloading findiff-0.8.8.tar.gz (25 kB)
...
Building wheels for collected packages: findiff
  Building wheel for findiff (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ft6pl005/findiff/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ft6pl005/findiff/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-z4hggas4
...
  copying build/lib/findiff/pde.py -> build/bdist.linux-x86_64/wheel/findiff
  copying build/lib/findiff/_version.py -> build/bdist.linux-x86_64/wheel/findiff
  running install_egg_info
  Copying findiff.egg-info to build/bdist.linux-x86_64/wheel/findiff-0.8.8.egg-info
  running install_scripts
  error: [Errno 2] No such file or directory: 'LICENSE'
  ----------------------------------------
  ERROR: Failed building wheel for findiff
  Running setup.py clean for findiff
Failed to build findiff
maroba commented 3 years ago

Hi @dstndstn

that's interesting... the github actions with Ubuntu succeeded, but they are <20.04 I think. I found some issue in the new setup config and pushed version 0.8.9 to Pypi. Can you try

pip3 install findiff

again?

dstndstn commented 3 years ago

That worked!

root@2de67b916c5b:/# pip3 install findiff
Collecting findiff
  Downloading findiff-0.8.9.tar.gz (26 kB)
Requirement already satisfied: numpy in /usr/local/lib/python3.8/dist-packages (from findiff) (1.20.1)
Requirement already satisfied: scipy in /usr/local/lib/python3.8/dist-packages (from findiff) (1.6.0)
Requirement already satisfied: sympy in /usr/local/lib/python3.8/dist-packages (from findiff) (1.7.1)
Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.8/dist-packages (from sympy->findiff) (1.2.1)
Building wheels for collected packages: findiff
  Building wheel for findiff (setup.py) ... done
  Created wheel for findiff: filename=findiff-0.8.9-py3-none-any.whl size=29218 sha256=a24236d311b82b1a85c515b5f7beaf9f5e63baa085514d6285ab003b81079907
  Stored in directory: /root/.cache/pip/wheels/df/48/68/71cc95b16d5f7c5115a009f92f9a5a3896fb2ece31228b0aa5
Successfully built findiff
Installing collected packages: findiff
Successfully installed findiff-0.8.9

Thank you!