This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: json module install error i was use windows 10 pro 64 bit, pls give solutions to rectify this issue
Type: compile error Stage: resolved
Components: Installation Versions: Python 3.8
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: magesh, xtreak
Priority: normal Keywords:

Created on 2020-03-10 02:53 by magesh, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
json error.txt magesh, 2020-03-10 02:53
Messages (3)
msg363797 - (view) Author: Mageshkumar (magesh) Date: 2020-03-10 02:53
C:\WINDOWS\system32>pip install jsonlib
Collecting jsonlib
  Using cached jsonlib-1.6.1.tar.gz (43 kB)
Installing collected packages: jsonlib
    Running setup.py install for jsonlib ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\mageshkumar\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Mageshkumar\\AppData\\Local\\Temp\\pip-install-dz8cos59\\jsonlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Mageshkumar\\AppData\\Local\\Temp\\pip-install-dz8cos59\\jsonlib\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Mageshkumar\AppData\Local\Temp\pip-record-7a5omup8\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\mageshkumar\appdata\local\programs\python\python38\Include\jsonlib'
         cwd: C:\Users\Mageshkumar\AppData\Local\Temp\pip-install-dz8cos59\jsonlib\
    Complete output (41 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.8
    copying jsonlib.py -> build\lib.win-amd64-3.8
    running build_ext
    building '_jsonlib' extension
    creating build\temp.win-amd64-3.8
    creating build\temp.win-amd64-3.8\Release
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\mageshkumar\appdata\local\programs\python\python38\include -Ic:\users\mageshkumar\appdata\local\programs\python\python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tc_jsonlib.c /Fobuild\temp.win-amd64-3.8\Release\_jsonlib.obj
    _jsonlib.c
    _jsonlib.c(99): warning C4996: 'PyUnicode_GetSize': deprecated in 3.3
    c:\users\mageshkumar\appdata\local\programs\python\python38\include\unicodeobject.h(177): note: see declaration of 'PyUnicode_GetSize'
    _jsonlib.c(450): warning C4996: 'PyLong_FromUnicode': deprecated in 3.3
    c:\users\mageshkumar\appdata\local\programs\python\python38\include\longobject.h(106): note: see declaration of 'PyLong_FromUnicode'
    _jsonlib.c(550): warning C4018: '<': signed/unsigned mismatch
    _jsonlib.c(643): warning C4020: 'PyFloat_FromString': too many actual parameters
    _jsonlib.c(655): warning C4996: 'PyLong_FromUnicode': deprecated in 3.3
    c:\users\mageshkumar\appdata\local\programs\python\python38\include\longobject.h(106): note: see declaration of 'PyLong_FromUnicode'
    _jsonlib.c(1186): warning C4013: 'PyString_CheckExact' undefined; assuming extern returning int
    _jsonlib.c(1188): warning C4013: 'PyString_Check' undefined; assuming extern returning int
    _jsonlib.c(1208): warning C4013: 'PyObject_Unicode' undefined; assuming extern returning int
    _jsonlib.c(1208): warning C4047: '=': 'PyObject *' differs in levels of indirection from 'int'
    _jsonlib.c(1406): warning C4013: 'PyInt_CheckExact' undefined; assuming extern returning int
    _jsonlib.c(1517): warning C4013: 'PyString_AS_STRING' undefined; assuming extern returning int
    _jsonlib.c(1517): warning C4047: 'function': 'const char *' differs in levels of indirection from 'int'
    _jsonlib.c(1517): warning C4024: 'ascii_constant': different types for formal and actual parameter 1
    _jsonlib.c(1539): warning C4013: 'PyInt_Check' undefined; assuming extern returning int
    _jsonlib.c(1931): warning C4047: '=': 'const char *' differs in levels of indirection from 'int'
    _jsonlib.c(1970): warning C4047: 'function': 'const char *' differs in levels of indirection from 'int'
    _jsonlib.c(1970): warning C4024: 'serializer_append_ascii': different types for formal and actual parameter 2
    _jsonlib.c(2089): warning C4996: 'PyUnicode_Encode': deprecated in 3.3
    c:\users\mageshkumar\appdata\local\programs\python\python38\include\cpython/unicodeobject.h(791): note: see declaration of 'PyUnicode_Encode'
    _jsonlib.c(2123): warning C4996: 'PyUnicode_Encode': deprecated in 3.3
    c:\users\mageshkumar\appdata\local\programs\python\python38\include\cpython/unicodeobject.h(791): note: see declaration of 'PyUnicode_Encode'
    _jsonlib.c(2161): warning C4013: 'Py_InitModule3' undefined; assuming extern returning int
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\users\mageshkumar\appdata\local\programs\python\python38\libs /LIBPATH:c:\users\mageshkumar\appdata\local\programs\python\python38\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" /EXPORT:PyInit__jsonlib build\temp.win-amd64-3.8\Release\_jsonlib.obj /OUT:build\lib.win-amd64-3.8\_jsonlib.cp38-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.8\Release\_jsonlib.cp38-win_amd64.lib
    LINK : error LNK2001: unresolved external symbol PyInit__jsonlib
    build\temp.win-amd64-3.8\Release\_jsonlib.cp38-win_amd64.lib : fatal error LNK1120: 1 unresolved externals
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\mageshkumar\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Mageshkumar\\AppData\\Local\\Temp\\pip-install-dz8cos59\\jsonlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Mageshkumar\\AppData\\Local\\Temp\\pip-install-dz8cos59\\jsonlib\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Mageshkumar\AppData\Local\Temp\pip-record-7a5omup8\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\mageshkumar\appdata\local\programs\python\python38\Include\jsonlib' Check the logs for full command output.

C:\WINDOWS\system32>
msg363798 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2020-03-10 03:07
The tracker is for issues related to CPython. It seems like this is a problem with jsonlib. I would suggest following up on their tracker or other forums.
msg363801 - (view) Author: Mageshkumar (magesh) Date: 2020-03-10 03:20
what i do now

*Thanks & Regards*

*M.Mageshkumar*

On Tue, Mar 10, 2020 at 8:37 AM Karthikeyan Singaravelan <
report@bugs.python.org> wrote:

>
> Karthikeyan Singaravelan <tir.karthi@gmail.com> added the comment:
>
> The tracker is for issues related to CPython. It seems like this is a
> problem with jsonlib. I would suggest following up on their tracker or
> other forums.
>
> ----------
> nosy: +xtreak
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue39921>
> _______________________________________
>
History
Date User Action Args
2022-04-11 14:59:27adminsetgithub: 84102
2020-03-10 06:58:56serhiy.storchakasetstatus: open -> closed
resolution: third party
stage: resolved
2020-03-10 06:58:32serhiy.storchakalinkissue39923 superseder
2020-03-10 03:20:14mageshsetmessages: + msg363801
2020-03-10 03:07:26xtreaksetnosy: + xtreak
messages: + msg363798
2020-03-10 02:53:52mageshcreate