jam3scampbell / ProctorAI

The AI to keep you focused 😈
329 stars 36 forks source link

Getting requirements to build wheel did not run successfully. #14

Open romkw opened 2 months ago

romkw commented 2 months ago

Got an error after installing requirements:

Collecting pyobjc-core==10.2 (from -r requirements.txt (line 74))
  Downloading pyobjc-core-10.2.tar.gz (929 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 929.8/929.8 kB 684.2 kB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]
      <string>:17: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
      <string>:216: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
      !!

              ********************************************************************************
              Please remove any references to `setuptools.command.test` in all supported versions of the affected package.

              By 2024-Nov-15, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
              ********************************************************************************

      !!
      <string>:218: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
      !!

              ********************************************************************************
              Please remove any references to `setuptools.command.test` in all supported versions of the affected package.

              By 2024-Nov-15, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
              ********************************************************************************

      !!
      running egg_info
      error: PyObjC requires macOS to build
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip is available: 24.0 -> 24.2
[notice] To update, run: pip install --upgrade pip

Script running error:

(focusenv) roman@laptop ~/t/ProctorAI (main) [0|1]> ls
assets/  README.md  requirements.txt  run.sh*  src/
(focusenv) roman@laptop ~/t/ProctorAI (main)> ./run.sh 
Traceback (most recent call last):
  File "/home/roman/temp/ProctorAI/src/user_interface.py", line 2, in <module>
    from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QLabel, QTextEdit, QPushButton, QHBoxLayout, QLineEdit
ModuleNotFoundError: No module named 'PyQt5'
StepanIP commented 2 months ago

same issue:

image

gregfitzgerald commented 1 month ago

The issue is that you are trying to install the Mac OS files on your Windows system. This isn't your fault, considering that the fork for Windows doesn't have its own unique "clone repo" option. Here's what you want to do: -go to: https://github.com/jam3scampbell/ProctorAI/tree/windows -click on the green Code button, then instead of cloning the repo click "Download Zip" -unzip the repo and add it to whatever folder you want (probably C:\user) -now you can follow the instructions found in the fork's README. Except you should IGNORE the first line of code that reads "git clone https://github.com/jam3scampbell/ProctorAI". This will clone the Mac OS version again, which you don't want. -Now you should be good. Just know that you need to download ffmpeg and add it as a PATH variable. -Also, I never figured out where it wants you to type your API keys, so you should set them as an environment variable using the command: $env:ANTHROPIC_API_KEY = "..."