Closed AlexDo1 closed 1 year ago
Ok, this error is because the OS is executing the metacatalog
(without file extension) script. This script is missing the shebang, which I added here: https://github.com/VForWaTer/metacatalog/compare/master...fix-cli
I am not sure if the set path can be found on all systems. I see different avenues to take here:
python -m meta catalog -h
, which should work in any case.I guess I am fine with all options except 2. Would prefer 4, if it is not working with the updated file
BTW, this error message has nothing to do with the missing config.json
on installation. @AlexDo1 can you verify that there is no config.json when pip install meta catalog
? That is yet another issue
To try the updated file on the server or locally, we would have to create a new release on pip with the altered file to make pip install metacatalog
work, as pip install -e .
already works.
BTW, this error message has nothing to do with the missing
config.json
on installation. @AlexDo1 can you verify that there is no config.json whenpip install meta catalog
? That is yet another issue
For that I would have to remove my old config.json and see if a new one is created in the installation.
To try the updated file on the server or locally, we would have to create a new release on pip with the altered file to make
pip install metacatalog
work, aspip install -e .
already works.
That means the editable installation can call the metacatalog
CLI, but the normal install command not?
I can't find any difference in the two implementations. I can't see any quick fix here, no idea what the problem is.
In this case, we should deprecate the metacatalog
CLI and update the docs to always use python -m metacatalog
For that I would have to remove my old config.json and see if a new one is created in the installation.
Renaming the .metacatalog
folder to .metacatalog_save
or something would already be sufficient.
I just encountered the same bug we had with the installation of metacatalog on the server (see https://git.scc.kit.edu/vforwater/vforwater-docs-admin/-/blob/main/docs/jupyter.md#:~:text=Installation%20and%20usage%20of%20metacatalog), when trying to install metacatalog directly from pip:
pip install metacatalog
in a fresh conda environment.When trying to use the CLI, the error message is exactly the same as on the server:
Even though the file
/home/.metacatalog/config.json
exists on my PC (most probably from another metacatalog installation).When installing in development mode (
pip install -e .
), everything works fine.Jörg told me that he had the same problems when installing metacatalog on the server and locally.
@mmaelicke fyi