Ace Stream Forum    Wiki    Info

Пожалуйста, войдите или зарегистрируйтесь.

Расширенный поиск  

Автор Тема: Python3  (Прочитано 687 раз)

Teoc

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 1
Python3
« : 23 Декабрь 2019, 22:17:33 »

Добрый день!
Если я правильно понимаю, линуксовый движок до сих пор использует Python2, который перестаёт поддерживаться с 01.01.2020. Соответственно, дистрибутивы активно удаляют python2-пакеты из репозиториев.
Вопрос: планируется ли портировать acestream-engine на Python3? Если да, то когда можно начинать ждать новую версию?

sybdata

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 18
Re: Python3
« Ответ #1 : 25 Декабрь 2019, 15:55:28 »

перестаёт поддерживаться

это вовсе не означает что не будет работать

post-factum

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 2
Re: Python3
« Ответ #2 : 16 Май 2020, 18:12:06 »

это вовсе не означает что не будет работать

Не будет, потому что не будет пакетов в репозиториях.

Benny

  • Administrator
  • Hero Member
  • *****
  • Оффлайн Оффлайн
  • Сообщений: 666
Re: Python3
« Ответ #3 : 16 Май 2020, 18:36:58 »

Не будет, потому что не будет пакетов в репозиториях.
Под Виндой или Андроидом вообще нет в составе ОС никакой версии Питона "из коробки" - и это совсем не мешает работе нашего приложения. Нужно будет - все зависимости просто переедут в состав дистрибутива.

post-factum

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 2
Re: Python3
« Ответ #4 : 16 Май 2020, 21:56:33 »

Под Виндой или Андроидом вообще нет в составе ОС никакой версии Питона "из коробки" - и это совсем не мешает работе нашего приложения. Нужно будет - все зависимости просто переедут в состав дистрибутива.

Да, но тянуть целый Питон, да ещё и неподдерживаемый (читай — с уязвимостями), в составе приложения — так себе идея. Впрочем, вам виднее  :).

smorman

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 8
Re: Python3
« Ответ #5 : 31 Май 2020, 17:14:53 »

Не будет, потому что не будет пакетов в репозиториях.
Под Виндой или Андроидом вообще нет в составе ОС никакой версии Питона "из коробки" - и это совсем не мешает работе нашего приложения. Нужно будет - все зависимости просто переедут в состав дистрибутива.

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

aceproxy.log

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


acestream.log

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

Benny

  • Administrator
  • Hero Member
  • *****
  • Оффлайн Оффлайн
  • Сообщений: 666
Re: Python3
« Ответ #6 : 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" получим что-то такое: