Python version and Tryton 4.4

177 views
Skip to first unread message

Dr. Praveen Bhatia

unread,
May 27, 2017, 12:19:21 PM5/27/17
to tryton
Hello,
  1.    I am trying to upgrade to Tryton 4.4 from Tryton 4
  2. Have aws ubuntu 14.04 cloud computer
  3. Did pip install tryton AND pip install trytond in a virtual environment
    1. trytond works fine but tryton gives following error when I click "Manage Profile" button to enter in my database 
    2. File "/home/ubuntu/Envs/tryton1/local/lib/python2.7/site-packages/tryton/jsonrpc.py", line 184, in make_connection
    3.     ssl_ctx = ssl.create_default_context(cafile=self.__ca_certs)
    4. AttributeError: 'module' object has no attribute 'create_default_context'
  4. Noticed that Tryton 4.4 requires python >= 2.7.9
  5. on apt-get install python - it installs only python 2.7.6
  6. But Tryton 4.4 requires python >= 2.7.9
  7. How does one proceed from here? Is python version the problem for the above tryton error? Or is the reason different?

Praveen

Karla Stenger

unread,
May 27, 2017, 1:16:18 PM5/27/17
to try...@googlegroups.com


2017-05-27 13:19 GMT-03:00 Dr. Praveen Bhatia <praveen...@sumpurn.com>:
Hello,
​Hi,​
 
  1.    I am trying to upgrade to Tryton 4.4 from Tryton 4
  2. Have aws ubuntu 14.04 cloud computer
  3. Did pip install tryton AND pip install trytond in a virtual environment
    1. trytond works fine but tryton gives following error when I click "Manage Profile" button to enter in my database 
    2. File "/home/ubuntu/Envs/tryton1/local/lib/python2.7/site-packages/tryton/jsonrpc.py", line 184, in make_connection
    3.     ssl_ctx = ssl.create_default_context(cafile=self.__ca_certs)
    4. AttributeError: 'module' object has no attribute 'create_default_context'
  4. Noticed that Tryton 4.4 requires python >= 2.7.9
  5. on apt-get install python - it installs only python 2.7.6
  6. But Tryton 4.4 requires python >= 2.7.9
  7. How does one proceed from here?
​You need Ubuntu support here to get a system with the right version of python. Googling a bit about how to upgrade python in it gives some results, but all of them come with warnings, so be cautious that other python depending packages could give you issues. After that disclaimer, I found this [1] that can be useful to you, however evaluate your risks depending on what your system serves.​ There is also a lot of info here [2]
  1. Is python version the problem for the above tryton error?
​likely yes​
 
  1. Or is the reason different?
​No, this is why there is a dependency on python >= 2.7.9​
 

​Cheers,
Karla.


--
-------------------------
Karla  Mª  Stenger  Sábat
karla....@gmail.com

Dr. Praveen Bhatia

unread,
Jun 3, 2017, 8:49:14 AM6/3/17
to tryton


On Sunday, May 28, 2017 at 2:16:18 AM UTC+9, Karla Stenger wrote:


2017-05-27 13:19 GMT-03:00 Dr. Praveen Bhatia <praveen...@sumpurn.com>:
Hello,
​Hi,​
 
  1.    I am trying to upgrade to Tryton 4.4 from Tryton 4
  2. Have aws ubuntu 14.04 cloud computer
  3. Did pip install tryton AND pip install trytond in a virtual environment
    1. trytond works fine but tryton gives following error when I click "Manage Profile" button to enter in my database 
    2. File "/home/ubuntu/Envs/tryton1/local/lib/python2.7/site-packages/tryton/jsonrpc.py", line 184, in make_connection
    3.     ssl_ctx = ssl.create_default_context(cafile=self.__ca_certs)
    4. AttributeError: 'module' object has no attribute 'create_default_context'
  4. Noticed that Tryton 4.4 requires python >= 2.7.9
  5. on apt-get install python - it installs only python 2.7.6
  6. But Tryton 4.4 requires python >= 2.7.9
  7. How does one proceed from here?
​You need Ubuntu support here to get a system with the right version of python. Googling a bit about how to upgrade python in it gives some results, but all of them come with warnings, so be cautious that other python depending packages could give you issues. After that disclaimer, I found this [1] that can be useful to you, however evaluate your risks depending on what your system serves.​ There is also a lot of info here [2]
  1. Is python version the problem for the above tryton error?
​likely yes​
 
  1. Or is the reason different?
​No, this is why there is a dependency on python >= 2.7.9​
 




Thanks Kalra. The solution that I found was to install tryton ver 4.2 instead. It had most of the latest changes and would work on python 2.7.6 too !

Dominique Chabord

unread,
Jun 3, 2017, 9:35:00 AM6/3/17
to tryton
2017-06-03 14:49 GMT+02:00 Dr. Praveen Bhatia <praveen...@sumpurn.com>:
>
>
> On Sunday, May 28, 2017 at 2:16:18 AM UTC+9, Karla Stenger wrote:

>>> Noticed that Tryton 4.4 requires python >= 2.7.9
>>> on apt-get install python - it installs only python 2.7.6
>>> But Tryton 4.4 requires python >= 2.7.9
>>> How does one proceed from here?

>>
>> No, this is why there is a dependency on python >= 2.7.9
>>

Do you know where is this specification ?

Dr. Praveen Bhatia

unread,
Jun 3, 2017, 11:03:29 AM6/3/17
to tryton, dominiqu...@sisalp.org

Raimon Esteve

unread,
Jun 8, 2017, 8:20:25 AM6/8/17
to try...@googlegroups.com
About SSL and CA:

https://bugs.tryton.org/issue6270

Regards,

Raimon

Karla Stenger

unread,
Jun 12, 2017, 3:51:34 PM6/12/17
to try...@googlegroups.com
2017-06-08 9:20 GMT-03:00 Raimon Esteve <raimon...@gmail.com>:
2017-06-03 15:34 GMT+02:00 Dominique Chabord <dominiqu...@sisalp.org>:
> 2017-06-03 14:49 GMT+02:00 Dr. Praveen Bhatia <praveen...@sumpurn.com>:
>>
>>
>> On Sunday, May 28, 2017 at 2:16:18 AM UTC+9, Karla Stenger wrote:
>
>>>> Noticed that Tryton 4.4 requires python >= 2.7.9
>>>> on apt-get install python - it installs only python 2.7.6
>>>> But Tryton 4.4 requires python >= 2.7.9
>>>> How does one proceed from here?

​For those still wondering, I found this which looks very promissing:
https://github.com/pyenv/pyenv
 
>
>>>
>>> No, this is why there is a dependency on python >= 2.7.9
>>>
>
> Do you know where is this specification ?

About SSL and CA:

https://bugs.tryton.org/issue6270

Regards,

Raimon

--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/CAN2HbXW57o%3D4AKwcObLGgRFFEoaKCksDb3D_%3DJpxD779Gx6ihg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages