ssimunic / Daily-Reddit-Wallpaper

Change your wallpaper to the most upvoted image of the day from /r/wallpapers or any other subreddit on system startup
http://ssimunic.github.io/Daily-Reddit-Wallpaper/
GNU General Public License v3.0
306 stars 51 forks source link

Conflicts between Daily-Reddit-Wallpaper and update-checker #45

Open NeolithEra opened 5 years ago

NeolithEra commented 5 years ago

Hi, users are unable to run Daily-Reddit-Wallpaper due to dependency conflict with update-checker package. As shown in the following full dependency graph of Daily-Reddit-Wallpaper, it directly requires update-checker==0.11,while praw==5.4.0 requires update-checker>=0.16.

According to pip’s “first found wins” installation strategy, update-checker==0.11 is the actually installed version. However, update-checker==0.11 does not satisfy update-checker>=0.16.

Dependency tree

daily-reddit-wallpaper-master
| +-decorator(version range:==4.0.10)
| +-future(version range:==0.15.2)
| | +-argparse(version range:*)
| | +-importlib(version range:*)
| | +-unittest2(version range:*)
| +-praw(version range:==5.4.0)
| | +-prawcore(version range:<0.15,>=0.14.0)
| | | +-requests(version range:<3.0,>=2.6.0)
| | +-update-checker(version range:>=0.16)
| | | +-requests(version range:>=2.3.0)
| +-requests(version range:==2.10.0)
| +-six(version range:==1.10.0)
| +-update-checker(version range:==0.11)
| | +-requests(version range:>=2.3.0)

Thanks for your help. Best, Neolith

NeolithEra commented 5 years ago

Solution

  1. Fix your direct dependency to be update-checker>=0.16 . I have checked this revision will not affect your downstream projects now.
  2. Remove your direct dependency update-checker, and use update-checker transitively introduced by praw.

Which solution do you prefer, 1 or 2? @ssimunic Please let me know your choice. I can submit a PR to solve this issue.

Justinzobel commented 4 years ago

Any update on this?

Justinzobel commented 4 years ago

I take it this repository is abandoned, will look for a fork or alternate option.

Justinzobel commented 4 years ago

This version works https://github.com/markubiak/wallpaper-reddit

SmartPycg commented 2 years ago

ISSUES

Hi, users are unable to run Daily-Reddit-Wallpaper *due to dependency conflict with update-checker package.

As shown in the following full dependency graph of Daily-Reddit-Wallpaper\, it directly requires update-checker==0.11,while praw==5.4.0\ requires update-checker>=0.16.

daily-reddit-wallpaper-master
| +-decorator(version range:==4.0.10)
| +-future(version range:==0.15.2)
| | +-argparse(version range:*)
| | +-importlib(version range:*)
| | +-unittest2(version range:*)
| +-praw(version range:==5.4.0)
| | +-prawcore(version range:<0.15,>=0.14.0)
| | | +-requests(version range:<3.0,>=2.6.0)
| | +-update-checker(version range:>=0.16)
| | | +-requests(version range:>=2.3.0)
| +-requests(version range:==2.10.0)
| +-six(version range:==1.10.0)
| +-update-checker(version range:==0.11)
| | +-requests(version range:>=2.3.0)

Error

ERROR: Cannot install -r requirements.txt (line 3) and update-checker==0.11 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested update-checker==0.11
    praw 5.4.0 depends on update-checker>=0.16

Solution

We analyze your project according to the call graph, and now give you the following suggestion, loosen your direct dependency to be update-checker==* . I have checked that this version will not affect the normal operation of your program

Thanks for your help. Best, SmartPycg