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

getting top / bottom movies doesn't work. #489

Open
TheSkeward opened this issue Nov 13, 2023 · 7 comments
Open

getting top / bottom movies doesn't work. #489

TheSkeward opened this issue Nov 13, 2023 · 7 comments

Comments

@TheSkeward
Copy link

Issue description

the get_top250_movies(), get_bottom100_movies(), get_top250_tv, and get_popular100_movies all return an empty list.

Version of Cinemagoer, Python and OS

NOTICE: please always try the latest version from the repository before submitting a bug.

  • Python: Python 3.12
  • Cinemagoer: 2023.05.01
  • OS: `system='Windows', node='DESKTOP-PBIK3EG', release='11', version='10.0.22621', machine='AMD64'

Steps to reproduce the issue

if possible, provide a minimal code to reproduce the problem

import imdb

ia = imdb.Cinemagoer()
top = ia.get_top250_movies()
print(top[0])

What's the expected result?

  • the list of top 250 movies

What's the actual result?

  • IndexError: list index out of range
@matg010101
Copy link

To me, it works

print(top[0])
The Shawshank Redemption

Your version is not the latest, which is 2023.10.22

Update your package using

pip install --upgrade git+https://github.com/cinemagoer/cinemagoer

@NameLloyd14a
Copy link

It still doesn't work even with Version 2023.10.22

The output is an empty list

@amirroox
Copy link

I have the same problem

@uyar
Copy link
Collaborator

uyar commented Nov 26, 2023

It works for me too.

@NaThemis
Copy link

Same problem here. @matg010101 can you check the version you use please ? :) thanks !

Successfully installed cinemagoer-2023.10.22

@emremrah
Copy link

emremrah commented Dec 24, 2023

Are you sure there is a version named 2023.10.22?

ERROR: Could not find a version that satisfies the requirement cinemagoer==2023.10.22 (from versions: 2022.1.25, 2022.1.26, 2022.2.11, 2022.12.4, 2022.12.27, 2023.5.1)
ERROR: No matching distribution found for cinemagoer==2023.10.22

Edit: Weird that when you install it via pip install -U cinemagoer, there is no version named 2023.10.22. However, when you install it via pip install --upgrade git+https://github.com/cinemagoer/cinemagoer, it installs 2023.10.22.

@matg010101
Copy link

matg010101 commented Apr 23, 2024

from importlib.metadata import version

version('Cinemagoer')
Out[2]: '2023.10.22'

Maybe some dependancies are not satisfied. Here is what I have :

Requirement already satisfied: SQLAlchemy in c:\users\home\anaconda3\lib\site-packages (from cinemagoer==2023.10.22) (2.0.18)
Requirement already satisfied: lxml in c:\users\home\anaconda3\lib\site-packages (from cinemagoer==2023.10.22) (4.9.3)
Requirement already satisfied: typing-extensions>=4.2.0 in c:\users\home\anaconda3\lib\site-packages (from SQLAlchemy->cinemagoer==2023.10.22) (4.4.0)
Requirement already satisfied: greenlet!=0.4.17 in c:\users\home\anaconda3\lib\site-packages (from SQLAlchemy->cinemagoer==2023.10.22) (2.0.1)

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

7 participants