delph-in / pydelphin

Python libraries for DELPH-IN
https://pydelphin.readthedocs.io/
MIT License
79 stars 27 forks source link

python version support question #317

Closed olzama closed 4 years ago

olzama commented 4 years ago

Is it the case that pydelphin no longer supports 3.5? I seem to be having issues symptomatic of that, trying to run the latest version of the Matrix on my old ubuntu where I have everything set up.

(This is just a question, so I am not sure an issue is the best way of doing that.)

olzama commented 4 years ago

Actually, this doesn't make sense, does it? 3.6 should be backward-compatible wrt 3.5, right? So, must be some other issue that I am having...

olzama commented 4 years ago

Sorry about the confusing comments. My question really is: should the latest version of the Matrix (which uses rtest.py which depends on pydelphin, and I think actually some other parts are using pydelphin as well now?) still work on 16.04 ubuntu? Or not?

goodmami commented 4 years ago

Is it the case that pydelphin no longer supports 3.5?

PyDelphin has required at least 3.6 since version 1.2.0 (released in January this year). If you need to run on Python 3.5 you'll need to install the previous version of PyDelphin (1.1.0). You can see a note of the change in the changelog and the list of supported versions in the badge on the rendered README:

pydelphin-python-version

3.6 should be backward-compatible wrt 3.5, right?

3.6 is backward compatible with 3.5 but 3.5 is not forward compatible with 3.6.

should the latest version of the Matrix (which uses rtest.py which depends on pydelphin, and I think actually some other parts are using pydelphin as well now?) still work on 16.04 ubuntu?

rtest.py requires at least PyDelphin 1.4.0 because of the parameter it uses to suppress printing PyDelphin's progress bar when processing.

The other parts of the Matrix use PyDelphin's tsdb module, and it might be work with PyDelphin v1.1.0, but since that version I've improved the way it prints dates in profiles and how it splits on newlines. That means it might give spurious failures or errors on profiles created in Windows that have \r partial newline sequences in the i-input field, and the profiles might not load in the [incr tsdb()] podium because of the way it prints dates.

I suggest upgrading to Python 3.6. Besides, Python 3.5 itself will reach end-of-life at the end of this month.

olzama commented 3 years ago

Right. That means upgrading the ubuntu; are you using 18 now? I tried 20 and I am not happy with it, I cannot set up folder sharing with the host, to name one thing.

goodmami commented 3 years ago

That means upgrading the ubuntu

Or installing through other means, such as compiling from source (it's not too bad), or maybe the deadsnakes ppa is still working.

are you using 18 now? I tried 20 and I am not happy with it, I cannot set up folder sharing with the host, to name one thing.

I'm using Pop!_OS 20.04, which is an Ubuntu derivative. It's pretty great. I don't use a VM so I don't know about folder sharing.

olzama commented 3 years ago

The deadsnake is dead... :)