Giter VIP home page Giter VIP logo

Comments (5)

roebel avatar roebel commented on September 28, 2024

Thanks, I prepared this with python3.6 and you have python 3.7, You need to install cython for your python installation for this to work. I will look how to add this dependency into the installer.

from pysndfile.

sveinse avatar sveinse commented on September 28, 2024

I had some similar problems when using pysndfile from pypi. Currently the package assumes and requires numpy and cython, which is not perfect. E.g. running

$ pip download --no-deps --no-binary=:all pysndfile
Collecting pysndfile
  Using cached https://files.pythonhosted.org/packages/00/32/271564283bcde85c8b376290b65ed4eba3e10798a485cfd0ba80de94d993/pysndfile-1.3.3.tar.gz
  Saved c:\svein\prosjekt\elns\pysndfile-1.3.3.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\svein\AppData\Local\Temp\pip-download-9vz9dlkp\pysndfile\setup.py", line 11, in <module>
        import numpy as np
    ModuleNotFoundError: No module named 'numpy'

fails for simple download. The expected behavior is that pip should be able to download the source repo. This is caused by the direct import of numpy inside the setup.py script. Unfortunately, I haven't any knowledge on how it should be implemented. I pushed the problem ahead of myself by simply preinstalling numpy and cython in the venv before dealing with pysndfile.

from pysndfile.

roebel avatar roebel commented on September 28, 2024

The problem is that when I started the project in 2014 build requirements could not be handled by setup.py. Moreover there is always the dependency of libsndfile that cannot be handled anyway because it is outside the pypi world.

While libsndfile is still not handled there exist means to handle build dependencies (here cython and numpy) following suggestions in PEP 518. I made a few trials and at least for the latest version of pip 19.1 this seems to work quite nicely. You find this implemented in pysndfile 1.3.4. It includes as well the changes from issue #3 related to the support for windows. If I don't get any feedback for problems here I will close this issue.

from pysndfile.

sveinse avatar sveinse commented on September 28, 2024

I tested 1.3.4 in my windows build environment without pre-installing numpy and cython. I cannot tell for certain, as the build fails of other reasons, but it does seem like the dependency fix works.

from pysndfile.

roebel avatar roebel commented on September 28, 2024

ok, great, thanks for testing.

from pysndfile.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.