SINTEF / Geomaker

4 stars 4 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\FooBar\\.config\\geomaker.toml' #61

Open arildj78 opened 1 year ago

arildj78 commented 1 year ago

After a fresh install, the software asks for an e-mail address on first launch. After supplying this, the program terminates with the following dump.

(env) C:\Users\FooBar\geomaker>geomaker
Sandboxing disabled by user.
Traceback (most recent call last):
  File "C:\Users\FooBar\geomaker\env\Scripts\geomaker-script.py", line 33, in <module>
    sys.exit(load_entry_point('GeoMaker==0.1', 'console_scripts', 'geomaker')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\FooBar\geomaker\env\Lib\site-packages\geomaker\__main__.py", line 893, in main
    gui = GUI()
          ^^^^^
  File "C:\Users\FooBar\geomaker\env\Lib\site-packages\geomaker\__main__.py", line 622, in __init__
    ConfigFile().verify(self)
  File "C:\Users\FooBar\geomaker\env\Lib\site-packages\geomaker\filesystem.py", line 89, in verify
    self['email'] = querier.query_str('E-mail address', 'E-mail:')
    ~~~~^^^^^^^^^
  File "C:\Users\FooBar\geomaker\env\Lib\site-packages\geomaker\filesystem.py", line 54, in __setitem__
    self.write()
  File "C:\Users\FooBar\geomaker\env\Lib\site-packages\geomaker\filesystem.py", line 63, in write
    with open(self.filename, 'w') as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\FooBar\\.config\\geomaker.toml'

Manually creating the folder C:\Users\FooBar\.config fixed my problem.