christoph2 / christoph2/objutils

installation issue

Open
#27 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
34
Forks
14
Avg merge
3h 42m
Merged PRs (30d)
3

Description

I made pip install objutils, but it exits with following error

Collecting objutils
  Using cached objutils-0.8.9.tar.gz (419 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting construct<3.0.0,>=2.10.70 (from objutils)
  Using cached construct-2.10.70-py3-none-any.whl.metadata (4.2 kB)
Collecting mako<2.0.0,>=1.3.3 (from objutils)
  Using cached mako-1.3.10-py3-none-any.whl.metadata (2.9 kB)
Collecting numpy<=2.2.5 (from objutils)
  Using cached numpy-2.2.5-cp313-cp313-win_amd64.whl.metadata (60 kB)
Collecting rich<15.0,>=14.2 (from objutils)
  Using cached rich-14.3.2-py3-none-any.whl.metadata (18 kB)
Collecting sqlalchemy<3.0.0,>=2.0.29 (from objutils)
  Using cached sqlalchemy-2.0.46-cp313-cp313-win_amd64.whl.metadata (9.8 kB)
Collecting MarkupSafe>=0.9.2 (from mako<2.0.0,>=1.3.3->objutils)
  Using cached markupsafe-3.0.3-cp313-cp313-win_amd64.whl.metadata (2.8 kB)
Collecting markdown-it-py>=2.2.0 (from rich<15.0,>=14.2->objutils)
  Using cached markdown_it_py-4.0.0-py3-none-any.whl.metadata (7.3 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich<15.0,>=14.2->objutils)
  Using cached pygments-2.19.2-py3-none-any.whl.metadata (2.5 kB)
Collecting greenlet>=1 (from sqlalchemy<3.0.0,>=2.0.29->objutils)
  Using cached greenlet-3.3.1-cp313-cp313-win_amd64.whl.metadata (3.8 kB)
Collecting typing-extensions>=4.6.0 (from sqlalchemy<3.0.0,>=2.0.29->objutils)
  Using cached typing_extensions-4.15.0-py3-none-any.whl.metadata (3.3 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich<15.0,>=14.2->objutils)
  Using cached mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
Using cached construct-2.10.70-py3-none-any.whl (63 kB)
Using cached mako-1.3.10-py3-none-any.whl (78 kB)
Using cached numpy-2.2.5-cp313-cp313-win_amd64.whl (12.6 MB)
Using cached rich-14.3.2-py3-none-any.whl (309 kB)
Using cached sqlalchemy-2.0.46-cp313-cp313-win_amd64.whl (2.1 MB)
Using cached greenlet-3.3.1-cp313-cp313-win_amd64.whl (227 kB)
Using cached markdown_it_py-4.0.0-py3-none-any.whl (87 kB)
Using cached markupsafe-3.0.3-cp313-cp313-win_amd64.whl (15 kB)
Using cached pygments-2.19.2-py3-none-any.whl (1.2 MB)
Using cached typing_extensions-4.15.0-py3-none-any.whl (44 kB)
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Building wheels for collected packages: objutils
  Building wheel for objutils (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for objutils (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [54 lines of output]
      CMake Error: The source directory "C:/Users/tec8/AppData/Local/Temp/pip-install-6lvdqq9l/objutils_f9e6b45b62b04d6987ed1368519d0043" does not appear to contain CMakeLists.txt.
      Specify --help for usage, or press the help button on the CMake GUI.
      Platform Windows
      ================================================================================
                                     Step #1: Configure
      ================================================================================
      Traceback (most recent call last):
        File "C:\Users\tec8\AppData\Local\Temp\pip-install-6lvdqq9l\objutils_f9e6b45b62b04d6987ed1368519d0043\build_ext.py", line 151, in <module>
          build_extension(use_temp_dir=False)
          ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\tec8\AppData\Local\Temp\pip-install-6lvdqq9l\objutils_f9e6b45b62b04d6987ed1368519d0043\build_ext.py", line 135, in build_extension
          subprocess.run(["cmake", "-S", str(TOP_DIR), *cmake_args], cwd=build_temp, check=True)  # nosec
          ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\tec8\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 579, in run
          raise CalledProcessError(retcode, process.args,
                                   output=stdout, stderr=stderr)
      subprocess.CalledProcessError: Command '['cmake', '-S', 'C:\\Users\\tec8\\AppData\\Local\\Temp\\pip-install-6lvdqq9l\\objutils_f9e6b45b62b04d6987ed1368519d0043', '-DPython3_EXECUTABLE=C:\\Users\\tec8\\AppData\\Local\\Programs\\Python\\Python313\\python.exe', '-DPython3_INCLUDE_DIR=C:\\Users\\tec8\\AppData\\Local\\Programs\\Python\\Python313\\Include', '-DCMAKE_BUILD_TYPE=Release', '-DPython3_LIBRARY=C:\\Users\\tec8\\AppData\\Local\\Programs\\Python\\Python313\\libs\\python313.lib']' returned non-zero exit status 1.
      Traceback (most recent call last):
        File "C:\Users\tec8\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
          ~~~~^^
        File "C:\Users\tec8\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\tec8\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                              metadata_directory)
                                              ^^^^^^^^^^^^^^^^^^^
        File "C:\Users\tec8\AppData\Local\Temp\pip-build-env-6eru7shh\overlay\Lib\site-packages\poetry\core\masonry\api.py", line 58, in build_wheel
          return WheelBuilder.make_in(
                 ~~~~~~~~~~~~~~~~~~~~^
              poetry,
              ^^^^^^^
          ...<2 lines>...
              config_settings=config_settings,
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          )
          ^
        File "C:\Users\tec8\AppData\Local\Temp\pip-build-env-6eru7shh\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 95, in make_in
          wb.build(target_dir=directory)
          ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\tec8\AppData\Local\Temp\pip-build-env-6eru7shh\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 134, in build
          self._build(zip_file)
          ~~~~~~~~~~~^^^^^^^^^^
        File "C:\Users\tec8\AppData\Local\Temp\pip-build-env-6eru7shh\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 183, in _build
          self._run_build_script(self._package.build_script)
          ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\tec8\AppData\Local\Temp\pip-build-env-6eru7shh\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 304, in _run_build_script
          subprocess.check_call([self.executable.as_posix(), build_script])
          ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\tec8\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 421, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['C:/Users/tec8/AppData/Local/Programs/Python/Python313/python.exe', 'build_ext.py']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for objutils
Failed to build objutils

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Python 3.13 Windows install with pip and inspect the package's build_ext.py and pyproject.toml. Check why the CMake invocation targets a source tree without CMakeLists.txt; done means the package builds and installs successfully through pip on the reported environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.