pyomeca / ezc3d

Easy to use C3D reader/writer for C++, Python and Matlab
https://pyomeca.github.io/Documentation/ezc3d/index.html
MIT License
145 stars 46 forks source link

Installing ezc3d on python 3.11 fails #345

Open Dominikk85 opened 1 month ago

Dominikk85 commented 1 month ago

When I'm doing pip install ezc3d in the command it will fail and give me the notion "could not find a version that satisfies the requirement ezc3d. do I need an older python version or is there a way?

pariterre commented 1 month ago

Hi there, pip install cannot work at the moment as you must compile ezc3d using CMake. That said, the #343 is ongoing for solving this long time problem. I won't be able to fix this for the next two weeks or so, but I'll do it ASAP.

In the meantime, you can install ezc3d using conda :)

Dominikk85 commented 1 month ago

thank you. so in the future it will be available with the pip installing? I guess I'm waiting then because I'm using jupyter on vs code and I don't want to change my environment. thanks for your help

pariterre commented 1 month ago

Hi there, yep, it should work pretty soon, but I'd say not in an horizon of less that 2 to 3 weeks as I have major ongoing project that I cannot delay. Hopefully this is acceptable for you!

Dominikk85 commented 3 weeks ago

Thank you no problem, I can wait another month before I start my project, I want to use it for a baseball biomechanics project that I'm doing for fun.

Dominik

pariterre commented 12 hours ago

Hi @Dominikk85

As stated in #343, as of today, ezc3d can be installed using pip :)

Dominikk85 commented 39 minutes ago

thank you for your contribution. unfortunately I tried again today and failed.

got this error message: C:\Users\dominik.keul> C:\Users\dominik.keul>pip install ezc3d Collecting ezc3d Using cached ezc3d-1.5.15.tar.gz (50 kB) 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 ╰─> [18 lines of output] Traceback (most recent call last): File "C:\Users\dominik.keul\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "C:\Users\dominik.keul\AppData\Local\Programs\Python\Python311\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\dominik.keul\AppData\Local\Programs\Python\Python311\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\dominik.keul\AppData\Local\Temp\pip-build-env-vxaf_snd\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\dominik.keul\AppData\Local\Temp\pip-build-env-vxaf_snd\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires self.run_setup() File "C:\Users\dominik.keul\AppData\Local\Temp\pip-build-env-vxaf_snd\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup exec(code, locals()) File "", line 14, in FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\dominik.keul\AppData\Local\Temp\pip-install-oh7i_85s\ezc3d_a07cc1e6762d4dc1af205781da3eafca/CMakeLists.txt' [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.

C:\Users\dominik.keul> C:\Users\dominik.keul>

any idea what that is?

regards, Dominik

bernikr commented 33 minutes ago

I have the same issue, it looks like the source distribution on pypi is incomplete

edit: just saw that the MANIFEST.in excludes the C sources and some other stuff. However, everything that is needed to run pip install . has to be included for the source distribution to work