The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Feb 5 21:03:22 2017 from fragator-pc
pi@raspberrypi:~ $ sudo chown pi « /media/pour coffre.mp4 » chown: changing ownership of ‹ /media/pour coffre.mp4 ›: Operation not permitted
pi@raspberrypi:~ $
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Feb 5 21:03:22 2017 from fragator-pc
pi@raspberrypi:~ $ sudo chown pi « /media/pour coffre.mp4 »
chown: changing ownership of ‹ /media/pour coffre.mp4 ›: Operation not permitted
pi@raspberrypi:~ $ sudo chmod 777 « /media/pour coffre.mp4 » pi@raspberrypi:~ $ ls -l /media total 419696 -rwxr-xr-x 1 root root 214880520 Jan 24 02:28 pour coffre.mp4 -rwxr-xr-x 1 root root 214880520 Feb 5 21:04 pourcoffre2.mp4
pi@raspberrypi:~ $
bon la on est bien emmerdé on va tenter ,sait ton jamais ,
un
sudo chmod 777 -R /media
ensuite
ls -l /media
en gros le probléme est que ta clée et bloqué en lecteur/écriture ,en faite c’est un beug qui survient quand on formate ces clée sur windows . si le chmod fonctionne on est bon
voici le resultat :
login as: pi pi@192.168.1.98’s password:
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Feb 5 21:03:22 2017 from fragator-pc
pi@raspberrypi:~ $ sudo chown pi « /media/pour coffre.mp4 »
chown: changing ownership of ‹ /media/pour coffre.mp4 ›: Operation not permitted
pi@raspberrypi:~ $ sudo chmod 777 « /media/pour coffre.mp4 »
pi@raspberrypi:~ $ ls -l /media
total 419696
-rwxr-xr-x 1 root root 214880520 Jan 24 02:28 pour coffre.mp4
-rwxr-xr-x 1 root root 214880520 Feb 5 21:04 pourcoffre2.mp4
pi@raspberrypi:~ $ sudo chmod 777 -R /media
pi@raspberrypi:~ $ ls -l /media
total 419696
-rwxr-xr-x 1 root root 214880520 Jan 24 02:28 pour coffre.mp4
-rwxr-xr-x 1 root root 214880520 Feb 5 21:04 pourcoffre2.mp4
pi@raspberrypi:~ $
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Feb 5 21:03:22 2017 from fragator-pc
pi@raspberrypi:~ $ sudo chown pi « /media/pour coffre.mp4 »
chown: changing ownership of ‹ /media/pour coffre.mp4 ›: Operation not permitted
pi@raspberrypi:~ $ sudo chmod 777 « /media/pour coffre.mp4 »
pi@raspberrypi:~ $ ls -l /media
total 419696
-rwxr-xr-x 1 root root 214880520 Jan 24 02:28 pour coffre.mp4
-rwxr-xr-x 1 root root 214880520 Feb 5 21:04 pourcoffre2.mp4
pi@raspberrypi:~ $ sudo chmod 777 -R /media
pi@raspberrypi:~ $ ls -l /media
total 419696
-rwxr-xr-x 1 root root 214880520 Jan 24 02:28 pour coffre.mp4
-rwxr-xr-x 1 root root 214880520 Feb 5 21:04 pourcoffre2.mp4
pi@raspberrypi:~ $ sudo mv « /media/pour coffre.mp4 » /home/pi/Videos pi@raspberrypi:~ $ ls /home/pi/Videos /home/pi/Videos
pi@raspberrypi:~ $
ci tu pense que c le formatage de windows, je peut essayer encore une autre clef usb en la formatant avec active partition manager
En remontant le fil de discussion j’ai vu tu avais posté le lien youtube de la vidéo ,
Je me suis dit eurêka,il suffit de télécharger la vidéo directement depuis le Pi .
en plus je connais un paquets qui fait l’affaire sur linux , youtube-dl qui un logiciel en ligne de commande pour récupérer les vidéo youtube (que j’utilise sur mon pc personnelle )
Sauf que youtube-dl n’existe pas sur PI car pas compatible avec ce type de processeur ,
il y a possibilité de l’installer mais il faut installer plusieur truc recompiler les source par curiosité tu peux jeter un œil HOWTO: YouTube on the Raspberry Pi - sans X B-) - Raspberry Pi Forums
donc le bordel pour un débutant ,
et résultat des course je t’ai écrit un script en python qui télécharges ta vidéo et qui te la mettra automatiquement dans /home/pi/videos
je viens le tester et il marche sur mon PC je le teste demain sur le PI et je te le fille
avec un petit tuto pour t’en servir ,car il faudra juste installer un outil pour installer les libs ,qui n’est pas sur le pi d’origine le tour sera jouer
P.S: tu n’auras pas besoin de tranférer le script juste en faire un copier coller dans la console
et il ferra le taf pour toi
@jojo
ouaaahh, tu va plus trop vite a bosser. moi, j en suis encore a " comment je v faire pour formater convenablement ma clef usb"
clairement, ci ton system fonctionne, cela me permettra de gagne un clef usb, qui me servira a un autre projet.
merci encore en tout qu a, pour ta rapidites d execution.
Je te dis sa demain ,par contre il faudra peut etre installer python car vu tu a jessie lite ,je c’est pas si tu a tout les éléments pour exécuter le script que je t’ai écris
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Feb 5 23:12:05 2017 from fragator-pc
pi@raspberrypi:~ $ python3
-bash: python3: command not found
pi@raspberrypi:~ $ python
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type « help », « copyright », « credits » or « license » for more information.
oui t’inquiète ,j’ai adapté le script pour python 2 ,j’ai fais les test la desus
On va faire la chose en 2 temps dans un premier temps on va installer tous se que tu aura besoin (oui vu tu est sur pixel lite ) et on lancera le script au porchain post quand tout sera installer ,si il a déja des composant qui sont installer tu t’en soucie pas (je c’est pas se que de basse est installer sur lite )
déja dans un 1er temps les outils
sudo apt-get install python-setuptools
ensuite pip qui te permettra d’intaller la lib pytub sans soucies
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Feb 7 21:38:16 2017
pi@raspberrypi:~ $ sudo apt-get install python-setuptools
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
python-pkg-resources
Suggested packages:
python-distribute python-distribute-doc
The following NEW packages will be installed:
python-pkg-resources python-setuptools
0 upgraded, 2 newly installed, 0 to remove and 72 not upgraded.
Need to get 306 kB of archives.
After this operation, 957 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 Index of /raspbian jessie/main python-pkg-resources all 5.5.1-1 [64.4 kB]
Get:2 Index of /raspbian jessie/main python-setuptools all 5.5.1-1 [242 kB]
Fetched 306 kB in 5s (58.6 kB/s)
Selecting previously unselected package python-pkg-resources.
(Reading database … 32514 files and directories currently installed.)
Preparing to unpack …/python-pkg-resources_5.5.1-1_all.deb …
Unpacking python-pkg-resources (5.5.1-1) …
Selecting previously unselected package python-setuptools.
Preparing to unpack …/python-setuptools_5.5.1-1_all.deb …
Unpacking python-setuptools (5.5.1-1) …
Setting up python-pkg-resources (5.5.1-1) …
Setting up python-setuptools (5.5.1-1) …
pi@raspberrypi:~ $ sudo apt-get install python-pip
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
python-chardet python-colorama python-distlib python-html5lib
python-ndg-httpsclient python-openssl python-pyasn1 python-requests
python-six python-urllib3 python-wheel
Suggested packages:
python-genshi python-lxml python-openssl-doc python-openssl-dbg doc-base
Recommended packages:
python-dev-all
The following NEW packages will be installed:
python-chardet python-colorama python-distlib python-html5lib
python-ndg-httpsclient python-openssl python-pip python-pyasn1
python-requests python-six python-urllib3 python-wheel
0 upgraded, 12 newly installed, 0 to remove and 72 not upgraded.
Need to get 903 kB of archives.
After this operation, 4084 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 Index of /raspbian jessie/main python-chardet all 2.3.0-1 [96.2 kB]
Get:2 Index of /raspbian jessie/main python-colorama all 0.3.2-1 [20.3 kB]
Get:3 Index of /raspbian jessie/main python-distlib all 0.1.9-1 [113 kB]
Get:4 Index of /raspbian jessie/main python-six all 1.8.0-1 [12.6 kB]
Get:5 Index of /raspbian jessie/main python-html5lib all 0.999-3 [84.0 kB]
Get:6 Index of /raspbian jessie/main python-openssl armhf 0.13.1-2 [85.5 kB]
Get:7 Index of /raspbian jessie/main python-ndg-httpsclient all 0.3.2-1 [20.5 kB]
Get:8 Index of /raspbian jessie/main python-urllib3 all 1.9.1-3 [55.4 kB]
Get:9 Index of /raspbian jessie/main python-requests all 2.4.3-6 [204 kB]
Get:10 Index of /raspbian jessie/main python-pip all 1.5.6-5 [114 kB]
Get:11 Index of /raspbian jessie/main python-pyasn1 all 0.1.7-1 [49.3 kB]
Get:12 Index of /raspbian jessie/main python-wheel all 0.24.0-1 [47.5 kB]
Fetched 903 kB in 14s (63.5 kB/s)
Selecting previously unselected package python-chardet.
(Reading database … 32616 files and directories currently installed.)
Preparing to unpack …/python-chardet_2.3.0-1_all.deb …
Unpacking python-chardet (2.3.0-1) …
Selecting previously unselected package python-colorama.
Preparing to unpack …/python-colorama_0.3.2-1_all.deb …
Unpacking python-colorama (0.3.2-1) …
Selecting previously unselected package python-distlib.
Preparing to unpack …/python-distlib_0.1.9-1_all.deb …
Unpacking python-distlib (0.1.9-1) …
Selecting previously unselected package python-six.
Preparing to unpack …/python-six_1.8.0-1_all.deb …
Unpacking python-six (1.8.0-1) …
Selecting previously unselected package python-html5lib.
Preparing to unpack …/python-html5lib_0.999-3_all.deb …
Unpacking python-html5lib (0.999-3) …
Selecting previously unselected package python-openssl.
Preparing to unpack …/python-openssl_0.13.1-2_armhf.deb …
Unpacking python-openssl (0.13.1-2) …
Selecting previously unselected package python-ndg-httpsclient.
Preparing to unpack …/python-ndg-httpsclient_0.3.2-1_all.deb …
Unpacking python-ndg-httpsclient (0.3.2-1) …
Selecting previously unselected package python-urllib3.
Preparing to unpack …/python-urllib3_1.9.1-3_all.deb …
Unpacking python-urllib3 (1.9.1-3) …
Selecting previously unselected package python-requests.
Preparing to unpack …/python-requests_2.4.3-6_all.deb …
Unpacking python-requests (2.4.3-6) …
Selecting previously unselected package python-pip.
Preparing to unpack …/python-pip_1.5.6-5_all.deb …
Unpacking python-pip (1.5.6-5) …
Selecting previously unselected package python-pyasn1.
Preparing to unpack …/python-pyasn1_0.1.7-1_all.deb …
Unpacking python-pyasn1 (0.1.7-1) …
Selecting previously unselected package python-wheel.
Preparing to unpack …/python-wheel_0.24.0-1_all.deb …
Unpacking python-wheel (0.24.0-1) …
Processing triggers for man-db (2.7.0.2-5) …
Setting up python-chardet (2.3.0-1) …
Setting up python-colorama (0.3.2-1) …
Setting up python-distlib (0.1.9-1) …
Setting up python-six (1.8.0-1) …
Setting up python-html5lib (0.999-3) …
Setting up python-openssl (0.13.1-2) …
Setting up python-ndg-httpsclient (0.3.2-1) …
Setting up python-urllib3 (1.9.1-3) …
Setting up python-requests (2.4.3-6) …
Setting up python-pip (1.5.6-5) …
Setting up python-pyasn1 (0.1.7-1) …
Setting up python-wheel (0.24.0-1) …
Processing triggers for python-support (1.0.15) …
pi@raspberrypi:~ $ sudo pip install pytube
Downloading/unpacking pytube
Downloading pytube-6.2.1-py2-none-any.whl
Installing collected packages: pytube
Successfully installed pytube
Cleaning up…
pi@raspberrypi:~ $
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Feb 7 21:38:52 2017 from fragator-pc
pi@raspberrypi:~ $ python
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type « help », « copyright », « credits » or « license » for more information.
from pytube import YouTube
lien = YouTube(« pour coffre - YouTube »)
video = lien.get(‹ mp4 ›, ‹ 720p ›)
video.download(‹ /home/pi/Videos/coffre.mp4 ›)
Traceback (most recent call last):
File « », line 1, in
File « /usr/local/lib/python2.7/dist-packages/pytube/models.py », line 88, in download
with open(path, ‹ wb ›) as dst_file:
IOError: [Errno 20] Not a directory: ‹ /home/pi/Videos/coffre.mp4 ›
exacte c’est de ma faute ,sa marche pas sur python
bon sinon ,pour le reste est se que tu peux taper le code ligne par ligne et dés que tu a un message tu me le signale , car je te garantie le code fonctionne sa dois venir de ton système(jessi lite ) et vu le message signale une errer de module je veux m’en assurer
Edit: en remontant j’ai vu sa [quote=« FR4G4TOR, post:76, topic:1629 »]
0 upgraded, 2 newly installed, 0 to remove and 72 not upgraded.
[/quote]
met a jour ton système avant de relancer le script
bon, j ai mis a jours mon system, et j ai taper le code ligne par ligne … et …toujours pareil…
je v tentais quelque chose, je suis occuper d installer jessi (classic) sur mon pi, histoire de voir ci c jessi lite qui pose probleme, ou bien autre chose.
ci ca marche chez toi, aucune raison que ca ne fonctionne pas ici…
je te tiens au jus.