sigvaldm / metaplot

Metadata-based plotting from CSV and similar files
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Error: can not find directory ".metaplot/plugins" #35

Open diakodarian opened 6 years ago

diakodarian commented 6 years ago

Metaplot is successfully installed as described in README, but the following error is encountered when attempting to use metaplot:

Traceback (most recent call last):
  File "/home/username/anaconda3/envs/fancy_env/bin/mpl", line 11, in <module>
    load_entry_point('metaplot', 'console_scripts', 'mpl')()
  File "/home/username/Documents/metaplot/metaplot/cli.py", line 96, in mpl
    df = DataFrame(f)
  File "/home/username/Documents/metaplot/metaplot/core.py", line 134, in __init__
    self._init_from_filename(arg)
  File "/home/username/Documents/metaplot/metaplot/core.py", line 142, in _init_from_filename
    self._init_from_file(file)
  File "/home/username/Documents/metaplot/metaplot/core.py", line 146, in _init_from_file
    reader = plugin_manager.get_reader(file)
  File "/home/username/Documents/metaplot/metaplot/api.py", line 139, in get_reader
    self.load_plugins()
  File "/home/username/Documents/metaplot/metaplot/api.py", line 131, in load_plugins
    for file in os.listdir(path):
FileNotFoundError: [Errno 2] No such file or directory: '/home/username/.metaplot/plugins'
sigvaldm commented 6 years ago

Temporary workaround: create the folder.

sigvaldm commented 6 years ago

While fixing this, this directory could also be made platform-independent by using the appdirs library.