Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Module not Installing
#1
Why it showing this error ?
It was working fine 4 months back


[Image: get.png]
Reply
#2
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

Reply
#3
(May-27-2020, 06:17 AM)buran Wrote: do you have more than one python version installed?

No
Reply
#4
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.
# 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.14
So 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
Reply
#5
(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.
# 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.14
So 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
Still Not working
Reply
#6
(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.
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.
(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
.....
Reply
#7
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.”
Reply
#8
It's not showing in Installed Modules

[Image: Gt2.png]
Reply
#9
(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.
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>.
Reply
#10
(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.
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ERROR WHILE INSTALLING PLAYSOUND MODULE satwants33 2 1,042 Mar-23-2024, 12:50 PM
Last Post: Ritik2508
  Installing time module Led_Zeppelin 2 11,633 Aug-31-2021, 02:16 PM
Last Post: Led_Zeppelin
  Although this is a talib related Q it's mostly related to python module installing.. Evalias123 4 5,585 Jan-10-2021, 11:39 PM
Last Post: Evalias123
  Error after installing Python3.8.2: "No module named 'apt_pkg'" Chromie 3 3,823 Mar-09-2020, 08:20 PM
Last Post: micseydel
  Please help: problem installing/importing langdetect module in Jupyter Notebook ledgreve 3 7,188 Dec-30-2019, 08:17 AM
Last Post: LeanbridgeTech
  Could not build the ssl module while installing python3.7 from tar ball badfish 1 7,788 Dec-11-2018, 04:33 AM
Last Post: badfish
  Error when installing module tjnichols 2 5,295 May-13-2018, 04:51 PM
Last Post: tjnichols
  Installing pyperclip module Truman 5 17,929 Apr-29-2018, 03:29 PM
Last Post: snippsat
  Ubuntu: Error installing watson-developer-cloud Python module gio123 3 4,354 Mar-15-2018, 09:39 PM
Last Post: gio123
  Requests module not installing Rayquaza51120 16 23,153 Nov-09-2016, 12:26 AM
Last Post: Blue Dog

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020