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

from fastrlock cimport rlock failed with setup.py #3

Closed
sonots opened this issue Aug 10, 2017 · 1 comment
Closed

from fastrlock cimport rlock failed with setup.py #3

sonots opened this issue Aug 10, 2017 · 1 comment

Comments

@sonots
Copy link
Contributor

sonots commented Aug 10, 2017

With setup.py

install_requires = [
    'fastrlock>=0.2',
]

and

from fastrlock cimport rlock

, I got a following error:

from fastrlock cimport rlock
^
------------------------------------------------------------

cupy/cuda/memory.pyx:11:0: 'fastrlock.pxd' not found
Traceback (most recent call last):
  File "setup.py", line 30, in <module>
    ext_modules = cupy_setup_build.get_ext_modules()
  File "/home/sonots/cupy/branch_fix_race_condition_memory_pool_fastrlock/cupy_setup_build.py", line 371, in get_ext_modules
    extensions = cythonize(extensions, arg_options)
  File "/home/sonots/cupy/branch_fix_race_condition_memory_pool_fastrlock/cupy_setup_build.py", line 342, in cythonize
    compiler_directives=directives, **cythonize_options)
  File "/home/sonots/.pyenv/versions/3.6.1/lib/python3.6/site-packages/Cython/Build/Dependencies.py", line 934, in cythonize
    cythonize_one(*args)
  File "/home/sonots/.pyenv/versions/3.6.1/lib/python3.6/site-packages/Cython/Build/Dependencies.py", line 1056, in cythonize_one
    raise CompileError(None, pyx_file)

although I found following works:

from fastrlock.rlock cimport create_fastrlock
from fastrlock.rlock cimport lock_fastrlock
from fastrlock.rlock cimport unlock_fastrlock

My python and cython version is as follows:

$ python --version
Python 3.6.1
$ cython --version
Cython version 0.25.2
@sonots
Copy link
Contributor Author

sonots commented Aug 10, 2017

Maybe, touch fastrlock/__init__.pxd is necessary?

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

1 participant