[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #29495 [Webpages/Website]: Running site fails with python 2.x
#29495: Running site fails with python 2.x
------------------------------+----------------------
Reporter: atagar | Owner: hiro
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Webpages/Website | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
------------------------------+----------------------
Comment (by atagar):
Hi Hiro, I installed lector via their
[https://www.getlektor.com/downloads/ download instructions]. Lector works
under both python2 or python3, and installs under whatever the first
'python' executable in your path points to (which for most people is
python2).
To reinstall lector with python3 I adjusted their
[https://www.getlektor.com/install.sh install.sh] a tad to instead pick
the python3 executable.
> The idea is that python2 will not be supported in a few months
That is incorrect. Python will [https://pythonclock.org/ cease to be
supported in January 2020]. Stem and Nyx remain compatible with Python 2.x
and will continue to do so until the PSF drops support.
----
I am **not** suggesting that the site support python 2.x, but I **am**
suggesting that the site should abort with a useful message saying "python
2.x is not supported". The code that errors is attempting to support both
python versions which is why I spent several hours troubleshooting "why is
our site broken?".
https://gitweb.torproject.org/project/web/tpo.git/tree/packages/i18n/lektor_i18n.py#n58
As others contribute to the site folks will run into this problem again
and again. It would be much better if 'lector server' aborts with a
message saying 'python 2.x is unsupported' rather than the confusing
stacktraces it presently omits.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/29495#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs