Kirjoittaja Aihe: yle-dl ei lataa ohjelmaa eikä päivity  (Luettu 5890 kertaa)

Illu

  • Käyttäjä
  • Viestejä: 1089
    • Profiili
yle-dl ei lataa ohjelmaa eikä päivity
« : 22.07.24 - klo:22.14 »
Kaikki vaihtoehtoisesti mieleen tulleet poistamiset ja asennukset olen kokeillut. Areenasta jaksoa https://areena.yle.fi/1-67591725 en saa tallennettua.
Koodia: [Valitse]
ilkka@kotikone:~$ yle-dl https://areena.yle.fi/1-67591725
yle-dl 20190203: Download media files from Yle Areena and Elävä Arkisto
Copyright (C) 2009-2019 Antti Ajanki <antti.ajanki@iki.fi>, license: GPLv3

ERROR: Can't read https://player.yle.fi/api/v1/programs.jsonp?id=1-67591725&callback=yleEmbed.programJsonpCallback
Traceback (most recent call last):
  File "/home/ilkka/.local/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/ilkka/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 72, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ilkka/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 722, in urlopen
    chunked=chunked,
  File "/home/ilkka/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 404, in _make_request
    self._validate_conn(conn)
  File "/home/ilkka/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1060, in _validate_conn
    conn.connect()
  File "/home/ilkka/.local/lib/python3.6/site-packages/urllib3/connection.py", line 363, in connect
    self.sock = conn = self._new_conn()
  File "/home/ilkka/.local/lib/python3.6/site-packages/urllib3/connection.py", line 187, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7ff5dec96588>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ilkka/.local/lib/python3.6/site-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/home/ilkka/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 842, in urlopen
    **response_kw
  File "/home/ilkka/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 842, in urlopen
    **response_kw
  File "/home/ilkka/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 842, in urlopen
    **response_kw
  File "/home/ilkka/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 802, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/ilkka/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 594, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='player.yle.fi', port=443): Max retries exceeded with url: /api/v1/programs.jsonp?id=1-67591725&callback=yleEmbed.programJsonpCallback (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ff5dec96588>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/yledl/http.py", line 85, in get
    r = self._session.get(url, headers=headers)
  File "/home/ilkka/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in get
    return self.request('GET', url, **kwargs)
  File "/home/ilkka/.local/lib/python3.6/site-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/ilkka/.local/lib/python3.6/site-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/home/ilkka/.local/lib/python3.6/site-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='player.yle.fi', port=443): Max retries exceeded with url: /api/v1/programs.jsonp?id=1-67591725&callback=yleEmbed.programJsonpCallback (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ff5dec96588>: Failed to establish a new connection: [Errno -2] Name or service not known',))
ERROR: Unsupported stream: Media not found

Mitenköhän tässä nyt etenisi? Alla on toki vanha U18.04, johon on tällä hetkellä päädytty päivitysten ja Ubuntu Pron kautta ja yle-dl:kin on kai joskus asennettu ensin väärin(?) sudon kanssa. En järjestelmää toistaiseksi alkaisi uusimaan kokonaan, kun se nyt muuten toimii tavoitteiden mukaisesti. Lukuunottamatta yle-dl:ää.

Muoks. Olipa huono esimerkki, jossa yle-dl versio on ikuvanha. Tuo on nyt paikalla, kun olen niitä poistoja ja päivityksiä yritellyt. Mutta 2023 vuoden versiollakin tulos oli sama, ei tallennu vaan herjaa. Eikä päivittynyt erilaisilla pipeillä tai pypeillä tms.
« Viimeksi muokattu: 02.08.24 - klo:12.40 kirjoittanut Illu »

pkill

  • Käyttäjä
  • Viestejä: 144
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #1 : 22.07.24 - klo:22.37 »
En ole aikoihin tuota asentanut, mutta mahtaneeko johtua Ylen vaatimuksesta kirjautua sisälle, ennenkuin pääsee katselemaan?

Illu

  • Käyttäjä
  • Viestejä: 1089
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #2 : 22.07.24 - klo:23.38 »
Olen vakituisesti kirjautuneena ja katselemaan kyllä pystyy suoraan Areenasta.

Jupro

  • Käyttäjä
  • Viestejä: 43
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #3 : 23.07.24 - klo:00.07 »
Ei linkissä ainakaan mitää vikaa.

Linux Mint 21.3 Cinnamon lataa ja ilman kirjautumista.

Yle- dl versio 20240429.

On kyllä todella hyvä tv- dokumenttisarja.

Typo korjattu.

nm

  • Käyttäjä
  • Viestejä: 16430
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #4 : 23.07.24 - klo:00.45 »
Muoks. Olipa huono esimerkki, jossa yle-dl versio on ikuvanha. Tuo on nyt paikalla, kun olen niitä poistoja ja päivityksiä yritellyt. Mutta 2023 vuoden versiollakin tulos oli sama, ei tallennu vaan herjaa. Eikä päivittynyt erilaisilla pipeillä tai pypeillä tms.

Nykyinen versio on 20240706. Poista ensin vanha versio kokonaan:

Koodia: [Valitse]
pip3 uninstall yle-dl
Koodia: [Valitse]
sudo pip3 uninstall yle-dl
Varmista poiston jälkeen, ettei yle-dl enää ole asennettuna:

Koodia: [Valitse]
yle-dl
Lainaus
yle-dl: command not found

Jos komento toimii edelleen, se on asennettu ehkä vanhalla Python 2.7:llä tai ehkä jotenkin manuaalisesti ilman pipiä. Sitten pitäisi selvitellä tarkemmin missä asennus sijaitsee.

Jos komentoa ei enää löydy, asenna uudelleen:

Koodia: [Valitse]
pip3 install --user yle-dl
Lainaus
Collecting yle-dl
  Downloading yle_dl-20240706-py3-none-any.whl (67 kB)
...

Illu

  • Käyttäjä
  • Viestejä: 1089
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #5 : 23.07.24 - klo:09.20 »
Poisto onnistui mutta asennuksessa jostain kaivautui joku vanha versio.

Koodia: [Valitse]
ilkka@kotikone:~$ pip3 install --user yle-dl
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Collecting yle-dl
  Using cached yle_dl-20230611-py3-none-any.whl (52 kB)
Requirement already satisfied: attrs>=20.1.0 in ./.local/lib/python3.6/site-packages (from yle-dl) (22.2.0)
Requirement already satisfied: xattr in ./.local/lib/python3.6/site-packages (from yle-dl) (0.10.1)
Requirement already satisfied: requests in ./.local/lib/python3.6/site-packages (from yle-dl) (2.27.1)
Requirement already satisfied: ConfigArgParse>=0.13.0 in ./.local/lib/python3.6/site-packages (from yle-dl) (1.7)
Requirement already satisfied: lxml in ./.local/lib/python3.6/site-packages (from yle-dl) (5.2.2)
Requirement already satisfied: charset-normalizer~=2.0.0 in ./.local/lib/python3.6/site-packages (from requests->yle-dl) (2.0.12)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.local/lib/python3.6/site-packages (from requests->yle-dl) (1.26.19)
Requirement already satisfied: idna<4,>=2.5 in ./.local/lib/python3.6/site-packages (from requests->yle-dl) (3.7)
Requirement already satisfied: certifi>=2017.4.17 in ./.local/lib/python3.6/site-packages (from requests->yle-dl) (2024.7.4)
Requirement already satisfied: cffi>=1.0 in ./.local/lib/python3.6/site-packages (from xattr->yle-dl) (1.15.1)
Requirement already satisfied: pycparser in ./.local/lib/python3.6/site-packages (from cffi>=1.0->xattr->yle-dl) (2.21)
Installing collected packages: yle-dl
Successfully installed yle-dl-20230611

Cultor

  • Käyttäjä
  • Viestejä: 177
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #6 : 23.07.24 - klo:09.20 »
Liian vanha python3 versio... ai mistäkö tiedän, tässä viime aikoina taistellut saman ongelman kanssa.

Tuore Xubuntu 18.04 asennus, uudempaa ei 32-bittiseen koneeseen saa.
Koodia: [Valitse]
python3 -V
Python 3.6.9

Yle-dl vaatii nykyisin vähintään Python 3.7. Internetin ihmeellisestä maailmasta löytyy ohjeet, miten asentaa python 3.7 Ubuntu 18.04 versioon.

Illu

  • Käyttäjä
  • Viestejä: 1089
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #7 : 23.07.24 - klo:09.30 »
Tuota olen itsekin päätellyt, kun asennusohjeissa edellytetään vähintään versiota 3.7.

Asennuksen jälkeen
Koodia: [Valitse]
ilkka@kotikone:~$ python3.7 --version
Python 3.7.5

Tuo ei minulla siis riitä, vaan asennus on jumittunut vanhempaan yle-dl versioon.

