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

Build Error #24

Open
jiazhihao opened this issue May 27, 2022 · 1 comment
Open

Build Error #24

jiazhihao opened this issue May 27, 2022 · 1 comment

Comments

@jiazhihao
Copy link
Collaborator

I ran into the following compilation error when building the Cython component of Quartz:

ubuntu@ip-172-31-72-27:~/quartz/python$ python setup.py build_ext --inplace install
Compiling quartz/_cython/core.pyx because it changed.
[1/1] Cythonizing quartz/_cython/core.pyx

Error compiling Cython file:
------------------------------------------------------------
...
from libcpp.pair cimport pair

ctypedef float ParamType

cdef extern from "gate/gate_utils.h" namespace "quartz":
    cpdef enum class GateType:
              ^
------------------------------------------------------------

quartz/_cython/CCore.pxd:13:15: Expected ':', found 'class'

Error compiling Cython file:
------------------------------------------------------------
...
from cython.operator cimport dereference as deref
from libcpp.string cimport string
from libcpp.vector cimport vector
from libcpp.memory cimport shared_ptr, make_shared
from libcpp cimport bool
from CCore cimport GateType
^
------------------------------------------------------------

quartz/_cython/core.pyx:8:0: 'CCore/GateType.pxd' not found

Error compiling Cython file:
------------------------------------------------------------
...
from libcpp.string cimport string
from libcpp.vector cimport vector
from libcpp.memory cimport shared_ptr, make_shared
from libcpp cimport bool
from CCore cimport GateType
from CCore cimport Gate
^
------------------------------------------------------------

quartz/_cython/core.pyx:9:0: 'CCore/Gate.pxd' not found

Any hints on how to fix it?

@Co1lin
Copy link
Collaborator

Co1lin commented May 28, 2022

What's the Cython version? Is it the code on master branch?

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

2 participants