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
It was working fine 4 months back
Module not Installing
|
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
May-27-2020, 06:17 AM
do you have more than one python version installed?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link Create MCV example Debug small programs
May-27-2020, 08:44 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. # 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
(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 noStill Not working (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.
Regards
-------- * “Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.”
May-27-2020, 11:40 AM
It's not showing in Installed Modules
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 no Ok thank you so much for that |
|