nm

  • Käyttäjä
  • Viestejä: 16430
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #8 : 23.07.24 - klo:11.40 »
Tuota olen itsekin päätellyt, kun asennusohjeissa edellytetään vähintään versiota 3.7.

Asennuksen jälkeen
Koodia: [Valitse]
ilkka@kotikone:~$ python3.7 --version
Python 3.7.5
Tuo ei minulla siis riitä, vaan asennus on jumittunut vanhempaan yle-dl versioon.

Poista yle-dl uudelleen ja asenna Python 3.7:n pipillä:

Koodia: [Valitse]
sudo python3.7 -m pip install pip
Koodia: [Valitse]
python3.7 -m pip install --user yle-dl
« Viimeksi muokattu: 23.07.24 - klo:11.43 kirjoittanut nm »

Illu

  • Käyttäjä
  • Viestejä: 1089
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #9 : 23.07.24 - klo:12.07 »
Ei vielä tärpännyt.

Koodia: [Valitse]
ilkka@kotikone:~$ sudo python3.7 -m pip install pip
[sudo] ilkka-käyttäjän salasana:
The directory '/home/ilkka/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/ilkka/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: pip in /usr/lib/python3/dist-packages

Koodia: [Valitse]
ilkka@kotikone:~$ python3.7 -m pip install --user yle-dl
Collecting yle-dl
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/25/33/c2f06cafde2ae7762d8be0d69cec70df6608dca883b904c8306e75ab935d/yle_dl-20240706-py3-none-any.whl (67kB)
    100% |████████████████████████████████| 71kB 4.8MB/s
Collecting lxml (from yle-dl)
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/63/f7/ffbb6d2eb67b80a45b8a0834baa5557a14a5ffce0979439e7cd7f0c4055b/lxml-5.2.2.tar.gz (3.7MB)
    100% |████████████████████████████████| 3.7MB 392kB/s
    Complete output from command python setup.py egg_info:
    Building lxml version 5.2.2.
    Building without Cython.
    Error: Please make sure the libxml2 and libxslt development packages are installed.
   
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-v_437p2r/lxml/

Koodia: [Valitse]
ilkka@kotikone:~$ yle-dl
yle-dl: komentoa ei löytynyt

kamara

  • Käyttäjä
  • Viestejä: 3032
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #10 : 23.07.24 - klo:13.03 »
Kokeiles asentaa libxslt1.1, libxslt1-dev, libxml2 ja libxml2-dev -paketit. Esim. käskyllä ...
Koodia: [Valitse]
sudo apt install libxslt1.1 libxslt1-dev libxml2 libxml2-dev

Auttaisikohan asiaan ?

Edit - Pitääköhän sen jälkeen vielä asentaa yle-dl uudestaan ?
Koodia: [Valitse]
python3.7 -m pip install --user yle-dl
« Viimeksi muokattu: 23.07.24 - klo:13.05 kirjoittanut kamara »

Illu

  • Käyttäjä
  • Viestejä: 1089
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #11 : 23.07.24 - klo:13.28 »
Paljon tapahtui, mutta toivottua lopputulosta ei tullut.

nm

  • Käyttäjä
  • Viestejä: 16430
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #12 : 23.07.24 - klo:14.02 »
Paljon tapahtui, mutta toivottua lopputulosta ei tullut.

Miltä asennusyritys kertoo nyt?

Illu

  • Käyttäjä
  • Viestejä: 1089
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #13 : 23.07.24 - klo:15.18 »
Näin vastaa:

Koodia: [Valitse]
ilkka@kotikone:~$ sudo python3.7 -m pip install pip
[sudo] ilkka-käyttäjän salasana:
The directory '/home/ilkka/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/ilkka/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: pip in /usr/lib/python3/dist-packages

Menee kömpelöksi, mutta seuraavaksi pitää vastaukset laittaa erikseen, kun esikatselu herjaa liian montaa merkkiä.

Illu

  • Käyttäjä
  • Viestejä: 1089
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #14 : 23.07.24 - klo:15.19 »
Alku

Koodia: [Valitse]
ilkka@kotikone:~$ python3.7 -m pip install --user yle-dl
Collecting yle-dl
  Using cached https://files.pythonhosted.org/packages/25/33/c2f06cafde2ae7762d8be0d69cec70df6608dca883b904c8306e75ab935d/yle_dl-20240706-py3-none-any.whl
Collecting requests (from yle-dl)
  Using cached https://files.pythonhosted.org/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl
