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

'ob_digit': is not a member of '_longobject' #220

Open
programgirl opened this issue Mar 25, 2024 · 0 comments
Open

'ob_digit': is not a member of '_longobject' #220

programgirl opened this issue Mar 25, 2024 · 0 comments

Comments

@programgirl
Copy link

Trying to install the package into PyCharm. I've tried to install via PyCharm and also through pip via the Windows 11 command prompt. I'm running the Community Edition of PyCharm and Python 2.12.2.

I've seen this problem referenced elsewhere, but all issues seem to have fixes applied, e.g. cython/cython#5238

Microsoft Windows [Version 10.0.22621.3296]
(c) Microsoft Corporation. All rights reserved.

C:\Users\XXXXX>pip install jsonobject
Collecting jsonobject
Using cached jsonobject-2.1.0.tar.gz (406 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: six in c:\users\XXXX\appdata\local\programs\python\python312\lib\site-packages (from jsonobject) (1.16.0)
Building wheels for collected packages: jsonobject
Building wheel for jsonobject (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for jsonobject (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [27 lines of output]
Warning: 'classifiers' should be a list, got type 'tuple'
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
creating build\lib.win-amd64-cpython-312\jsonobject
copying jsonobject\exceptions.py -> build\lib.win-amd64-cpython-312\jsonobject
copying jsonobject_init_.py -> build\lib.win-amd64-cpython-312\jsonobject
running build_ext
building 'jsonobject.api' extension
creating build\temp.win-amd64-cpython-312
creating build\temp.win-amd64-cpython-312\Release
creating build\temp.win-amd64-cpython-312\Release\jsonobject
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\XXXX\AppData\Local\Programs\Python\Python312\include -IC:\Users\XXXX\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcjsonobject/api.c /Fobuild\temp.win-amd64-cpython-312\Release\jsonobject/api.obj
api.c
jsonobject/api.c(4709): error C2039: 'ob_digit': is not a member of '_longobject'
C:\Users\XXXX\AppData\Local\Programs\Python\Python312\include\cpython/longintrepr.h(87): note: see declaration of '_longobject'
jsonobject/api.c(4764): error C2039: 'ob_digit': is not a member of '_longobject'
C:\Users\XXXX\AppData\Local\Programs\Python\Python312\include\cpython/longintrepr.h(87): note: see declaration of '_longobject'
jsonobject/api.c(4905): error C2039: 'ob_digit': is not a member of '_longobject'
C:\Users\XXXX\AppData\Local\Programs\Python\Python312\include\cpython/longintrepr.h(87): note: see declaration of '_longobject'
jsonobject/api.c(4960): error C2039: 'ob_digit': is not a member of '_longobject'
C:\Users\XXXX\AppData\Local\Programs\Python\Python312\include\cpython/longintrepr.h(87): note: see declaration of '_longobject'
jsonobject/api.c(5411): error C2039: 'ob_digit': is not a member of '_longobject'
C:\Users\XXXX\AppData\Local\Programs\Python\Python312\include\cpython/longintrepr.h(87): note: see declaration of '_longobject'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for jsonobject
Failed to build jsonobject
ERROR: Could not build wheels for jsonobject, which is required to install pyproject.toml-based projects

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