RJT1990 / pyflux

Open source time series library for Python
BSD 3-Clause "New" or "Revised" License
2.1k stars 240 forks source link

pip install -e . RuntimeError: Running cythonize failed! #79

Closed juanpabloaj closed 7 years ago

juanpabloaj commented 7 years ago

When I try install pyflux from the source code

pip install -e .

I get this error message

    Complete output from command python setup.py egg_info:
    /Users/pablo/.envs/pyflux/bin/python3: can't open file '/Users/pablo/src/pyflux/tools/cythonize.py': [Errno 2] No such file or directory
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Users/pablo/src/pyflux/setup.py", line 92, in <module>
        setup_package()
      File "/Users/pablo/src/pyflux/setup.py", line 70, in setup_package
        generate_cython(PACKAGE_NAME)
      File "/Users/pablo/src/pyflux/setup.py", line 38, in generate_cython
        raise RuntimeError("Running cythonize failed!")
    RuntimeError: Running cythonize failed!
    Cythonizing sources
RJT1990 commented 7 years ago

Yes - tools folder should be in the highest directory of the repo. Will commit this tomorrow so you can build the source locally and make contributions!

howardnewyork commented 7 years ago

Was this ever fixed? The tools directory still seems to be missing?

Also, when I alternately try pip install pyflux, I get an error: Unknown MS Compiler version 1900

RJT1990 commented 7 years ago

Sorry, I haven't got around to doing this yet because of work. Hopefully will get some time this month.

RJT1990 commented 7 years ago

tools folder now in the repo

juanpabloaj commented 7 years ago

when I try to install I get this error message

pip install -e .
Obtaining file:///Users/pablo/src/pyflux
    Complete output from command python setup.py egg_info:
    warning: pyflux/gpnarx/kernel_routines.pyx:151:31: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined
    warning: pyflux/gpnarx/kernel_routines.pyx:153:31: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined
    warning: pyflux/gpnarx/kernel_routines.pyx:153:94: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined
    warning: pyflux/gpnarx/kernel_routines.pyx:169:31: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined
    warning: pyflux/gpnarx/kernel_routines.pyx:171:31: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined
    warning: pyflux/gpnarx/kernel_routines.pyx:171:98: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined
    warning: pyflux/gpnarx/kernel_routines.pyx:186:31: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined
    warning: pyflux/gpnarx/kernel_routines.pyx:188:31: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined
    warning: pyflux/gpnarx/kernel_routines.pyx:188:102: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined
    warning: pyflux/gpnarx/kernel_routines.pyx:203:31: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined
    warning: pyflux/gpnarx/kernel_routines.pyx:205:31: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined
    warning: pyflux/gpnarx/kernel_routines.pyx:205:104: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined
    pyflux
    Processing pyflux/arma/arma_recursions.pyx
    Processing pyflux/arma/nn_architecture.pyx
    Processing pyflux/families/gas_recursions.pyx
    Processing pyflux/families/poisson_kalman_recursions.pyx
    Processing pyflux/garch/garch_recursions.pyx
    Processing pyflux/gas/gas_core_recursions.pyx
    Processing pyflux/gpnarx/kernel_routines.pyx
    Processing pyflux/inference/bbvi_routines.pyx
    Processing pyflux/inference/metropolis_sampler.pyx
    Processing pyflux/ssm/kalman.pyx
    Processing pyflux/var/var_recursions.pyx
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Users/pablo/src/pyflux/setup.py", line 92, in <module>
        setup_package()
      File "/Users/pablo/src/pyflux/setup.py", line 84, in setup_package
        install_requires=['numpy', 'pandas', 'scipy', 'numdifftools','patsy'])
      File "/Users/pablo/.envs/pyflux/lib/python3.5/site-packages/numpy/distutils/core.py", line 135, in setup
        config = configuration()
      File "/Users/pablo/src/pyflux/setup.py", line 48, in configuration
        config.add_subpackage(PACKAGE_NAME)
      File "/Users/pablo/.envs/pyflux/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1001, in add_subpackage
        caller_level = 2)
      File "/Users/pablo/.envs/pyflux/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 970, in get_subpackage
        caller_level = caller_level + 1)
      File "/Users/pablo/.envs/pyflux/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 907, in _get_configuration_from_setup_py
        config = setup_module.configuration(*args)
      File "pyflux/setup.py", line 10, in configuration
        config.add_subpackage('__check_build')
      File "/Users/pablo/.envs/pyflux/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1001, in add_subpackage
        caller_level = 2)
      File "/Users/pablo/.envs/pyflux/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 963, in get_subpackage
        caller_level = caller_level+1)
      File "/Users/pablo/.envs/pyflux/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 745, in __init__
        raise ValueError("%r is not a directory" % (package_path,))
    ValueError: 'pyflux/__check_build' is not a directory
    Cythonizing sources
