Page 1 of 1

Hi, I donated to have acces to python 2.7 addon!!

PostPosted: Sun Aug 16, 2020 10:00 am
by guscebru
Hi, I donated to have acces to addons download links.
But I have not yet this feature activated!

I'm trying to run on nws2 an HLS proxy written for python 2.7. From this page https://github.com/Viblast/hls-proxy .
And this version of python is a must.
Hls-proxy requires python-2.7 zope.interface too, is there any possibility to create a dedicated addon?

Thank's for all your work.

Re: Hi, I donated to have acces to python 2.7 addon!!

PostPosted: Sun Aug 16, 2020 11:06 am
by fvdw
Hi, after installing python 2.7 you could try thus command
Code: Select all
pip install zope.interface==4.3.2


If that doesn't work I might have to make a dedicated addon

Re: Hi, I donated to have acces to python 2.7 addon!!

PostPosted: Sun Aug 16, 2020 3:21 pm
by guscebru
Hey, guys!!
I need some help to get it working.
When i try to run python, i receive this error:
python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
I made a symbolic link:
ln -s /direct-usb/fvdw/addons/lib/libpython2.7.so.1.0 /lib/libpython2.7.so.1.0
And it works!!
But i think, that on the next reboot this link will be removed.
Is there, another workaround to do this?
Thank's.

Re: Hi, I donated to have acces to python 2.7 addon!!

PostPosted: Sun Aug 16, 2020 3:41 pm
by guscebru
fvdw wrote:Hi, after installing python 2.7 you could try thus command
Code: Select all
pip install zope.interface==4.3.2


If that doesn't work I might have to make a dedicated addon


Unfortunatelly, pip doesn't work.
Code: Select all
 pip install zope.interface==4.3.2
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha1
Downloading/unpacking zope.interface==4.3.2
  Cannot fetch index base URL http://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement zope.interface==4.3.2
No distributions at all found for zope.interface==4.3.2
Storing complete log in /.pip/pip.log


I only need python zope.interface package as requirement for HLS proxy.
Could you help me to get to it?
Thank's.

Re: Hi, I donated to have acces to python 2.7 addon!!

PostPosted: Sun Aug 16, 2020 4:32 pm
by fvdw
guscebru wrote:Hey, guys!!
I need some help to get it working.
When i try to run python, i receive this error:
python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
I made a symbolic link:
ln -s /direct-usb/fvdw/addons/lib/libpython2.7.so.1.0 /lib/libpython2.7.so.1.0
And it works!!
But i think, that on the next reboot this link will be removed.
Is there, another workaround to do this?
Thank's.

Strange this link should not be required, unless the standard search path has been changed. The link you made will survive boot. You could run this command to update Caches and links for shared libs
Code: Select all
ldconfig

Re: Hi, I donated to have acces to python 2.7 addon!!

PostPosted: Sun Aug 16, 2020 4:33 pm
by fvdw
Later this evening I will have a look and trial to compile zope.interface

Re: Hi, I donated to have acces to python 2.7 addon!!

PostPosted: Sun Aug 16, 2020 5:53 pm
by fvdw
attached addon python 2.7.14 including zope-4.3.2.

To install unzip the zip archive to get the tgz archive
Remove all files you have currently in /direct-usb/fvdw/addons (I assume you only have installed python-2.7.3 until now)
After that put the the attached tgz archive in the fvdw/addons shared folder and unpack it
Code: Select all
cd /direct-usb/fvdw/addons
tar -xzvf addons-python-2.7.14-6-zope-4.3.2.tgz


edit file removed

Re: Hi, I donated to have acces to python 2.7 addon!!

PostPosted: Sun Aug 16, 2020 6:36 pm
by guscebru
fvdw wrote:attached addon python 2.7.14 including zope-4.3.2.

To install unzip the zip archive to get the tgz archive
Remove all files you have currently in /direct-usb/fvdw/addons (I assume you only have installed python-2.7.3 until now)
After that put the the attached tgz archive in the fvdw/addons shared folder and unpack it
Code: Select all
cd /direct-usb/fvdw/addons
tar -xzvf addons-python-2.7.14-6-zope-4.3.2.tgz


It works like a charm!!!
Thank you for your effort!!

Re: Hi, I donated to have acces to python 2.7 addon!!

PostPosted: Sun Aug 16, 2020 6:39 pm
by fvdw
Glad to hear you got it working :-D