alexgand / springer_free_books

Python script to download all Springer books released for free during the 2020 COVID-19 quarantine
GNU General Public License v3.0
1.65k stars 367 forks source link

AttributeError: 'Int64Index' object has no attribute 'array' #76

Closed pingsutw closed 4 years ago

pingsutw commented 4 years ago

After ran python3 main.py -f ./books, I got the following error.

Traceback (most recent call last):
  File "main.py", line 70, in <module>
    books.index = [i + 2 for i in books.index.array]        # Recorrect indices
AttributeError: 'Int64Index' object has no attribute 'array'

python 3.7.5 ubuntu 19.10

sapcat7 commented 4 years ago

I had the same issue, use the requirements file in order to download all modules required: pip3 install -r requirements.txt After that python3 main.py worked for me

white-glider commented 4 years ago

Change line 70 in the main.py file to be: books.index = [i + 2 for i in books.index]

ebrillblaiddes commented 4 years ago

Had same problem, white-glider's suggestion

Change line 70 in the main.py file to be: books.index = [i + 2 for i in books.index]

worked for me and now I'm downloading a library.

alexgand commented 4 years ago

Corrected in the code, now it should work. Thanks!