TillMacher / TaxonTableTools

TaxonTableTools - A comprehensive, platform-independent graphical user interface software to explore and visualise DNA metabarcoding data
https://pypi.org/project/taxontabletools/
MIT License
21 stars 3 forks source link

Unexpected error: <class 'AttributeError'> #7

Open MattGFFI opened 1 year ago

MattGFFI commented 1 year ago

Issue: Attempting to work through the tutorial using the tutorial files. However, whenever I reach try to merge replicates using the 'replicate consistency' function or use table filtering to extract Arthropods. I am met with the following message: "Unexpected error: <class 'AttributeError'>. Screenshot 2023-08-03 085351

onurdogan commented 1 year ago

Hi @MattGFFI and @TillMacher,

I also encountered the same error [1, 2] while running both "apscale_gui" and "TTT". However, my colleague recommended using writer.close() instead of writer.save() in the following files which resolved the issue:

Btw, downgrading the latest version of pandas might be an another solution.

best, Onur.

[1]:

  File "/usr/local/bin/apscale_gui", line 8, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/apscale_gui/__main__.py", line 534, in main
    apply_settings(settings_file, settings)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/apscale_gui/settings_file.py", line 77, in apply_settings
    writer.save()

AttributeError: 'XlsxWriter' object has no attribute 'save'

[2]:

  File "/Library/Frameworks/Python.framework/Versions/3.9/bin/taxontabletools", line 33, in <module>
    sys.exit(load_entry_point('taxontabletools==1.4.8', 'console_scripts', 'taxontabletools')())
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/taxontabletools/__main__.py", line 1460, in main
    taxon_filter(taxon_table_2_path, check_list, filter_taxonomic_level, appendix_name, threshold, path_to_outdirs, taxon_filter_method)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/taxontabletools/taxon_table_filtering.py", line 119, in taxon_filter
    writer.save()

AttributeError: 'XlsxWriter' object has no attribute 'save'

image image