Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to setup the environment to run the code #32

Open
Dhandeep10 opened this issue Sep 17, 2023 · 4 comments
Open

Not able to setup the environment to run the code #32

Dhandeep10 opened this issue Sep 17, 2023 · 4 comments

Comments

@Dhandeep10
Copy link

After completing all the steps in README file, and troubleshooting some things by my self. I got the following error while running "python main.py" in terminal

NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
  warnings.warn(
Traceback (most recent call last):
  File "/Users/dhandeepsingh/Desktop/instagraph/main.py", line 5, in <module>
    from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'

How to fix this issue??

@admalekar
Copy link

Seems like the beautifulsoup4 package was not installed. You can pip install the requirements again and check if beautifulsoup4 is installed.

It would be better if we create a virtualenv for the dependencies.

@yoheinakajima I can update the readme to add steps for creating a virtualenv if you would like.

@Dhandeep10
Copy link
Author

I tried installing, but it said that it is already installed.
So any other help?

@Tayyab-R
Copy link

Seems like the beautifulsoup4 package was not installed. You can pip install the requirements again and check if beautifulsoup4 is installed.

It would be better if we create a virtualenv for the dependencies.

@yoheinakajima I can update the readme to add steps for creating a virtualenv if you would like.

yes a virtual env would be better. Give it a try hope it will solve the issue.

@admalekar
Copy link

@Dhandeep10 Try this steps if you are on windows:

git clone https://github.com/yoheinakajima/instagraph.git
cd instagraph
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
python main.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants