self-operating-computer icon indicating copy to clipboard operation
self-operating-computer copied to clipboard

Build not working

Open humanely opened this issue 8 months ago • 0 comments

I am trying to build installer using the python native build just like install method.

The following command works but the generated binary is not working. I am on MacOS. Can you please suggest the best way to build Mac/Win/Linux installers using pyinstaller or some other such utils?

` self-operating-computer % python3 -m build

  • Creating isolated environment: venv+pip...
  • Installing packages in isolated environment:
    • setuptools >= 40.8.0
  • Getting build dependencies for sdist... running egg_info creating self_operating_computer.egg-info writing self_operating_computer.egg-info/PKG-INFO writing dependency_links to self_operating_computer.egg-info/dependency_links.txt writing entry points to self_operating_computer.egg-info/entry_points.txt writing requirements to self_operating_computer.egg-info/requires.txt writing top-level names to self_operating_computer.egg-info/top_level.txt writing manifest file 'self_operating_computer.egg-info/SOURCES.txt' reading manifest file 'self_operating_computer.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'self_operating_computer.egg-info/SOURCES.txt'
  • Building sdist... running sdist running egg_info writing self_operating_computer.egg-info/PKG-INFO writing dependency_links to self_operating_computer.egg-info/dependency_links.txt writing entry points to self_operating_computer.egg-info/entry_points.txt writing requirements to self_operating_computer.egg-info/requires.txt writing top-level names to self_operating_computer.egg-info/top_level.txt reading manifest file 'self_operating_computer.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'self_operating_computer.egg-info/SOURCES.txt' running check creating self_operating_computer-1.5.8 creating self_operating_computer-1.5.8/operate creating self_operating_computer-1.5.8/operate/models creating self_operating_computer-1.5.8/operate/models/weights creating self_operating_computer-1.5.8/operate/utils creating self_operating_computer-1.5.8/self_operating_computer.egg-info copying files to self_operating_computer-1.5.8... copying LICENSE -> self_operating_computer-1.5.8 copying README.md -> self_operating_computer-1.5.8 copying setup.py -> self_operating_computer-1.5.8 copying operate/init.py -> self_operating_computer-1.5.8/operate copying operate/config.py -> self_operating_computer-1.5.8/operate copying operate/exceptions.py -> self_operating_computer-1.5.8/operate copying operate/main.py -> self_operating_computer-1.5.8/operate copying operate/operate.py -> self_operating_computer-1.5.8/operate copying operate/models/init.py -> self_operating_computer-1.5.8/operate/models copying operate/models/apis.py -> self_operating_computer-1.5.8/operate/models copying operate/models/prompts.py -> self_operating_computer-1.5.8/operate/models copying operate/models/weights/init.py -> self_operating_computer-1.5.8/operate/models/weights copying operate/models/weights/best.pt -> self_operating_computer-1.5.8/operate/models/weights copying operate/utils/init.py -> self_operating_computer-1.5.8/operate/utils copying operate/utils/label.py -> self_operating_computer-1.5.8/operate/utils copying operate/utils/misc.py -> self_operating_computer-1.5.8/operate/utils copying operate/utils/ocr.py -> self_operating_computer-1.5.8/operate/utils copying operate/utils/operating_system.py -> self_operating_computer-1.5.8/operate/utils copying operate/utils/screenshot.py -> self_operating_computer-1.5.8/operate/utils copying operate/utils/style.py -> self_operating_computer-1.5.8/operate/utils copying self_operating_computer.egg-info/PKG-INFO -> self_operating_computer-1.5.8/self_operating_computer.egg-info copying self_operating_computer.egg-info/SOURCES.txt -> self_operating_computer-1.5.8/self_operating_computer.egg-info copying self_operating_computer.egg-info/dependency_links.txt -> self_operating_computer-1.5.8/self_operating_computer.egg-info copying self_operating_computer.egg-info/entry_points.txt -> self_operating_computer-1.5.8/self_operating_computer.egg-info copying self_operating_computer.egg-info/requires.txt -> self_operating_computer-1.5.8/self_operating_computer.egg-info copying self_operating_computer.egg-info/top_level.txt -> self_operating_computer-1.5.8/self_operating_computer.egg-info copying self_operating_computer.egg-info/SOURCES.txt -> self_operating_computer-1.5.8/self_operating_computer.egg-info Writing self_operating_computer-1.5.8/setup.cfg Creating tar archive removing 'self_operating_computer-1.5.8' (and everything under it)
  • Building wheel from sdist
  • Creating isolated environment: venv+pip...
  • Installing packages in isolated environment:
    • setuptools >= 40.8.0
  • Getting build dependencies for wheel... Traceback (most recent call last): File "/opt/homebrew/anaconda3/envs/py312/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in main() File "/opt/homebrew/anaconda3/envs/py312/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/anaconda3/envs/py312/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/g8/_h2mmcq51x75k6kgg42yprgc0000gn/T/build-env-gfl4i6pg/lib/python3.12/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/g8/_h2mmcq51x75k6kgg42yprgc0000gn/T/build-env-gfl4i6pg/lib/python3.12/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires self.run_setup() File "/private/var/folders/g8/_h2mmcq51x75k6kgg42yprgc0000gn/T/build-env-gfl4i6pg/lib/python3.12/site-packages/setuptools/build_meta.py", line 522, in run_setup super().run_setup(setup_script=setup_script) File "/private/var/folders/g8/_h2mmcq51x75k6kgg42yprgc0000gn/T/build-env-gfl4i6pg/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup exec(code, locals()) File "", line 4, in FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'

ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel`

humanely avatar Mar 27 '25 16:03 humanely