foad-heidari / dj-booking

free and complete booking package for Django
Other
61 stars 28 forks source link

Issue with backports.zoneinfo on python3.10 #44

Open softlightMatt opened 7 months ago

softlightMatt commented 7 months ago

Hi,

I'm getting an error message when I try to install into the env on my VPS setup (see below).

I read that you don't need backports.zoneinfo from python3.9, which might be why it's not completing the install.

I also read that it's recommended to change the requirements.txt for backports to the below, to avoid this issue with later versions of Python: backports.zoneinfo==0.2.1;python_version<"3.9"

I'm by no means an expert, I just try to suggest a possible solution when I run into a problem!

Thanks very much

$:~/httpdocs/Hares$ pip install dj-booking Collecting dj-booking Downloading dj-booking-1.6.2.tar.gz (287 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 287.9/287.9 KB 8.4 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Requirement already satisfied: Django>=4. in /var/www/vhosts/priceless-pascal.194-164-28-128.plesk .page/httpdocs/venv/lib/python3.10/site-packages (from dj-booking) (5.0.4) Requirement already satisfied: asgiref>=3 in /var/www/vhosts/priceless-pascal.194-164-28-128.plesk .page/httpdocs/venv/lib/python3.10/site-packages (from dj-booking) (3.8.1) Collecting backports.zoneinfo>=0.2 Downloading backports.zoneinfo-0.2.1.tar.gz (74 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.1/74.1 KB 32.3 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting django-formtools>=2 Downloading django_formtools-2.5.1-py3-none-any.whl (170 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 170.7/170.7 KB 44.7 MB/s eta 0:00:00 Collecting pycodestyle>=2 Downloading pycodestyle-2.11.1-py2.py3-none-any.whl (31 kB) Requirement already satisfied: sqlparse>=0.4 in /var/www/vhosts/priceless-pascal.194-164-28-128.pl esk.page/httpdocs/venv/lib/python3.10/site-packages (from dj-booking) (0.5.0) Collecting toml>=0.10 Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB) Requirement already satisfied: typing-extensions>=4 in /var/www/vhosts/priceless-pascal.194-164-28 -128.plesk.page/httpdocs/venv/lib/python3.10/site-packages (from asgiref>=3->dj-booking) (4.11.0) Using legacy 'setup.py install' for dj-booking, since package 'wheel' is not installed. Building wheels for collected packages: backports.zoneinfo Building wheel for backports.zoneinfo (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for backports.zoneinfo (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [35 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-310 creating build/lib.linux-x86_64-cpython-310/backports copying src/backports/init.py -> build/lib.linux-x86_64-cpython-310/backports creating build/lib.linux-x86_64-cpython-310/backports/zoneinfo copying src/backports/zoneinfo/_version.py -> build/lib.linux-x86_64-cpython-310/backports/z oneinfo copying src/backports/zoneinfo/_common.py -> build/lib.linux-x86_64-cpython-310/backports/zo neinfo copying src/backports/zoneinfo/_tzpath.py -> build/lib.linux-x86_64-cpython-310/backports/zo neinfo copying src/backports/zoneinfo/init.py -> build/lib.linux-x86_64-cpython-310/backports/z oneinfo copying src/backports/zoneinfo/_zoneinfo.py -> build/lib.linux-x86_64-cpython-310/backports/ zoneinfo running egg_info writing src/backports.zoneinfo.egg-info/PKG-INFO writing dependency_links to src/backports.zoneinfo.egg-info/dependency_links.txt writing requirements to src/backports.zoneinfo.egg-info/requires.txt writing top-level names to src/backports.zoneinfo.egg-info/top_level.txt reading manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '.png' under directory 'docs' warning: no files found matching '.svg' under directory 'docs' no previously-included directories found matching 'docs/_build' no previously-included directories found matching 'docs/_output' adding license file 'LICENSE' adding license file 'licenses/LICENSE_APACHE' writing manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt' copying src/backports/zoneinfo/init.pyi -> build/lib.linux-x86_64-cpython-310/backports/ zoneinfo copying src/backports/zoneinfo/py.typed -> build/lib.linux-x86_64-cpython-310/backports/zone info running build_ext building 'backports.zoneinfo._czoneinfo' extension creating build/temp.linux-x86_64-cpython-310 creating build/temp.linux-x86_64-cpython-310/lib x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fst ack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/var/www/vhosts/price less-pascal.194-164-28-128.plesk.page/httpdocs/venv/include -I/usr/include/python3.10 -c lib/zonei nfo_module.c -o build/temp.linux-x86_64-cpython-310/lib/zoneinfo_module.o -std=c99 error: command 'x86_64-linux-gnu-gcc' failed: No such file or directory [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for backports.zoneinfo Failed to build backports.zoneinfo ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml- based projects