3 ms·
Is there a standard way a Python script can ask for an older version of the environment? If I could insert a few lines of code into the top of the WikidPad sou
by mikewarot 4y ago
Is there a standard way a Python script can ask for an older version of the environment? If I could insert a few lines of code into the top of the WikidPad source, to specify an OLDER version of wxPython, for example... I'd be able to switch to Linux from Windows.
As it is now, there were breaking changes in wxPython (likely due to the culture of breaking working code extant in Python) which result in WikidPad being broken.
It seems to me that if the Python community continues in this direction, nothing will work more than 3 months after it's last github commit.
[edit/append] No, I'm not sure it's wxPython and not wxWindows that is the issue. I'll have to stuff my Linux boot SSD in, and then try to build WikidPad again to know for sure (it's been too long)
I didn't write WikidPad, it seems to have been last maintained about 2012, but I use it for my notes, etc. I really like it, but the breakage on the Linux side is a show stopper. It's really unfortunate that Linux doesn't have a stable API like Win32, and forces dependence on source code.
I'd consider installing an older version of Linux to force older python, wxPython, wxWindows, etc... and try to figure it from there... the last time I looked at it I got a wall of confusing errors, and couldn't patch it enough to get any functionality out of it.
- duskwuff 4y agowxPython is a Python module. It isn't the same as Python itself. Don't blame the language for issues you're having with libraries written in it. On top of that, wxPython is a Python module which interfaces with an external library (wxWindows). Are you sure your problems are even with the Python module, and not the result of breaking changes in wxWindows itself?
- idealmedtech 4y agopipenv or anaconda are the way to get reproducible python environments
- rerx 4y agoSure, just put something like `wxPython < 4.2.0` into your `requirements.txt`. https://pip.pypa.io/en/stable/reference/requirements-file-format/ https://pip.pypa.io/en/stable/reference/requirements-file-fo...
- mikewarot 4y agoAs near as I can tell, the repository [1] doesn't have a requirements.txt [1] https://github.com/WikidPad/WikidPad https://github.com/WikidPad/WikidPad
- akx 4y agoIt's here in setup.py: https://github.com/WikidPad/WikidPad/blob/master/setup.py#L66 https://github.com/WikidPad/WikidPad/blob/master/setup.py#L6...