neuropoly / bibeasy

Set of tools to manage academic bibliography
Apache License 2.0
2 stars 0 forks source link

AttributeError: 'DataFrame' object has no attribute 'append'. Did you mean: '_append'? #21

Open jcohenadad opened 4 hours ago

jcohenadad commented 4 hours ago
julien-macbook:~ $ bibeasy 
Traceback (most recent call last):
  File "/Users/julien/miniconda3/bin/bibeasy", line 33, in <module>
    sys.exit(load_entry_point('bibeasy', 'console_scripts', 'bibeasy')())
  File "/Users/julien/code/bibeasy/bibeasy/scripts/bibeasy_cli.py", line 155, in main
    df_csv = gsheet_to_df(args)
  File "/Users/julien/code/bibeasy/bibeasy/gsheet.py", line 116, in gsheet_to_df
    df_csv = fetch_gsheet_contents(args.type)
  File "/Users/julien/code/bibeasy/bibeasy/gsheet.py", line 69, in fetch_gsheet_contents
    df_csv = df_csv.append((df_tmp), sort=False)
  File "/Users/julien/miniconda3/lib/python3.10/site-packages/pandas/core/generic.py", line 6299, in __getattr__
    return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'append'. Did you mean: '_append'?
jcohenadad commented 4 hours ago

ah! simply running bibeasy -h solves it!

we should make sure that calling bibeasy without any flag actually calls the help

jcohenadad commented 4 hours ago

ah! actually, using bibeasy does produce the same bug 😉

julien-macbook:~ $ bibeasy -x /Users/julien/Library/CloudStorage/GoogleDrive-julien.cohenadad@gmail.com/My\ Drive/Grants/20240707_NSERC-Discovery/CCV-98720.xml -i biblio.txt 
Traceback (most recent call last):
  File "/Users/julien/miniconda3/bin/bibeasy", line 33, in <module>
    sys.exit(load_entry_point('bibeasy', 'console_scripts', 'bibeasy')())
  File "/Users/julien/code/bibeasy/bibeasy/scripts/bibeasy_cli.py", line 145, in main
    df_ccv = xml_to_df(args.xml)
  File "/Users/julien/code/bibeasy/bibeasy/utils.py", line 276, in xml_to_df
    df_xml = df_xml.append({
  File "/Users/julien/miniconda3/lib/python3.10/site-packages/pandas/core/generic.py", line 6299, in __getattr__
    return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'append'. Did you mean: '_append'?