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 fails when installing through pip #134

Open
noahstreller opened this issue Jun 7, 2024 · 0 comments
Open

Build fails when installing through pip #134

noahstreller opened this issue Jun 7, 2024 · 0 comments

Comments

@noahstreller
Copy link

Environment used:

  • MacOS 14.0 (23A344)
  • Python 3.10.14

After running pip3.10 install reppy i get following error:

clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -Ireppy/rep-cpp/include -Ireppy/rep-cpp/deps/url-cpp/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c reppy/robots.cpp -o build/temp.macosx-14-x86_64-cpython-310/reppy/robots.o -std=c++11
      reppy/robots.cpp:1121:15: error: no member named 'use_tracing' in '_ts'
            tstate->use_tracing = 0;
            ~~~~~~  ^
      reppy/robots.cpp:1127:15: error: no member named 'use_tracing' in '_ts'
            tstate->use_tracing = 1;
            ~~~~~~  ^
      reppy/robots.cpp:1943:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceCall("as_bytes", __pyx_f[2], 22, 0, __PYX_ERR(2, 22, __pyx_L1_error));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1072:32: note: expanded from macro '__Pyx_TraceCall'
                if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                             ~~~~~~  ^
      reppy/robots.cpp:802:43: note: expanded from macro 'unlikely'
        #define unlikely(x) __builtin_expect(!!(x), 0)
                                                ^
      reppy/robots.cpp:1943:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceCall("as_bytes", __pyx_f[2], 22, 0, __PYX_ERR(2, 22, __pyx_L1_error));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1081:28: note: expanded from macro '__Pyx_TraceCall'
            if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                         ~~~~~~  ^
      reppy/robots.cpp:802:43: note: expanded from macro 'unlikely'
        #define unlikely(x) __builtin_expect(!!(x), 0)
                                                ^
      reppy/robots.cpp:2026:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceReturn(__pyx_r, 0);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1139:27: note: expanded from macro '__Pyx_TraceReturn'
                    if (tstate->use_tracing) {\
                        ~~~~~~  ^
      reppy/robots.cpp:2026:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceReturn(__pyx_r, 0);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1146:23: note: expanded from macro '__Pyx_TraceReturn'
                if (tstate->use_tracing) {\
                    ~~~~~~  ^
      reppy/robots.cpp:2049:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceCall("as_string", __pyx_f[2], 30, 0, __PYX_ERR(2, 30, __pyx_L1_error));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1072:32: note: expanded from macro '__Pyx_TraceCall'
                if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                             ~~~~~~  ^
      reppy/robots.cpp:802:43: note: expanded from macro 'unlikely'
        #define unlikely(x) __builtin_expect(!!(x), 0)
                                                ^
      reppy/robots.cpp:2049:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceCall("as_string", __pyx_f[2], 30, 0, __PYX_ERR(2, 30, __pyx_L1_error));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1081:28: note: expanded from macro '__Pyx_TraceCall'
            if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                         ~~~~~~  ^
      reppy/robots.cpp:802:43: note: expanded from macro 'unlikely'
        #define unlikely(x) __builtin_expect(!!(x), 0)
                                                ^
      reppy/robots.cpp:2158:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceReturn(__pyx_r, 0);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1139:27: note: expanded from macro '__Pyx_TraceReturn'
                    if (tstate->use_tracing) {\
                        ~~~~~~  ^
      reppy/robots.cpp:2158:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceReturn(__pyx_r, 0);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1146:23: note: expanded from macro '__Pyx_TraceReturn'
                if (tstate->use_tracing) {\
                    ~~~~~~  ^
      reppy/robots.cpp:2258:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceCall("FromRobotsMethod", __pyx_f[2], 37, 0, __PYX_ERR(2, 37, __pyx_L1_error));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1072:32: note: expanded from macro '__Pyx_TraceCall'
                if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                             ~~~~~~  ^
      reppy/robots.cpp:802:43: note: expanded from macro 'unlikely'
        #define unlikely(x) __builtin_expect(!!(x), 0)
                                                ^
      reppy/robots.cpp:2258:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceCall("FromRobotsMethod", __pyx_f[2], 37, 0, __PYX_ERR(2, 37, __pyx_L1_error));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1081:28: note: expanded from macro '__Pyx_TraceCall'
            if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                         ~~~~~~  ^
      reppy/robots.cpp:802:43: note: expanded from macro 'unlikely'
        #define unlikely(x) __builtin_expect(!!(x), 0)
                                                ^
      reppy/robots.cpp:2312:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceReturn(__pyx_r, 0);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1139:27: note: expanded from macro '__Pyx_TraceReturn'
                    if (tstate->use_tracing) {\
                        ~~~~~~  ^
      reppy/robots.cpp:2312:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceReturn(__pyx_r, 0);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1146:23: note: expanded from macro '__Pyx_TraceReturn'
                if (tstate->use_tracing) {\
                    ~~~~~~  ^
      reppy/robots.cpp:2345:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceCall("__str__", __pyx_f[2], 54, 0, __PYX_ERR(2, 54, __pyx_L1_error));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1072:32: note: expanded from macro '__Pyx_TraceCall'
                if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                             ~~~~~~  ^
      reppy/robots.cpp:802:43: note: expanded from macro 'unlikely'
        #define unlikely(x) __builtin_expect(!!(x), 0)
                                                ^
      reppy/robots.cpp:2345:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceCall("__str__", __pyx_f[2], 54, 0, __PYX_ERR(2, 54, __pyx_L1_error));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1081:28: note: expanded from macro '__Pyx_TraceCall'
            if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                         ~~~~~~  ^
      reppy/robots.cpp:802:43: note: expanded from macro 'unlikely'
        #define unlikely(x) __builtin_expect(!!(x), 0)
                                                ^
      reppy/robots.cpp:2381:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceReturn(__pyx_r, 0);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1139:27: note: expanded from macro '__Pyx_TraceReturn'
                    if (tstate->use_tracing) {\
                        ~~~~~~  ^
      reppy/robots.cpp:2381:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceReturn(__pyx_r, 0);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1146:23: note: expanded from macro '__Pyx_TraceReturn'
                if (tstate->use_tracing) {\
                    ~~~~~~  ^
      reppy/robots.cpp:2412:3: error: no member named 'use_tracing' in '_ts'
        __Pyx_TraceCall("__len__", __pyx_f[2], 57, 0, __PYX_ERR(2, 57, __pyx_L1_error));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      reppy/robots.cpp:1072:32: note: expanded from macro '__Pyx_TraceCall'
                if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                             ~~~~~~  ^
      reppy/robots.cpp:802:43: note: expanded from macro 'unlikely'
        #define unlikely(x) __builtin_expect(!!(x), 0)
                                                ^
      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      20 errors generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for reppy
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