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

Unexpected error: <class 'AttributeError'> #7

Open
MattGFFI opened this issue Aug 3, 2023 · 1 comment
Open

Unexpected error: <class 'AttributeError'> #7

MattGFFI opened this issue Aug 3, 2023 · 1 comment

Comments

@MattGFFI
Copy link

MattGFFI commented Aug 3, 2023

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
Copy link

onurdogan commented Sep 30, 2023

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:

  • /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/apscale_gui/settings_file.py
  • /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/taxontabletools/taxon_table_filtering.py

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

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