Skip to content

what is the requirement for using jsonobject on windows? #171

@heyhpython

Description

@heyhpython

it seems that we need c++ build and at least, is there any other reqiurement? becuase I pip install jsonobject failed for now. error message is below.

  ERROR: Complete output from command 'C:\Users\z\.conda\envs\offline\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\z\\AppData\\Local\\Temp\\pip-install-sycsbxpn\\jsonobject\\setup.py'"'"';f=get
attr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\z\AppData\Local\Temp\pip-wheel-zn73tq1o
' --python-tag cp36:
  ERROR: running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.6
  creating build\lib.win-amd64-3.6\jsonobject
  copying jsonobject\exceptions.py -> build\lib.win-amd64-3.6\jsonobject
  copying jsonobject\__init__.py -> build\lib.win-amd64-3.6\jsonobject
  running build_ext
  building 'jsonobject.api' extension
  creating build\temp.win-amd64-3.6
  creating build\temp.win-amd64-3.6\Release
  creating build\temp.win-amd64-3.6\Release\jsonobject
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -IC:\Users\z\.conda\envs\offline\include -IC:\Users\z\.conda\envs\offli
ne\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include" /Tcjsonobject/api.c /Fobuild\temp.win-amd64-3.6\Release\jsonobject/api.obj
  api.c
  C:\Users\z\.conda\envs\offline\include\pyconfig.h(59): fatal error C1083: can not open file: “io.h”: No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.21.27702\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for jsonobject

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions