Open sbellem opened 4 years ago
Re-opening as the problem still occurs when the project is not installed in development/editable mode, which means without the --editable
or -e
option with pip
for instance. In other words, if the project is installed with pip install .
or python setup.py install
the problem will happen.
To properly resolve the issue, we should look into putting the logging config file under the home directory such as ~/.hbmpc/logging.yml
or ~/.config/hbmpc/logging.yml
. This means that when the project is installed (via pip
for instance), the config file would get copied to a chosen location, such as ~/.config/hbmpc/logging.yml
.
If that is not too much work, it may perhaps be worthwhile to have a general config file, e.g.: ~/.hbmpc/config.yml
which contains the logging configuration as well as other configurable elements.
This happens when trying to build the docs but could probably happen in other contexts as the problem stems from:
https://github.com/initc3/HoneyBadgerMPC/blob/6aec65f9a1e430316077bc98d548bda42571b4b3/honeybadgermpc/__init__.py#L10
Error trace when building the docs:
This can be fixed by specifying a path with respect to the module (file) the code is in: