Архив форума Ace Stream

Базовые продукты ACE Stream ( Torrent Stream ) => Вопросы, предложения и пожелания => Тема начата: Teoc от 23 Декабря 2019, 22:17:33

Название: Python3
Отправлено: Teoc от 23 Декабря 2019, 22:17:33
Добрый день!
Если я правильно понимаю, линуксовый движок (http://acestream.org/downloads/linux/acestream_3.1.49_ubuntu_18.04_x86_64.tar.gz) до сих пор использует Python2, который перестаёт поддерживаться с 01.01.2020 (https://pythonclock.org/). Соответственно, дистрибутивы активно удаляют python2-пакеты из репозиториев.
Вопрос: планируется ли портировать acestream-engine на Python3? Если да, то когда можно начинать ждать новую версию?
Название: Re: Python3
Отправлено: sybdata от 25 Декабря 2019, 15:55:28
перестаёт поддерживаться

это вовсе не означает что не будет работать
Название: Re: Python3
Отправлено: post-factum от 16 Мая 2020, 18:12:06
это вовсе не означает что не будет работать

Не будет, потому что не будет пакетов в репозиториях.
Название: Re: Python3
Отправлено: Benny от 16 Мая 2020, 18:36:58
Не будет, потому что не будет пакетов в репозиториях.
Под Виндой или Андроидом вообще нет в составе ОС никакой версии Питона "из коробки" - и это совсем не мешает работе нашего приложения. Нужно будет - все зависимости просто переедут в состав дистрибутива.
Название: Re: Python3
Отправлено: post-factum от 16 Мая 2020, 21:56:33
Под Виндой или Андроидом вообще нет в составе ОС никакой версии Питона "из коробки" - и это совсем не мешает работе нашего приложения. Нужно будет - все зависимости просто переедут в состав дистрибутива.

Да, но тянуть целый Питон, да ещё и неподдерживаемый (читай — с уязвимостями), в составе приложения — так себе идея. Впрочем, вам виднее  :).
Название: Re: Python3
Отправлено: smorman от 31 Мая 2020, 17:14:53
Не будет, потому что не будет пакетов в репозиториях.
Под Виндой или Андроидом вообще нет в составе ОС никакой версии Питона "из коробки" - и это совсем не мешает работе нашего приложения. Нужно будет - все зависимости просто переедут в состав дистрибутива.

Вот только пробовал Проксю Пепса втулить в 20.04 и ругается на Асе - дохлый, т.к. Питон 2.7 нужен.
Установил его и все доп. пакеты руками впилил, но всё равно не алё.
Ругается - ImportError: No module named pkg_resources

aceproxy.log
Spoiler: показать

acehttp.py      [LINE:348 ]# ERROR    [31.05 17:08:45] Ace Stream died, respawned with pid 5100


acestream.log
Spoiler: показать

2020-05-31 17:07:34,157|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:07:48,797|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:08:01,135|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:08:16,188|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:08:31,160|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:08:46,617|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:09:01,293|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:09:16,177|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:09:31,198|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:09:46,205|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:10:01,187|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:10:16,202|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:10:31,197|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:10:46,219|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:11:01,239|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:11:16,251|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:11:31,272|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:11:46,280|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:12:01,292|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
2020-05-31 17:12:16,287|MainThread|acestream|error during startup
Traceback (most recent call last):
  File "core.c", line 1793, in
  File "core.c", line 153, in
  File "core.c", line 38, in
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/blist.py", line 1, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 7, in <module>
  File "/opt/acestream/lib/blist-1.3.4-py2.7-linux-x86_64.egg/_blist.py", line 3, in __bootstrap__
ImportError: No module named pkg_resources
Название: Re: Python3
Отправлено: Benny от 31 Мая 2020, 19:27:40
Установил его и все доп. пакеты руками впилил, но всё равно не алё.
А в чем противоречие? Понятно, что не "але" - нами еще не собиралась версия для установки "в один клик" для систем без Python2.
Если раньше нужно было руками устанавливать Python3 и доп софт под него, то счас наоборот - если кому сильно чешется, то для той же бубунты нужно самостоятельно:
1) установить Python2 (apt install python2.7 libpython2.7)
2) установить PIP для него (используя, например, скрипт с  https://bootstrap.pypa.io/get-pip.py) => python2 get-pip.py
3) установить resources (pip install resources)
4) установить apsw и net-tools (apt install python-apsw net-tools)
В результате для "acestream_3.1.49_ubuntu_18.04_x86_64.tar.gz" получим что-то такое:
Название: Re: Python3
Отправлено: sybdata от 04 Июня 2020, 22:48:03
(читай — с уязвимостями)

у вас движок стоит на машине где online banking?🥱🥱🥱

изолировыных песочниц полно, в чём проблема то...
Название: Re: Python3
Отправлено: post-factum от 04 Июня 2020, 23:03:18
у вас движок стоит на машине где online banking?🥱🥱🥱

Законопослушному гражданину скрывать нечего. Так об этом пишут газеты.

изолировыных песочниц полно, в чём проблема то...

В перепаковке по уму и в размере итогового бандла. Значительно легче, когда в современных дистрибутивах софт заводится без свистоплясок с устаревшим рантаймом.
Название: Re: Python3
Отправлено: smorman от 05 Июня 2020, 23:02:06
получим что-то такое:

Спасибо за наколку!
Всё заработало!