Posts: 54
Threads: 21
Joined: Jul 2019
May-27-2020, 06:06 AM
(This post was last modified: May-27-2020, 06:07 AM by Evil_Patrick.)
Why it showing this error ?
It was working fine 4 months back
Posts: 8,167
Threads: 160
Joined: Sep 2016
do you have more than one python version installed?
Posts: 54
Threads: 21
Joined: Jul 2019
(May-27-2020, 06:17 AM)buran Wrote: do you have more than one python version installed?
No
Posts: 7,324
Threads: 123
Joined: Sep 2016
May-27-2020, 09:38 AM
(This post was last modified: May-27-2020, 09:39 AM by snippsat.)
gallery_get there no setup.py (needed bye pip ),so this Installation instruction is no correct as most download or clone Repo for it to work.
gallery_get Wrote:Installation
You can download this repository from GitHub, or grab it from PyPI:
$ pip install gallery_get Here is a run so you can learn to use virtual environment,fine for cases like this to figure out what's going on.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
E:\div_code
λ python - m venv gallery_env
E:\div_code
λ cd gallery_env\
E:\div_code\gallery_env
λ E:\div_code\gallery_env\Scripts\activate
(gallery_env) E:\div_code\gallery_env
λ pip install gallery - get
Collecting gallery - get
Downloading .....
Successfully installed gallery - get - 1.8 . 14
|
So at this point nothing work as mention over.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
(gallery_env) E:\div_code\gallery_env
λ git clone https: / / github.com / regosen / gallery_get.git
Cloning into 'gallery_get' ...
remote: Enumerating objects: 3 , done.
remote: Counting objects: 100 % ( 3 / 3 ), done.
remote: Compressing objects: 100 % ( 3 / 3 ), done.
Receiving objects: 94 % ( 430 / 457 ) mote: Total 457 (delta 0 ), reused 1 (delta 0 ), pack - reused 454
Receiving objects: 100 % ( 457 / 457 ), 104.75 KiB | 0 bytes / s, done.
Resolving deltas: 100 % ( 302 / 302 ), done.
Checking connectivity... done.
(gallery_env) E:\div_code\gallery_env
λ cd gallery_get\
(gallery_env) E:\div_code\gallery_env\gallery_get (master)
λ ls
LICENSE.txt gallery_get.py gallery_get_test_input.csv gallery_utils.py
README.md gallery_get_test.py gallery_plugins / reddit_get.py
(gallery_env) E:\div_code\gallery_env\gallery_get (master)
λ python gallery_get.py
Input URL: https: / / boards. 4channel .org.....something
|
Posts: 54
Threads: 21
Joined: Jul 2019
May-27-2020, 11:09 AM
(This post was last modified: May-27-2020, 11:09 AM by Evil_Patrick.)
(May-27-2020, 09:38 AM)snippsat Wrote: gallery_get there no setup.py (needed bye pip ),so this Installation instruction is no correct as most download or clone Repo for it to work.
gallery_get Wrote:Installation
You can download this repository from GitHub, or grab it from PyPI:
$ pip install gallery_get Here is a run so you can learn to use virtual environment,fine for cases like this to figure out what's going on.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
E:\div_code
λ python - m venv gallery_env
E:\div_code
λ cd gallery_env\
E:\div_code\gallery_env
λ E:\div_code\gallery_env\Scripts\activate
(gallery_env) E:\div_code\gallery_env
λ pip install gallery - get
Collecting gallery - get
Downloading .....
Successfully installed gallery - get - 1.8 . 14
|
So at this point nothing work as mention over.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
(gallery_env) E:\div_code\gallery_env
λ git clone https: / / github.com / regosen / gallery_get.git
Cloning into 'gallery_get' ...
remote: Enumerating objects: 3 , done.
remote: Counting objects: 100 % ( 3 / 3 ), done.
remote: Compressing objects: 100 % ( 3 / 3 ), done.
Receiving objects: 94 % ( 430 / 457 ) mote: Total 457 (delta 0 ), reused 1 (delta 0 ), pack - reused 454
Receiving objects: 100 % ( 457 / 457 ), 104.75 KiB | 0 bytes / s, done.
Resolving deltas: 100 % ( 302 / 302 ), done.
Checking connectivity... done.
(gallery_env) E:\div_code\gallery_env
λ cd gallery_get\
(gallery_env) E:\div_code\gallery_env\gallery_get (master)
λ ls
LICENSE.txt gallery_get.py gallery_get_test_input.csv gallery_utils.py
README.md gallery_get_test.py gallery_plugins / reddit_get.py
(gallery_env) E:\div_code\gallery_env\gallery_get (master)
λ python gallery_get.py
Input URL: https: / / boards. 4channel .org.....something
|
Still Not working
Posts: 7,324
Threads: 123
Joined: Sep 2016
May-27-2020, 11:25 AM
(This post was last modified: May-27-2020, 11:25 AM by snippsat.)
(May-27-2020, 11:09 AM)Evil_Patrick Wrote: Still Not working What shall this expatiation help with to know what you have done?
If not using virtual environment you most still clone/download Repo or it will not work.
1 |
git clone https: / / github.com / regosen / gallery_get.git
|
Then cd into gallery_get folder,and do python gallery_get.py .
Just to be clear what i showed do work.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
(gallery_env) E:\div_code\gallery_env\gallery_get (master)
λ python gallery_get.py
Input URL: https: / / boards. 4channel .org / c /
Destination (E:\div_code\gallery_env\gallery_get):
Using 4chan plugin...
gallery_get.py: 60 : DeprecationWarning: The unescape method is deprecated and will be removed in 3.5 , use html.unescape() instead.
name = html_parser.unescape(name)
http: / / i. 4cdn .org / c / 1590535555690.jpg - > E:\div_code\gallery_env\gallery_get\c board rules and guidelines\ 1590535555690.jpg
http: / / i. 4cdn .org / c / 1361677439762.jpg - > E:\div_code\gallery_env\gallery_get\c board rules and guidelines\ 1361677439762.jpg
http: / / i. 4cdn .org / c / 1588938122053.png - > E:\div_code\gallery_env\gallery_get\c board rules and guidelines\ 1588938122053.png
http: / / i. 4cdn .org / c / 1590554060972.png - > E:\div_code\gallery_env\gallery_get\c board rules and guidelines\ 1590554060972.png
http: / / i. 4cdn .org / c / 1590571035163.jpg - > E:\div_code\gallery_env\gallery_get\c board rules and guidelines\ 1590571035163.jpg
http: / / i. 4cdn .org / c / 1590485114974.jpg - > E:\div_code\gallery_env\gallery_get\c board rules and guidelines\ 15904
.....
|
Posts: 23
Threads: 0
Joined: May 2020
If I have not misread your first download it would appear that the package gallery_get has installed successfully gallery-get, but in your Gallery.py you are importing gallery_get which is not the package name - it is with a dash not an underscore and hence can not find the module. Do a pip --list to see if your gallery package is in your environment and then try gallery-get as your import.
Regards
-------- *
“Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.”
Posts: 54
Threads: 21
Joined: Jul 2019
It's not showing in Installed Modules
Posts: 7,324
Threads: 123
Joined: Sep 2016
(May-27-2020, 11:40 AM)Evil_Patrick Wrote: It's not showing in Installed Modules Look at Repo there is no setup.py that pip need.
Maybe at one time he had a setup.py ,but not now.
So to make it very clear it will not work with just doing this pip install gallery-get .
1 2 3 |
pip install gallery - get
git clone https: / / github.com / regosen / gallery_get.git
|
Posts: 54
Threads: 21
Joined: Jul 2019
(May-27-2020, 12:05 PM)snippsat Wrote: (May-27-2020, 11:40 AM)Evil_Patrick Wrote: It's not showing in Installed Modules Look at Repo there is no setup.py that pip need.
Maybe at one time he had a setup.py ,but not now.
So to make it very clear it will not work with just doing this pip install gallery-get .
1 2 3 |
pip install gallery - get
git clone https: / / github.com / regosen / gallery_get.git
|
Ok thank you so much for that
|