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

pip install error #2

Open
samuelcombey opened this issue Sep 8, 2018 · 6 comments
Open

pip install error #2

samuelcombey opened this issue Sep 8, 2018 · 6 comments

Comments

@samuelcombey
Copy link

with open('requirements.txt') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1

@devilking15292
Copy link
Owner

devilking15292 commented Sep 8, 2018

Thanks for reporting the issue,

Can you kindly help me with the version of python you are currently working with

and also confirm that, it is the latest version of the package ?

@samuelcombey
Copy link
Author

Yes It's the latest version of pip tried using conda too didn't work both python 3.6

@devilking15292
Copy link
Owner

The issue seems to be with the packing of the distribution, the file requirements.txt
was not imported into the package.

This is fixed with the latest version, try installing the latest pkg IMDBAPI==1.0.2.

if you are having problems with version not available, kindly use the --no-cache-dir option.

pip install --no-cache-dir IMDBAPI==1.0.2

Thanks Again!

@samuelcombey
Copy link
Author

Fixed now

@samuelcombey
Copy link
Author

samuelcombey commented Sep 9, 2018

Tried your sample1.py this the error I've been getting

Traceback (most recent call last):
File ".../example/sample1.py", line 37, in
main()
File ".../sample1.py", line 19, in main
print("Director: "+ imdb.getDirector(movie))
File "...\Python\Python37\lib\site-packages\IMDBAPI_init_.py", line 66, in getDirector
return IMDB.getDirectorByImdbId(self, IMDB.getIdFromName(title))
File "...\Python\Python37\lib\site-packages\IMDBAPI_init_.py", line 70, in getDirectorByImdbId
return re.sub('\s+', '', IMDB.parseHTML(soup, 'span', 'itemprop', 'director').a.span.text)
AttributeError: 'NoneType' object has no attribute 'a'

@devilking15292
Copy link
Owner

The results of this API depends on the front end html given by the site,

it may fail if the class or id or the tag which identify particular data is changed.

In this case the tag which used to identify the director field is changed by the Site, hence it results in the error.

I'll suppress the error for now,
and will try to find away to identify the particular tag.

Note: The fix/any part of the code, may fail in the future given the change in the html.

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

2 participants