Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error trying to run follow_human.py #6

Open
deanh8 opened this issue May 4, 2024 · 1 comment
Open

error trying to run follow_human.py #6

deanh8 opened this issue May 4, 2024 · 1 comment

Comments

@deanh8
Copy link

deanh8 commented May 4, 2024

I found im having issues with installing it on a VE so I was doing it the wrong way.. this is the issues Im having that started me down a path of doing it incorrectly.. This is where im stuck now any help would be apperciated

(venv) PS C:\Users\deanh> pip install bodyjim
Collecting bodyjim
Using cached bodyjim-1.0.1-py3-none-any.whl.metadata (5.4 kB)
Collecting teleoprtc>=1.0.1 (from bodyjim)
Using cached teleoprtc-1.0.1-py3-none-any.whl.metadata (2.1 kB)
Collecting aiortc>=1.6.0 (from bodyjim)
Using cached aiortc-1.8.0-cp38-abi3-win_amd64.whl.metadata (5.6 kB)
Collecting aiohttp>=3.7.0 (from bodyjim)
Using cached aiohttp-3.9.5-cp312-cp312-win_amd64.whl.metadata (7.7 kB)
Collecting gymnasium>=0.29.0 (from bodyjim)
Using cached gymnasium-0.29.1-py3-none-any.whl.metadata (10 kB)
Requirement already satisfied: numpy>=1.19.0 in c:\users\deanh\venv\lib\site-packages (from bodyjim) (1.26.4)
Requirement already satisfied: pygame in c:\users\deanh\venv\lib\site-packages (from bodyjim) (2.5.2)
Collecting aiosignal>=1.1.2 (from aiohttp>=3.7.0->bodyjim)
Using cached aiosignal-1.3.1-py3-none-any.whl.metadata (4.0 kB)
Collecting attrs>=17.3.0 (from aiohttp>=3.7.0->bodyjim)
Using cached attrs-23.2.0-py3-none-any.whl.metadata (9.5 kB)
Collecting frozenlist>=1.1.1 (from aiohttp>=3.7.0->bodyjim)
Using cached frozenlist-1.4.1-cp312-cp312-win_amd64.whl.metadata (12 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp>=3.7.0->bodyjim)
Using cached multidict-6.0.5-cp312-cp312-win_amd64.whl.metadata (4.3 kB)
Collecting yarl<2.0,>=1.0 (from aiohttp>=3.7.0->bodyjim)
Using cached yarl-1.9.4-cp312-cp312-win_amd64.whl.metadata (32 kB)
Collecting aioice<1.0.0,>=0.9.0 (from aiortc>=1.6.0->bodyjim)
Using cached aioice-0.9.0-py3-none-any.whl.metadata (3.8 kB)
Collecting av<12.0.0,>=9.0.0 (from aiortc>=1.6.0->bodyjim)
Using cached av-11.0.0-cp312-cp312-win_amd64.whl.metadata (4.7 kB)
Collecting cffi>=1.0.0 (from aiortc>=1.6.0->bodyjim)
Using cached cffi-1.16.0-cp312-cp312-win_amd64.whl.metadata (1.5 kB)
Collecting cryptography>=42.0.0 (from aiortc>=1.6.0->bodyjim)
Using cached cryptography-42.0.7-cp39-abi3-win_amd64.whl.metadata (5.4 kB)
Collecting google-crc32c>=1.1 (from aiortc>=1.6.0->bodyjim)
Using cached google_crc32c-1.5.0-py3-none-any.whl
Collecting pyee>=9.0.0 (from aiortc>=1.6.0->bodyjim)
Using cached pyee-11.1.0-py3-none-any.whl.metadata (2.8 kB)
Collecting pylibsrtp>=0.10.0 (from aiortc>=1.6.0->bodyjim)
Using cached pylibsrtp-0.10.0-cp38-abi3-win_amd64.whl.metadata (3.9 kB)
Collecting pyopenssl>=24.0.0 (from aiortc>=1.6.0->bodyjim)
Using cached pyOpenSSL-24.1.0-py3-none-any.whl.metadata (12 kB)
Requirement already satisfied: cloudpickle>=1.2.0 in c:\users\deanh\venv\lib\site-packages (from gymnasium>=0.29.0->bodyjim) (3.0.0)
Collecting typing-extensions>=4.3.0 (from gymnasium>=0.29.0->bodyjim)
Using cached typing_extensions-4.11.0-py3-none-any.whl.metadata (3.0 kB)
Collecting farama-notifications>=0.0.1 (from gymnasium>=0.29.0->bodyjim)
Using cached Farama_Notifications-0.0.4-py3-none-any.whl.metadata (558 bytes)
Collecting av<12.0.0,>=9.0.0 (from aiortc>=1.6.0->bodyjim)
Using cached av-10.0.0.tar.gz (2.4 MB)
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
╰─> [74 lines of output]
Compiling av\buffer.pyx because it changed.
[1/1] Cythonizing av\buffer.pyx
Compiling av\bytesource.pyx because it changed.
[1/1] Cythonizing av\bytesource.pyx
Compiling av\descriptor.pyx because it changed.
[1/1] Cythonizing av\descriptor.pyx
Compiling av\dictionary.pyx because it changed.
[1/1] Cythonizing av\dictionary.pyx
Compiling av\enum.pyx because it changed.
[1/1] Cythonizing av\enum.pyx
Compiling av\error.pyx because it changed.
[1/1] Cythonizing av\error.pyx
Compiling av\format.pyx because it changed.
[1/1] Cythonizing av\format.pyx
Compiling av\frame.pyx because it changed.
[1/1] Cythonizing av\frame.pyx
performance hint: av\logging.pyx:232:5: Exception check on 'log_callback' will always require the GIL to be acquired.
Possible solutions:
1. Declare 'log_callback' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
2. Use an 'int' return type on 'log_callback' to allow an error code to be returned.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  cdef const char *log_context_name(void *ptr) nogil:
      cdef log_context *obj = <log_context*>ptr
      return obj.name

  cdef lib.AVClass log_class
  log_class.item_name = log_context_name
                        ^
  ------------------------------------------------------------

  av\logging.pyx:216:22: Cannot assign type 'const char *(void *) except? NULL nogil' to 'const char *(*)(void *) noexcept nogil'. Exception values are incompatible. Suggest adding 'noexcept' to the type of 'log_context_name'.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...

  # Start the magic!
  # We allow the user to fully disable the logging system as it will not play
  # nicely with subinterpreters due to FFmpeg-created threads.
  if os.environ.get('PYAV_LOGGING') != 'off':
      lib.av_log_set_callback(log_callback)
                              ^
  ------------------------------------------------------------

  av\logging.pyx:351:28: Cannot assign type 'void (void *, int, const char *, va_list) except * nogil' to 'av_log_callback' (alias of 'void (*)(void *, int, const char *, va_list) noexcept nogil'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'log_callback'.
  Compiling av\logging.pyx because it changed.
  [1/1] Cythonizing av\logging.pyx
  Traceback (most recent call last):
    File "C:\Users\deanh\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
      main()
    File "C:\Users\deanh\venv\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\deanh\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
      return hook(config_settings)
             ^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\deanh\AppData\Local\Temp\pip-build-env-pqygzmli\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\deanh\AppData\Local\Temp\pip-build-env-pqygzmli\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
      self.run_setup()
    File "C:\Users\deanh\AppData\Local\Temp\pip-build-env-pqygzmli\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
      super().run_setup(setup_script=setup_script)
    File "C:\Users\deanh\AppData\Local\Temp\pip-build-env-pqygzmli\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
      exec(code, locals())
    File "<string>", line 157, in <module>
    File "C:\Users\deanh\AppData\Local\Temp\pip-build-env-pqygzmli\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1154, in cythonize
      cythonize_one(*args)
    File "C:\Users\deanh\AppData\Local\Temp\pip-build-env-pqygzmli\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1321, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: av\logging.pyx
  [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.
(venv) PS C:\Users\deanh>

@fredyshox
Copy link
Collaborator

fredyshox commented Jun 4, 2024

It's unclear whether this package works on Windows, and I don't have any Windows machine to test it. I recommend using WSL for now. Also which python version are you using? There are some problems with 3.12 in the current version of the package, downgrading to 3.11 or lower might also help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants