ekmungai / python-accounting

Python Double Entry Accounting with a focus on IFRS Compliant Reporting
MIT License
67 stars 12 forks source link

The installation failed on Python 3.10 and 3.11 using pip. #2

Closed crissvilleda closed 6 months ago

crissvilleda commented 6 months ago

The library can not be installed on Python 3.10 or 3.11 version

I got this error

Collecting python-accounting
  Using cached python_accounting-1.0.0-py3-none-any.whl.metadata (13 kB)
Collecting flake8<8.0.0,>=7.0.0 (from python-accounting)
  Using cached flake8-7.0.0-py2.py3-none-any.whl.metadata (3.8 kB)
Collecting mysqlclient<3.0.0,>=2.2.4 (from python-accounting)
  Using cached mysqlclient-2.2.4.tar.gz (90 kB)
  Installing build dependencies ...   Getting requirements to build wheel ...   Installing backend dependencies ...   Preparing metadata (pyproject.toml) ... Collecting psycopg2<3.0.0,>=2.9.9 (from python-accounting)
  Using cached psycopg2-2.9.9.tar.gz (384 kB)
  Preparing metadata (setup.py) ... Requirement already satisfied: python-dateutil<3.0.0,>=2.8.2 in /home/criss/.virtualenvs/general3.11/lib/python3.11/site-packages (from python-accounting) (2.8.2)
Collecting sqlalchemy<3.0.0,>=2.0.23 (from python-accounting)
  Using cached SQLAlchemy-2.0.28-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.6 kB)
Collecting strenum<0.5.0,>=0.4.15 (from python-accounting)
  Using cached StrEnum-0.4.15-py3-none-any.whl.metadata (5.3 kB)
Collecting toml<0.11.0,>=0.10.2 (from python-accounting)
  Using cached toml-0.10.2-py2.py3-none-any.whl.metadata (7.1 kB)
INFO: pip is looking at multiple versions of python-accounting to determine which version is compatible with other requirements. This could take a while.
ERROR: Package 'python-accounting' requires a different Python: 3.11.0 not in '<4.0,>=3.12'
Note: you may need to restart the kernel to use updated packages.
ekmungai commented 6 months ago

Hi @crissvilleda ,

I changed how the supported python versions are specified by the project, pip installations should be working again now.

Cheers, Edward

crissvilleda commented 6 months ago

Thanks