Page 1 of 1

Python 3.6 support?

Posted: Tue Apr 11, 2017 12:49 pm
by Mahi
Are there any plans or ETA to add Python 3.6 support? There are a few huge things in it, namely faster dicts, f-strings, and __init_subclass__(), last of which I'd love to get my hands on already. I believe the f-strings make it worthy upgrade for almost any SP plugin though.

Re: Python 3.6 support?

Posted: Tue Apr 11, 2017 12:54 pm
by satoon101
It has been planned for a while, we just haven't gotten around to doing it, yet. And yes, there are a lot of nice updates in 3.6!

Re: Python 3.6 support?

Posted: Wed Apr 12, 2017 9:35 am
by Mahi
Glad to hear it's under the radar! Not to hurry, but can't wait! :wink:

Re: Python 3.6 support?

Posted: Mon Jun 19, 2017 11:25 pm
by satoon101
For those not following the repository on GitHub, SP now uses Python 3.6 (available starting with version 583)!

Re: Python 3.6 support?

Posted: Tue Jun 20, 2017 12:47 pm
by decompile
Thanks for the awesome work!

Re: Python 3.6 support?

Posted: Tue Jun 20, 2017 9:47 pm
by decompile
Is it just me that I cant load the new build on linux css?

ImportError: libffi.so.6: cannot open shared object file: No such file or directory

Re: Python 3.6 support?

Posted: Tue Jun 20, 2017 10:06 pm
by satoon101
You might need to yum or apt-get install libffi on your Linux system. Is that the entire traceback?

Re: Python 3.6 support?

Posted: Tue Jun 20, 2017 11:03 pm
by decompile
Sorry

Code: Select all

[SP] Caught an Exception:
Traceback (most recent call last):
  File "../addons/source-python/packages/source-python/__init__.py", line 58, in load
    setup_sqlite()
  File "../addons/source-python/packages/source-python/__init__.py", line 343, in setup_sqlite
    import ctypes
  File "../addons/source-python/Python3/ctypes/__init__.py", line 7, in <module>
    from _ctypes import Union, Structure, Array

ImportError: libffi.so.6: cannot open shared object file: No such file or directory

Re: Python 3.6 support?

Posted: Wed Jun 21, 2017 2:54 am
by Ayuto
Our build server has the same issue. Note that you need to install the 32bit version.

Re: Python 3.6 support?

Posted: Wed Jun 21, 2017 3:35 am
by satoon101
I just noticed the following in the upcoming Python 3.7 changes:
What's New In Python3.7 wrote:
  • A full copy of libffi is no longer bundled for use when building the _ctypes module on non-OSX UNIX platforms. An installed copy of libffi is now required when building _ctypes on such platforms.

Re: Python 3.6 support?

Posted: Wed Jun 21, 2017 1:04 pm
by decompile
satoon101 wrote:You might need to yum or apt-get install libffi on your Linux system.


So this is currently the only fix for that? Guess python 3.7 wont come tht quick?

Re: Python 3.6 support?

Posted: Wed Jun 21, 2017 1:46 pm
by satoon101
I think you are misinterpreting the text I quoted. The issue is that for Python 3.7 they removed that file. While our current version does say Python 3.6.1, I am fairly certain it contains the code in the Python master repository that was even committed after the 3.6.1 release. That is fine, as that is what I believe I used when I last updated the SP Python version. I am not sure if we can handle this within the SP build itself, but we will look into it. But for now, yes, that is the only fix.

Re: Python 3.6 support?

Posted: Fri Jun 23, 2017 4:35 pm
by Ayuto
Actually, I have taken the source from the 3.6.1 release and not from the repository. Our build server also suffers from this problem. I hope necavi has some time to install the library very soon.

Re: Python 3.6 support?

Posted: Thu Jun 29, 2017 10:23 am
by sm2345110
Wow !!! Such a great, thanks for updating .....its really awesome update.

Python Training at CETPA :)