Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
juanpabloaj opened this issue Jan 16, 2017 · 10 comments
Closed

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

juanpabloaj opened this issue Jan 16, 2017 · 10 comments

Comments

@juanpabloaj
Copy link
Contributor

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
Copy link
Owner

RJT1990 commented Jan 23, 2017

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
Copy link

howardnewyork commented Feb 2, 2017

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
Copy link
Owner

RJT1990 commented Feb 2, 2017

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

@RJT1990
Copy link
Owner

RJT1990 commented Feb 2, 2017

tools folder now in the repo

@RJT1990 RJT1990 closed this as completed Feb 2, 2017
@juanpabloaj
Copy link
Contributor Author

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
Copy link

howardnewyork commented Feb 3, 2017 via email

@RJT1990
Copy link
Owner

RJT1990 commented Feb 3, 2017

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
Copy link
Owner

RJT1990 commented Feb 3, 2017

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

@juanpabloaj
Copy link
Contributor Author

now work 🎉

thanks @RJT1990

@RJT1990
Copy link
Owner

RJT1990 commented Feb 3, 2017

Glad to hear it :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants