Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

pip install fails #54

Closed
nuggetsnetwork opened this issue Dec 19, 2021 · 5 comments
Closed

pip install fails #54

nuggetsnetwork opened this issue Dec 19, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@nuggetsnetwork
Copy link

Describe the bug
Unable to install udemyscraper via pip install

To Reproduce
ERROR: Cannot install udemyscraper==0.8.1 and udemyscraper==0.8.2 because these package versions have conflicting dependencies.

The conflict is caused by:
udemyscraper 0.8.2 depends on getopt2==0.0.3
udemyscraper 0.8.1 depends on getopt2==0.0.3

Desktop (please complete the following information):

  • OS: MAC OS
@nuggetsnetwork nuggetsnetwork added the bug Something isn't working label Dec 19, 2021
@sortedcord
Copy link
Owner

It is probably because of two conflicting versions. Try uninstalling udemyscraper (version 0.8.1)

pip uninstall udemyscraper

Then try cloning the source code and then installing that directly

git clone https://github.com/sortedcord/udemyscraper.git
cd udemyscraper
pip install -e .[dev]

@nuggetsnetwork
Copy link
Author

It is probably because of two conflicting versions. Try uninstalling udemyscraper (version 0.8.1)

pip uninstall udemyscraper

Then try cloning the source code and then installing that directly

git clone https://github.com/sortedcord/udemyscraper.git
cd udemyscraper
pip install -e .[dev]

Infact none have got installed. So I dont have any package installed. The first instance of running it just throws me this error.
Running pip uninstall udemyscraper gives me warning that its not installed.

I have cloned as suggested. and when running pip install -e .[dev] gives me error no matches found: .[dev]
Sorry I might be a novice in doing this.

@nuggetsnetwork
Copy link
Author

I just went ahead and tried below instead of pip install -e .[dev]
I ran python setup.py and I am getting below errors for getopt2 which might indicate similar error we got while installing via pip install udemyscraper

Searching for getopt2==0.0.3
Reading https://pypi.org/simple/getopt2/
Couldn't find index page for 'getopt2' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
No local packages or working download links found for getopt2==0.0.3
error: Could not find suitable distribution for Requirement.parse('getopt2==0.0.3')

@sortedcord
Copy link
Owner

sortedcord commented Dec 19, 2021

Well, I should have seen this coming... The getopt2 library isn't actually used by udemyscraper anymore. I'll remove that from the dependencies. Then maybe you wouldn't get this error anymore...
install
As you can see it now works without issues. It should be the same for mac os

@nuggetsnetwork
Copy link
Author

Thank you that resolves the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants