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

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

Postby guscebru » Sun Aug 16, 2020 10:00 am

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.
guscebru
Donator VIP
Donator VIP
 
Posts: 4
Joined: Mon Nov 11, 2013 4:00 pm

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

Postby fvdw » Sun Aug 16, 2020 11:06 am

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
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

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

Postby guscebru » Sun Aug 16, 2020 3:21 pm

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.
guscebru
Donator VIP
Donator VIP
 
Posts: 4
Joined: Mon Nov 11, 2013 4:00 pm

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

Postby guscebru » Sun Aug 16, 2020 3:41 pm

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.
guscebru
Donator VIP
Donator VIP
 
Posts: 4
Joined: Mon Nov 11, 2013 4:00 pm

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

Postby fvdw » Sun Aug 16, 2020 4:32 pm

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
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

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

Postby fvdw » Sun Aug 16, 2020 4:33 pm

Later this evening I will have a look and trial to compile zope.interface
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

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

Postby fvdw » Sun Aug 16, 2020 5:53 pm

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
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

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

Postby guscebru » Sun Aug 16, 2020 6:36 pm

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!!
guscebru
Donator VIP
Donator VIP
 
Posts: 4
Joined: Mon Nov 11, 2013 4:00 pm

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

Postby fvdw » Sun Aug 16, 2020 6:39 pm

Glad to hear you got it working :-D
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands


Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: Google [Bot] and 3 guests