openwisp / openwisp-firmware-upgrader

Firmware upgrade solution for OpenWRT with possibility to add support for other embedded OSes. Provides features like automatic retry for network failures, mass upgrades, REST API and more.
https://openwisp.io/docs/dev/firmware-upgrader/
Other
53 stars 60 forks source link

installing wrong version of django on setup #227

Closed Rishabhg71 closed 7 months ago

Rishabhg71 commented 1 year ago

I am new to this repo so while trying to setup my dev env i have run into this error

on python setup.py develop it should install all the dependencies required with correct version but this seems to be not working as excepted this script keep installing Django 4.2b1 but django<4.1.0,>=3.0.0 is required

here is the full log

:~/Desktop/project/openwisp-firmware-upgrader$ python setup.py develop
running develop
running egg_info
writing openwisp_firmware_upgrader.egg-info/PKG-INFO
writing dependency_links to openwisp_firmware_upgrader.egg-info/dependency_links.txt
writing requirements to openwisp_firmware_upgrader.egg-info/requires.txt
writing top-level names to openwisp_firmware_upgrader.egg-info/top_level.txt
adding license file 'LICENSE' (matched pattern 'LICEN[CS]E*')
reading manifest file 'openwisp_firmware_upgrader.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.swp' found under directory '*'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.db' found under directory '*'
warning: no previously-included files matching 'local_settings.py' found under directory '*'
warning: no previously-included files matching '*' found under directory 'tests'
writing manifest file 'openwisp_firmware_upgrader.egg-info/SOURCES.txt'
running build_ext
Creating /home/rg/.pyenv/versions/3.8.15/lib/python3.8/site-packages/openwisp-firmware-upgrader.egg-link (link to .)
openwisp-firmware-upgrader 1.0.1 is already the active version in easy-install.pth

Installed /home/rg/Desktop/project/openwisp-firmware-upgrader
Processing dependencies for openwisp-firmware-upgrader==1.0.1
Searching for django>=2.2.16
Reading https://pypi.org/simple/django/
Downloading https://files.pythonhosted.org/packages/99/5b/c3cca0daea9f3fa5946d14c98bc1cd3c42c026ec6c41d57100e1d646e23a/Django-4.2b1-py3-none-any.whl#sha256=9bf13063a882a9b0f7028c4cdc32ea36fe104491cd7720859117990933f9c589
Best match: Django 4.2b1
Processing Django-4.2b1-py3-none-any.whl
Installing Django-4.2b1-py3-none-any.whl to /home/rg/.pyenv/versions/3.8.15/lib/python3.8/site-packages
Adding Django 4.2b1 to easy-install.pth file
Installing django-admin script to /home/rg/.pyenv/versions/3.8.15/bin

Installed /home/rg/.pyenv/versions/3.8.15/lib/python3.8/site-packages/Django-4.2b1-py3.8.egg
error: Django 4.2b1 is installed but django<4.1.0,>=3.0.0 is required by {'django-loci', 'openwisp-ipam'}
nemesifier commented 7 months ago

This should be fixed in the latest dev version. Let us know if you still have issues.