LuisMayo / objection_engine

Library that turns comment chains into ace attorney scenes, used in several bots
MIT License
107 stars 20 forks source link

Not compatible with Python 3.11 #108

Open Meorge opened 1 year ago

Meorge commented 1 year ago

I'm trying to install Objection into another project, and getting the following output:

>>> python -m pip install git+https://github.com/LuisMayo/objection_engine.git
Collecting git+https://github.com/LuisMayo/objection_engine.git
  Cloning https://github.com/LuisMayo/objection_engine.git to /private/var/folders/ms/x80nt_4n31j5pmb4qtr7m9c40000gn/T/pip-req-build-fnsjnbrp
  Running command git clone --filter=blob:none -q https://github.com/LuisMayo/objection_engine.git /private/var/folders/ms/x80nt_4n31j5pmb4qtr7m9c40000gn/T/pip-req-build-fnsjnbrp
  Resolved https://github.com/LuisMayo/objection_engine.git to commit d062290141f39d1a6a2f4c78e963372315586e75
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting rich<13.0.0,>=12.6.0
  Using cached rich-12.6.0-py3-none-any.whl (237 kB)
Collecting fonttools<5.0.0,>=4.33.3
  Using cached fonttools-4.39.4-py3-none-any.whl (1.0 MB)
Collecting pydub<0.26.0,>=0.25.1
  Using cached pydub-0.25.1-py2.py3-none-any.whl (32 kB)
Requirement already satisfied: requests<3.0.0,>=2.28.1 in ./venv/lib/python3.11/site-packages (from objection-engine==3.3.0) (2.31.0)
Collecting google-cloud-translate<3.0.0,>=2.0.1
  Using cached google_cloud_translate-2.0.4-py2.py3-none-any.whl (92 kB)
Collecting sentencepiece<0.2.0,>=0.1.97
  Using cached sentencepiece-0.1.99-cp311-cp311-macosx_10_9_x86_64.whl (1.2 MB)
Collecting moviepy<2.0.0,>=1.0.3
  Using cached moviepy-1.0.3-py3-none-any.whl
Collecting spacy<4.0.0,>=3.1.4
  Using cached spacy-3.5.3-cp311-cp311-macosx_10_9_x86_64.whl (6.8 MB)
Requirement already satisfied: transformers<5.0.0,>=4.25.1 in ./venv/lib/python3.11/site-packages (from objection-engine==3.3.0) (4.30.1)
Collecting Pillow<10.0.0,>=9.1.0
  Using cached Pillow-9.5.0-cp311-cp311-macosx_10_10_x86_64.whl (3.4 MB)
Collecting ffmpeg-python<0.3.0,>=0.2.0
  Using cached ffmpeg_python-0.2.0-py3-none-any.whl (25 kB)
Requirement already satisfied: numpy<2.0.0,>=1.19.3 in ./venv/lib/python3.11/site-packages (from objection-engine==3.3.0) (1.24.3)
Collecting pycld2<0.42,>=0.41
  Using cached pycld2-0.41-cp311-cp311-macosx_10_9_universal2.whl
Collecting textblob<0.18.0,>=0.17.1
  Using cached textblob-0.17.1-py2.py3-none-any.whl (636 kB)
Collecting pyicu<3.0.0,>=2.10.2
  Using cached PyICU-2.11-cp311-cp311-macosx_10_9_universal2.whl
ERROR: Could not find a version that satisfies the requirement torch<2.0.0,>=1.13.1 (from objection-engine) (from versions: 2.0.0, 2.0.1)
ERROR: No matching distribution found for torch<2.0.0,>=1.13.1

As far as I can tell, Objection itself only requires torch to be greater than version 1.13.1. I have no idea where the torch<2.0.0 requirement is coming from; I even went through all of the dependencies in the pyproject.toml file and searched their dependencies to see if I could find it, but had no luck. Maybe this is just something I'm spacing on?

Meorge commented 1 year ago

Someone was able to point out the problem to me: the torch requirement in pyproject.toml means that it can't go past a major version number (aka 2.0.0). I was trying to install Objection on Python 3.11, which seemed to cause some problems overall - in the coming days I might look into making it compatible with more recent versions of Python.

rullinoiz commented 1 year ago

its also not compatible with 3.9 despite the readme saying 3.8 and above have worked

`INFO: pip is looking at multiple versions of objection-engine to determine which version is compatible with other requirements. This could take a while.

ERROR: Package 'objection-engine' requires a different Python: 3.9.6 not in '<3.11,>=3.10'`