Collecting ConfigArgParse>=0.13.0 (from yle-dl)
  Using cached https://files.pythonhosted.org/packages/6f/b3/b4ac838711fd74a2b4e6f746703cf9dd2cf5462d17dac07e349234e21b97/ConfigArgParse-1.7-py3-none-any.whl
Collecting lxml (from yle-dl)
  Using cached https://files.pythonhosted.org/packages/63/f7/ffbb6d2eb67b80a45b8a0834baa5557a14a5ffce0979439e7cd7f0c4055b/lxml-5.2.2.tar.gz
Collecting charset-normalizer<4,>=2 (from requests->yle-dl)
  Using cached https://files.pythonhosted.org/packages/28/76/e6222113b83e3622caa4bb41032d0b1bf785250607392e1b778aca0b8a7d/charset_normalizer-3.3.2-py3-none-any.whl
Collecting urllib3<3,>=1.21.1 (from requests->yle-dl)
  Using cached https://files.pythonhosted.org/packages/d2/b2/b157855192a68541a91ba7b2bbcb91f1b4faa51f8bae38d8005c034be524/urllib3-2.0.7-py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests->yle-dl)
  Using cached https://files.pythonhosted.org/packages/1c/d5/c84e1a17bf61d4df64ca866a1c9a913874b4e9bdc131ec689a0ad013fb36/certifi-2024.7.4-py3-none-any.whl
Collecting idna<4,>=2.5 (from requests->yle-dl)
  Using cached https://files.pythonhosted.org/packages/e5/3e/741d8c82801c347547f8a2a06aa57dbb1992be9e948df2ea0eda2c8b79e8/idna-3.7-py3-none-any.whl
Building wheels for collected packages: lxml
  Running setup.py bdist_wheel for lxml ... error
  Complete output from command /usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-wgoonw8v/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp3xahq9dxpip-wheel- --python-tag cp37:
  Building lxml version 5.2.2.
  Building without Cython.
  Building against libxml2 2.9.4 and libxslt 1.1.29
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  creating build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/doctestcompare.py -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/builder.py -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/pyclasslookup.py -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/usedoctest.py -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/sax.py -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/_elementpath.py -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/cssselect.py -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/ElementInclude.py -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/__init__.py -> build/lib.linux-x86_64-3.7/lxml
  creating build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/__init__.py -> build/lib.linux-x86_64-3.7/lxml/includes
  creating build/lib.linux-x86_64-3.7/lxml/html
  copying src/lxml/html/builder.py -> build/lib.linux-x86_64-3.7/lxml/html
  copying src/lxml/html/ElementSoup.py -> build/lib.linux-x86_64-3.7/lxml/html
  copying src/lxml/html/soupparser.py -> build/lib.linux-x86_64-3.7/lxml/html
  copying src/lxml/html/diff.py -> build/lib.linux-x86_64-3.7/lxml/html
  copying src/lxml/html/_setmixin.py -> build/lib.linux-x86_64-3.7/lxml/html
  copying src/lxml/html/usedoctest.py -> build/lib.linux-x86_64-3.7/lxml/html
  copying src/lxml/html/_diffcommand.py -> build/lib.linux-x86_64-3.7/lxml/html
  copying src/lxml/html/clean.py -> build/lib.linux-x86_64-3.7/lxml/html
  copying src/lxml/html/_html5builder.py -> build/lib.linux-x86_64-3.7/lxml/html
  copying src/lxml/html/formfill.py -> build/lib.linux-x86_64-3.7/lxml/html
  copying src/lxml/html/html5parser.py -> build/lib.linux-x86_64-3.7/lxml/html
  copying src/lxml/html/defs.py -> build/lib.linux-x86_64-3.7/lxml/html
  copying src/lxml/html/__init__.py -> build/lib.linux-x86_64-3.7/lxml/html
  creating build/lib.linux-x86_64-3.7/lxml/isoschematron
  copying src/lxml/isoschematron/__init__.py -> build/lib.linux-x86_64-3.7/lxml/isoschematron
  copying src/lxml/etree.h -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/etree_api.h -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/lxml.etree.h -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/lxml.etree_api.h -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/etree.pyx -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/objectify.pyx -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/xsltext.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/public-api.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/parsertarget.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/nsclasses.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/debug.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/xinclude.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/docloader.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/dtd.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/serializer.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/extensions.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/parser.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/cleanup.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/classlookup.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/xpath.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/readonlytree.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/objectpath.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/xslt.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/iterparse.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/schematron.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/xmlschema.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/apihelpers.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/proxy.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/xmlerror.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/xmlid.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/saxparser.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/relaxng.pxi -> build/lib.linux-x86_64-3.7/lxml
  copying src/lxml/includes/tree.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/relaxng.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/xinclude.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/__init__.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/xpath.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/config.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/xslt.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/schematron.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/c14n.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/uri.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-3.7/lxml/includes
  copying src/lxml/includes/etree_defs.h -> build/lib.linux-x86_64-3.7/lxml/includes
  creating build/lib.linux-x86_64-3.7/lxml/isoschematron/resources
  creating build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/rng
  copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/rng
  creating build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl
  copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl
  copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl
  creating build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  running build_ext
  building 'lxml.etree' extension
  creating build/temp.linux-x86_64-3.7
  creating build/temp.linux-x86_64-3.7/src
  creating build/temp.linux-x86_64-3.7/src/lxml
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include/libxml2 -Isrc -Isrc/lxml/includes -I/usr/include/python3.7m -c src/lxml/etree.c -o build/temp.linux-x86_64-3.7/src/lxml/etree.o -w
  src/lxml/etree.c:105:10: fatal error: Python.h: Tiedostoa tai hakemistoa ei ole
   #include "Python.h"
            ^~~~~~~~~~
  compilation terminated.
  Compile failed: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  creating tmp
  cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInitrsx1zd4h.c -o tmp/xmlXPathInitrsx1zd4h.o
  cc tmp/xmlXPathInitrsx1zd4h.o -lxml2 -o a.out
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Illu

  • Käyttäjä
  • Viestejä: 1089
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #15 : 23.07.24 - klo:15.20 »
Jatkoa edelliseen:

