Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install hints for Ubuntu 21.10 on python 3.9 #4

Open
moovida opened this issue Oct 22, 2021 · 2 comments
Open

Install hints for Ubuntu 21.10 on python 3.9 #4

moovida opened this issue Oct 22, 2021 · 2 comments

Comments

@moovida
Copy link

moovida commented Oct 22, 2021

Hi there, here below some workarounds that I had to perform against the official project readme to have the development environment installed on the newest ubuntu with python 3.9.

The first problem is on the anyjson installation, which fails on the newest python, giving use_2to3 is invalid as reason. After some checks, it is setuptools, that after version 57.5.0 did remove support for 2to3.

The second is that the build fails with the latest pip, so that also needs to be downgraded.

  pip install setuptools==57.5.0
  pip install pip==20.0.2

It would not hurt in the readme to add the virtualenv activation command for python noobs like me :-D

 workon g3wsuite
@Raruto
Copy link
Collaborator

Raruto commented Sep 15, 2022

Hi @moovida,

in this regard, are you able to make a pull request that improves the readme file?

(BTW, from what i can see the dev version currently recommends python 3.10)

Version

At the moment is not used a classic versioning system for the suite, these are the main branches.

Branch Python version Django version Client version QGIS API First release Status
dev 3.10 2.2 dev ✔️ Unreleased ⚠️ Unstable
v.3.4.x 3.8 2.2 3.4.x ✔️ Mar 2022 🪲 Bug fixing
v.3.3.x 3.6 2.2 3.3.x ✔️ Sep 2021 🪲 Bug fixing
v.3.2.x 3.6 2.2 3.2.x ✔️ Apr 2021 🚨 End of Life
v.3.1.x 3.6 2.2 3.1.x ✔️ Nov 2020 🚨 End of Life
v.3.0.x 3.6 2.2 3.0.x ✔️ Nov 2020 🚨 End of Life
dj22-py3 3.6 2.2 🚨 End of Life
py2 2.7 1.11 🚨 End of Life

The following instructions are for a Ubuntu 18.04 LTS.

@Raruto Raruto transferred this issue from g3w-suite/g3w-admin Dec 30, 2022
@Raruto
Copy link
Collaborator

Raruto commented Mar 17, 2023

The first problem is on the anyjson installation, which fails on the newest python, giving use_2to3 is invalid as reason. After some checks, it is setuptools, that after version 57.5.0 did remove support for 2to3.

The second is that the build fails with the latest pip, so that also needs to be downgraded.

 pip install setuptools==57.5.0
 pip install pip==20.0.2

@moovida so, exactly would you recommend to change within documentation?

Please try submitting here a dedicated pull request with all the new necessary information to let others understand better.

If not, since you've found a solution anyway, I think this issue can be closed too..


It would not hurt in the readme to add the virtualenv activation command for python noobs like me :-D

workon g3wsuite

Addresed in v3.5.x: https://g3w-suite.readthedocs.io/en/v3.5.x/install.html?highlight=workon#virtualenv-creation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants