May-27-2020, 06:06 AM
May-27-2020, 06:17 AM
do you have more than one python version installed?
May-27-2020, 08:44 AM
(May-27-2020, 06:17 AM)buran Wrote: [ -> ]do you have more than one python version installed?
No
May-27-2020, 09:38 AM
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:InstallationHere is a run so you can learn to use virtual environment,fine for cases like this to figure out what's going on.
You can download this repository from GitHub, or grab it from PyPI:
$ pip install gallery_get
# Make E:\div_code λ python -m venv gallery_env # cd in E:\div_code λ cd gallery_env\ # Activate E:\div_code\gallery_env λ E:\div_code\gallery_env\Scripts\activate # Install (gallery_env) E:\div_code\gallery_env λ pip install gallery-get Collecting gallery-get Downloading ..... Successfully installed gallery-get-1.8.14So at this point nothing work as mention over.
# Clone Repo (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. # cd in (gallery_env) E:\div_code\gallery_env λ cd gallery_get\ # List files (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 # Use (gallery_env) E:\div_code\gallery_env\gallery_get (master) λ python gallery_get.py Input URL: https://boards.4channel.org.....something
May-27-2020, 11:09 AM
(May-27-2020, 09:38 AM)snippsat Wrote: [ -> ]gallery_get there noStill Not workingsetup.py
(needed byepip
),so this Installation instruction is no correct as most download or clone Repo for it to work.
gallery_get Wrote:InstallationHere is a run so you can learn to use virtual environment,fine for cases like this to figure out what's going on.
You can download this repository from GitHub, or grab it from PyPI:
$ pip install gallery_get
# Make E:\div_code λ python -m venv gallery_env # cd in E:\div_code λ cd gallery_env\ # Activate E:\div_code\gallery_env λ E:\div_code\gallery_env\Scripts\activate # Install (gallery_env) E:\div_code\gallery_env λ pip install gallery-get Collecting gallery-get Downloading ..... Successfully installed gallery-get-1.8.14So at this point nothing work as mention over.
# Clone Repo (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. # cd in (gallery_env) E:\div_code\gallery_env λ cd gallery_get\ # List files (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 # Use (gallery_env) E:\div_code\gallery_env\gallery_get (master) λ python gallery_get.py Input URL: https://boards.4channel.org.....something
May-27-2020, 11:25 AM
(May-27-2020, 11:09 AM)Evil_Patrick Wrote: [ -> ]Still Not workingWhat 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.
git clone https://github.com/regosen/gallery_get.gitThen
cd
into gallery_get
folder,and do python gallery_get.py
.Just to be clear what i showed do work.
(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 .....
May-27-2020, 11:25 AM
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.
May-27-2020, 11:40 AM
It's not showing in Installed Modules
![[Image: Gt2.png]](https://i.postimg.cc/VsKDy7W3/Gt2.png)
![[Image: Gt2.png]](https://i.postimg.cc/VsKDy7W3/Gt2.png)
May-27-2020, 12:05 PM
(May-27-2020, 11:40 AM)Evil_Patrick Wrote: [ -> ]It's not showing in Installed ModulesLook 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
.pip install gallery-get git clone https://github.com/regosen/gallery_get.git # Then <cd> into <gallery_get> folder,and do <python gallery_get.py>.
May-27-2020, 03:45 PM
(May-27-2020, 12:05 PM)snippsat Wrote: [ -> ](May-27-2020, 11:40 AM)Evil_Patrick Wrote: [ -> ]It's not showing in Installed ModulesLook at Repo there is nosetup.py
thatpip
need.
Maybe at one time he had asetup.py
,but not now.
So to make it very clear it will not work with just doing thispip install gallery-get
.
pip install gallery-get git clone https://github.com/regosen/gallery_get.git # Then <cd> into <gallery_get> folder,and do <python gallery_get.py>.
Ok thank you so much for that