How to install jsonnet-binary on Windows #2011
-
Describe the bugI tried to install Anomalib on my Windows system, but I encountered the following error during the installation process. Building wheel for jsonnet-binary (setup.py) ... error × python setup.py bdist_wheel did not run successfully. DatasetN/A ModelN/A Steps to reproduce the behaviorN/A OS informationOS information:
Expected behaviorN/A ScreenshotsNo response Pip/GitHubGitHub What version/branch did you use?No response Configuration YAMLname: anomalib_env
channels:
- defaults
dependencies:
- bzip2=1.0.8
- ca-certificates=2024.3.11
- libffi=3.4.4
- openssl=3.0.13
- pip=23.3.1
- python=3.10.14
- setuptools=68.2.2
- sqlite=3.41.2
- tk=8.6.12
- tzdata=2024a
- vc=14.2
- vs2015_runtime=14.27.29016
- wheel=0.41.2
- xz=5.4.6
- zlib=1.2.13 Logs(anomalib_env) PS C:\> git clone https://github.com/openvinotoolkit/anomalib.git
Cloning into 'anomalib'...
remote: Enumerating objects: 9649, done.
remote: Counting objects: 100% (2599/2599), done.
remote: Compressing objects: 100% (1110/1110), done.
remote: Total 9649 (delta 1955), reused 1610 (delta 1463), pack-reused 7050Receiving objects: 100% (9649/9649), 49.82 MiB | 17.58 MiB/s
Receiving objects: 100% (9649/9649), 57.93 MiB | 17.93 MiB/s, done.
Resolving deltas: 100% (5801/5801), done.
(anomalib_env) PS C:\> cd anomalib
(anomalib_env) PS C:\anomalib> pip install -e .
Obtaining file:///C:/anomalib
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done
Collecting omegaconf>=2.1.1 (from anomalib==1.1.0.dev0)
Downloading omegaconf-2.3.0-py3-none-any.whl.metadata (3.9 kB)
Collecting rich>=13.5.2 (from anomalib==1.1.0.dev0)
Downloading rich-13.7.1-py3-none-any.whl.metadata (18 kB)
Collecting jsonargparse>=4.27.7 (from jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading jsonargparse-4.28.0-py3-none-any.whl.metadata (12 kB)
Collecting docstring-parser (from anomalib==1.1.0.dev0)
Downloading docstring_parser-0.16-py3-none-any.whl.metadata (3.0 kB)
Collecting rich-argparse (from anomalib==1.1.0.dev0)
Downloading rich_argparse-1.4.0-py3-none-any.whl.metadata (14 kB)
Collecting PyYAML>=3.13 (from jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading PyYAML-6.0.1-cp310-cp310-win_amd64.whl.metadata (2.1 kB)
Collecting antlr4-python3-runtime==4.9.* (from omegaconf>=2.1.1->anomalib==1.1.0.dev0)
Using cached antlr4_python3_runtime-4.9.3-py3-none-any.whl
Collecting markdown-it-py>=2.2.0 (from rich>=13.5.2->anomalib==1.1.0.dev0)
Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich>=13.5.2->anomalib==1.1.0.dev0)
Using cached pygments-2.17.2-py3-none-any.whl.metadata (2.6 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=13.5.2->anomalib==1.1.0.dev0)
Downloading mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
Collecting argcomplete>=3.3.0 (from jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading argcomplete-3.3.0-py3-none-any.whl.metadata (16 kB)
Collecting fsspec>=0.8.4 (from jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading fsspec-2024.3.1-py3-none-any.whl.metadata (6.8 kB)
Collecting jsonnet-binary>=0.17.0 (from jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading jsonnet-binary-0.17.0.tar.gz (294 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 294.2/294.2 kB 18.9 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting jsonschema>=3.2.0 (from jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Using cached jsonschema-4.21.1-py3-none-any.whl.metadata (7.8 kB)
Collecting reconplogger>=4.4.0 (from jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading reconplogger-4.16.0-py3-none-any.whl.metadata (20 kB)
Collecting ruyaml>=0.20.0 (from jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading ruyaml-0.91.0-py3-none-any.whl.metadata (12 kB)
Collecting typeshed-client>=2.1.0 (from jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading typeshed_client-2.5.1-py3-none-any.whl.metadata (7.5 kB)
Collecting requests>=2.18.4 (from jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Collecting attrs>=22.2.0 (from jsonschema>=3.2.0->jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Using cached attrs-23.2.0-py3-none-any.whl.metadata (9.5 kB)
Collecting jsonschema-specifications>=2023.03.6 (from jsonschema>=3.2.0->jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Using cached jsonschema_specifications-2023.12.1-py3-none-any.whl.metadata (3.0 kB)
Collecting referencing>=0.28.4 (from jsonschema>=3.2.0->jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading referencing-0.34.0-py3-none-any.whl.metadata (2.8 kB)
Collecting rpds-py>=0.7.1 (from jsonschema>=3.2.0->jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading rpds_py-0.18.0-cp310-none-win_amd64.whl.metadata (4.2 kB)
Collecting logmatic-python>=0.1.7 (from reconplogger>=4.4.0->jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading logmatic-python-0.1.7.tar.gz (3.3 kB)
Preparing metadata (setup.py) ... done
Collecting charset-normalizer<4,>=2 (from requests>=2.18.4->jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading charset_normalizer-3.3.2-cp310-cp310-win_amd64.whl.metadata (34 kB)
Collecting idna<4,>=2.5 (from requests>=2.18.4->jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading idna-3.7-py3-none-any.whl.metadata (9.9 kB)
Collecting urllib3<3,>=1.21.1 (from requests>=2.18.4->jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Using cached urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB)
Collecting certifi>=2017.4.17 (from requests>=2.18.4->jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Using cached certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB)
Collecting distro>=1.3.0 (from ruyaml>=0.20.0->jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading distro-1.9.0-py3-none-any.whl.metadata (6.8 kB)
Requirement already satisfied: setuptools>=39.0 in c:\users\mohammed ali\.conda\envs\anomalib_env\lib\site-packages (from ruyaml>=0.20.0->jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0) (68.2.2)
Collecting importlib-resources>=1.4.0 (from typeshed-client>=2.1.0->jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading importlib_resources-6.4.0-py3-none-any.whl.metadata (3.9 kB)
Collecting typing-extensions>=4.5.0 (from typeshed-client>=2.1.0->jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading typing_extensions-4.11.0-py3-none-any.whl.metadata (3.0 kB)
Collecting python-json-logger (from logmatic-python>=0.1.7->reconplogger>=4.4.0->jsonargparse>=4.27.7->jsonargparse[all]>=4.27.7->anomalib==1.1.0.dev0)
Downloading python_json_logger-2.0.7-py3-none-any.whl.metadata (6.5 kB)
Downloading jsonargparse-4.28.0-py3-none-any.whl (195 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 195.3/195.3 kB ? eta 0:00:00
Using cached omegaconf-2.3.0-py3-none-any.whl (79 kB)
Downloading rich-13.7.1-py3-none-any.whl (240 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 240.7/240.7 kB 15.4 MB/s eta 0:00:00
Downloading docstring_parser-0.16-py3-none-any.whl (36 kB)
Downloading rich_argparse-1.4.0-py3-none-any.whl (19 kB)
Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Using cached pygments-2.17.2-py3-none-any.whl (1.2 MB)
Downloading PyYAML-6.0.1-cp310-cp310-win_amd64.whl (145 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 145.3/145.3 kB ? eta 0:00:00
Downloading argcomplete-3.3.0-py3-none-any.whl (42 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.6/42.6 kB ? eta 0:00:00
Downloading fsspec-2024.3.1-py3-none-any.whl (171 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 172.0/172.0 kB ? eta 0:00:00
Using cached jsonschema-4.21.1-py3-none-any.whl (85 kB)
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Downloading reconplogger-4.16.0-py3-none-any.whl (16 kB)
Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Downloading ruyaml-0.91.0-py3-none-any.whl (108 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 108.9/108.9 kB 6.2 MB/s eta 0:00:00
Downloading typeshed_client-2.5.1-py3-none-any.whl (606 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 606.1/606.1 kB 37.2 MB/s eta 0:00:00
Using cached attrs-23.2.0-py3-none-any.whl (60 kB)
Using cached certifi-2024.2.2-py3-none-any.whl (163 kB)
Downloading charset_normalizer-3.3.2-cp310-cp310-win_amd64.whl (100 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.3/100.3 kB ? eta 0:00:00
Downloading distro-1.9.0-py3-none-any.whl (20 kB)
Downloading idna-3.7-py3-none-any.whl (66 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.8/66.8 kB ? eta 0:00:00
Downloading importlib_resources-6.4.0-py3-none-any.whl (38 kB)
Using cached jsonschema_specifications-2023.12.1-py3-none-any.whl (18 kB)
Downloading referencing-0.34.0-py3-none-any.whl (26 kB)
Downloading rpds_py-0.18.0-cp310-none-win_amd64.whl (206 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 206.7/206.7 kB ? eta 0:00:00
Downloading typing_extensions-4.11.0-py3-none-any.whl (34 kB)
Using cached urllib3-2.2.1-py3-none-any.whl (121 kB)
Using cached python_json_logger-2.0.7-py3-none-any.whl (8.1 kB)
Building wheels for collected packages: anomalib, jsonnet-binary, logmatic-python
Building editable for anomalib (pyproject.toml) ... done
Created wheel for anomalib: filename=anomalib-1.1.0.dev0-0.editable-py3-none-any.whl size=13924 sha256=e486dc49766295a93fab950207103b804057488adf09122957716266f1e2ce4d
Stored in directory: C:\Users\Mohammed Ali\AppData\Local\Temp\pip-ephem-wheel-cache-c8c3h70w\wheels\60\b4\36\8a241674e9c01fa15348fc0262410f6e5902b5aa9ea7be0f97
Building wheel for jsonnet-binary (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running bdist_wheel
running build
running build_clib
building 'jsonnet' library
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for jsonnet-binary
Running setup.py clean for jsonnet-binary
Building wheel for logmatic-python (setup.py) ... done
Created wheel for logmatic-python: filename=logmatic_python-0.1.7-py3-none-any.whl size=3739 sha256=9cc4b5bef24f75327038c0e799a94492840a0b56ff428825c947dc468a540d2a
Stored in directory: c:\users\mohammed ali\appdata\local\pip\cache\wheels\1e\85\bf\498ac430bd883bffbbac3eb44e62c49faa0a1dfb87c6452c63
Successfully built anomalib logmatic-python
Failed to build jsonnet-binary
ERROR: Could not build wheels for jsonnet-binary, which is required to install pyproject.toml-based projects Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
I'm also experiencing this error. |
Beta Was this translation helpful? Give feedback.
-
@min731, you are also on Windows, right? |
Beta Was this translation helpful? Give feedback.
-
@samet-akcay That's right, but I just solved it. When I install Microsoft C++ Build Tools, it even installs jsonnet-binary. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Ah nice! Thanks for sharing! |
Beta Was this translation helpful? Give feedback.
-
@MohammedEltoum, can you try the same as well? |
Beta Was this translation helpful? Give feedback.
@samet-akcay That's right, but I just solved it. When I install Microsoft C++ Build Tools, it even installs jsonnet-binary. Thank you.