Koodia: [Valitse]
  ----------------------------------------
  Failed building wheel for lxml
  Running setup.py clean for lxml
Failed to build lxml
Installing collected packages: charset-normalizer, urllib3, certifi, idna, requests, ConfigArgParse, lxml, yle-dl
  Running setup.py install for lxml ... error
    Complete output from command /usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-wgoonw8v/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-llzjzta_-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    Building lxml version 5.2.2.
    Building without Cython.
    Building against libxml2 2.9.4 and libxslt 1.1.29
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/doctestcompare.py -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/builder.py -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/pyclasslookup.py -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/usedoctest.py -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/sax.py -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/_elementpath.py -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/cssselect.py -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/ElementInclude.py -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/__init__.py -> build/lib.linux-x86_64-3.7/lxml
    creating build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/__init__.py -> build/lib.linux-x86_64-3.7/lxml/includes
    creating build/lib.linux-x86_64-3.7/lxml/html
    copying src/lxml/html/builder.py -> build/lib.linux-x86_64-3.7/lxml/html
    copying src/lxml/html/ElementSoup.py -> build/lib.linux-x86_64-3.7/lxml/html
    copying src/lxml/html/soupparser.py -> build/lib.linux-x86_64-3.7/lxml/html
    copying src/lxml/html/diff.py -> build/lib.linux-x86_64-3.7/lxml/html
    copying src/lxml/html/_setmixin.py -> build/lib.linux-x86_64-3.7/lxml/html
    copying src/lxml/html/usedoctest.py -> build/lib.linux-x86_64-3.7/lxml/html
    copying src/lxml/html/_diffcommand.py -> build/lib.linux-x86_64-3.7/lxml/html
    copying src/lxml/html/clean.py -> build/lib.linux-x86_64-3.7/lxml/html
    copying src/lxml/html/_html5builder.py -> build/lib.linux-x86_64-3.7/lxml/html
    copying src/lxml/html/formfill.py -> build/lib.linux-x86_64-3.7/lxml/html
    copying src/lxml/html/html5parser.py -> build/lib.linux-x86_64-3.7/lxml/html
    copying src/lxml/html/defs.py -> build/lib.linux-x86_64-3.7/lxml/html
    copying src/lxml/html/__init__.py -> build/lib.linux-x86_64-3.7/lxml/html
    creating build/lib.linux-x86_64-3.7/lxml/isoschematron
    copying src/lxml/isoschematron/__init__.py -> build/lib.linux-x86_64-3.7/lxml/isoschematron
    copying src/lxml/etree.h -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/etree_api.h -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/lxml.etree.h -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/lxml.etree_api.h -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/etree.pyx -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/objectify.pyx -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/xsltext.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/public-api.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/parsertarget.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/nsclasses.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/debug.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/xinclude.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/docloader.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/dtd.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/serializer.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/extensions.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/parser.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/cleanup.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/classlookup.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/xpath.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/readonlytree.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/objectpath.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/xslt.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/iterparse.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/schematron.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/xmlschema.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/apihelpers.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/proxy.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/xmlerror.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/xmlid.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/saxparser.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/relaxng.pxi -> build/lib.linux-x86_64-3.7/lxml
    copying src/lxml/includes/tree.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/relaxng.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/xinclude.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/__init__.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/xpath.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/config.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/xslt.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/schematron.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/c14n.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/uri.pxd -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-3.7/lxml/includes
    copying src/lxml/includes/etree_defs.h -> build/lib.linux-x86_64-3.7/lxml/includes
    creating build/lib.linux-x86_64-3.7/lxml/isoschematron/resources
    creating build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/rng
    copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/rng
    creating build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl
    copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl
    copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl
    creating build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    running build_ext
    building 'lxml.etree' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/src
    creating build/temp.linux-x86_64-3.7/src/lxml
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include/libxml2 -Isrc -Isrc/lxml/includes -I/usr/include/python3.7m -c src/lxml/etree.c -o build/temp.linux-x86_64-3.7/src/lxml/etree.o -w
    src/lxml/etree.c:105:10: fatal error: Python.h: Tiedostoa tai hakemistoa ei ole
     #include "Python.h"
              ^~~~~~~~~~
    compilation terminated.
    Compile failed: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInity296sw9w.c -o tmp/xmlXPathInity296sw9w.o
    cc tmp/xmlXPathInity296sw9w.o -lxml2 -o a.out
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
   
    ----------------------------------------
