DTOcean / dtocean

Download the DTOcean installation wizard, get help and report issues here.
GNU General Public License v3.0
4 stars 6 forks source link

Variable File Manager: An AttributeError occurred: 'NoneType, object has no attribute 'keys' when saving (DTOcean 2.0's oldest bug) #37

Closed KD379 closed 1 year ago

KD379 commented 3 years ago

Describe the bug An AttributeError occurred: 'NoneType, object has no attribute 'keys' This error pops up whenever I try to save outputs

To Reproduce Steps to reproduce the behaviour:

  1. Go to Results
  2. Go to 'variable file manager' for any results you want to save (save is already selected, load is not an option)
  3. Click ellipsis (...) next to file path
  4. See error 2020-12-08 15:39:54,483 - CRITICAL - dtocean_app.main - An AttributeError occurred: 'NoneType' object has no attribute 'keys' 2020-12-08 15:39:54,484 - CRITICAL - dtocean_app.main - File "C:\Users\k-e-d\DTOcean\lib\site-packages\dtocean_app\widgets\central.py", line 305, in _set_path valid_exts = self._load_ext_dict.keys()

Expected behaviour (if any) Expected to be able to save files in .csv format

Screenshots Screenshot 2020-12-08 154305

Version (please complete the following information):

H0R5E commented 3 years ago

Hi @KD379, you have discovered the oldest bug in DTOcean 2.0. You can fix it by replacing the file at:

C:\Users\k-e-d\DTOcean\lib\site-packages\dtocean_app\widgets\central.py

with the file in the attached zip.

central.zip

KD379 commented 3 years ago

Hi again @H0R5E. That works perfectly now, thanks!