howardnewyork commented 7 years ago

I get the same error


From: JuanPablo notifications@github.com Sent: Friday, February 3, 2017 2:11:55 PM To: RJT1990/pyflux Cc: howardnewyork; Comment Subject: Re: [RJT1990/pyflux] pip install -e . RuntimeError: Running cythonize failed! (#79)

when I try to install I get this error message

pip install -e . Obtaining file:///Users/pablo/src/pyflux Complete output from command python setup.py egg_info: warning: pyflux/gpnarx/kernel_routines.pyx:151:31: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined warning: pyflux/gpnarx/kernel_routines.pyx:153:31: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined warning: pyflux/gpnarx/kernel_routines.pyx:153:94: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined warning: pyflux/gpnarx/kernel_routines.pyx:169:31: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined warning: pyflux/gpnarx/kernel_routines.pyx:171:31: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined warning: pyflux/gpnarx/kernel_routines.pyx:171:98: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined warning: pyflux/gpnarx/kernel_routines.pyx:186:31: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined warning: pyflux/gpnarx/kernel_routines.pyx:188:31: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined warning: pyflux/gpnarx/kernel_routines.pyx:188:102: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined warning: pyflux/gpnarx/kernel_routines.pyx:203:31: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined warning: pyflux/gpnarx/kernel_routines.pyx:205:31: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined warning: pyflux/gpnarx/kernel_routines.pyx:205:104: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined pyflux Processing pyflux/arma/arma_recursions.pyx Processing pyflux/arma/nn_architecture.pyx Processing pyflux/families/gas_recursions.pyx Processing pyflux/families/poisson_kalman_recursions.pyx Processing pyflux/garch/garch_recursions.pyx Processing pyflux/gas/gas_core_recursions.pyx Processing pyflux/gpnarx/kernel_routines.pyx Processing pyflux/inference/bbvi_routines.pyx Processing pyflux/inference/metropolis_sampler.pyx Processing pyflux/ssm/kalman.pyx Processing pyflux/var/var_recursions.pyx Traceback (most recent call last): File "", line 1, in File "/Users/pablo/src/pyflux/setup.py", line 92, in setup_package() File "/Users/pablo/src/pyflux/setup.py", line 84, in setup_package install_requires=['numpy', 'pandas', 'scipy', 'numdifftools','patsy']) File "/Users/pablo/.envs/pyflux/lib/python3.5/site-packages/numpy/distutils/core.py", line 135, in setup config = configuration() File "/Users/pablo/src/pyflux/setup.py", line 48, in configuration config.add_subpackage(PACKAGE_NAME) File "/Users/pablo/.envs/pyflux/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1001, in add_subpackage caller_level = 2) File "/Users/pablo/.envs/pyflux/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 970, in get_subpackage caller_level = caller_level + 1) File "/Users/pablo/.envs/pyflux/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 907, in _get_configuration_from_setup_py config = setup_module.configuration(*args) File "pyflux/setup.py", line 10, in configuration config.add_subpackage('check_build') File "/Users/pablo/.envs/pyflux/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1001, in add_subpackage caller_level = 2) File "/Users/pablo/.envs/pyflux/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 963, in get_subpackage caller_level = caller_level+1) File "/Users/pablo/.envs/pyflux/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 745, in init raise ValueError("%r is not a directory" % (package_path,)) ValueError: 'pyflux/check_build' is not a directory Cythonizing sources

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/RJT1990/pyflux/issues/79#issuecomment-277335287, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABunF9cZCCr-uu8-2rTI9shIgd4kM_C1ks5rY3v7gaJpZM4Lk64z.

RJT1990 commented 7 years ago

Hi guys, please accept my apologies - I did not upload the __check_build directory along with the tools last night. I am going to upload now. Apologies again!

RJT1990 commented 7 years ago

Now uploaded to the repo - let me know if that works for you.

juanpabloaj commented 7 years ago

now work 🎉

thanks @RJT1990

RJT1990 commented 7 years ago

Glad to hear it :D