Command "/usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-wgoonw8v/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-llzjzta_-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-wgoonw8v/lxml/

Illu

  • Käyttäjä
  • Viestejä: 1089
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #16 : 23.07.24 - klo:15.20 »
Ja lopputulos:

Koodia: [Valitse]
ilkka@kotikone:~$ yle-dl
yle-dl: komentoa ei löytynyt

Cultor

  • Käyttäjä
  • Viestejä: 177
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #17 : 23.07.24 - klo:16.51 »
Tuota olen itsekin päätellyt, kun asennusohjeissa edellytetään vähintään versiota 3.7.

Asennuksen jälkeen
Koodia: [Valitse]
ilkka@kotikone:~$ python3.7 --version
Python 3.7.5

Tuo ei minulla siis riitä, vaan asennus on jumittunut vanhempaan yle-dl versioon.
Testaa:
Koodia: [Valitse]
python3 -V
Onko vastaus 'Python 3.6.9'?

Katso https://dev.to/serhatteker/how-to-upgrade-to-python-3-7-on-ubuntu-18-04-18-10-5hab

nm

  • Käyttäjä
  • Viestejä: 16430
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #18 : 23.07.24 - klo:16.54 »
Koodia: [Valitse]
  src/lxml/etree.c:105:10: fatal error: Python.h: Tiedostoa tai hakemistoa ei ole
   #include "Python.h"
            ^~~~~~~~~~
  compilation terminated.

Python 3.7:n headerit puuttuvat. Asenna paketti python3.7-dev:

Koodia: [Valitse]
sudo apt install python3.7-dev
Sitten uusi yritys.

Illu

  • Käyttäjä
  • Viestejä: 1089
    • Profiili
Vs: yle-dl ei lataa ohjelmaa eikä päivity
« Vastaus #19 : 23.07.24 - klo:18.32 »
Tuota olen itsekin päätellyt, kun asennusohjeissa edellytetään vähintään versiota 3.7.

Asennuksen jälkeen
Koodia: [Valitse]
ilkka@kotikone:~$ python3.7 --version
Python 3.7.5

Tuo ei minulla siis riitä, vaan asennus on jumittunut vanhempaan yle-dl versioon.
Testaa:
Koodia: [Valitse]
python3 -V
Onko vastaus 'Python 3.6.9'?

Katso https://dev.to/serhatteker/how-to-upgrade-to-python-3-7-on-ubuntu-18-04-18-10-5hab

Viittaamasi linkin mukaisesti toimien toimii nyt myös yle-dl ja lataa Areenalta. Asiasta ymmärtämättömänä noudatin ohjetta "/usr/bin/python3 is just a symlink. Delete it and make a new symlink to python3.7:"

Vaikuttaa siis siltä, että olin jumissa vanhaan pythonin versioon, vaikka uusin oli asentunut?