Dear Dan
Curious, I tried to run the new version of etm.
> 1) Create a new data directory for the new etm, say ~/.etm-mv.
> 2) Clone the new version from github.
> 3) Open a terminal window, cd to the directory containing the clone and
> create a virtual environment there
>
> $ python3 -m venv env
> $ . env/bin/activate
In fact, I did `$ source env/bin/activate`.
> $ pip install -U -r requirements.txt
> $ python3 etm ~/.etm-mv
Unfortunately, I ran to problems installing `ujson` (just lack of `python3-dev`
package).
But it seems, that you use `ruamel.yaml` which misses in requirements.
$ python3 etm ~/.etm-mv
Traceback (most recent call last):
File "etm", line 18, in <module>
from etmMVC.model import setup_logging, logger, about
File "./etmMVC/model.py", line 9, in <module>
from ruamel.yaml import YAML
ModuleNotFoundError: No module named 'ruamel'
after `pip install -U ruamel.yaml`
I get another error:
$ python3 etm ~/.etm-mv
Traceback (most recent call last):
File "etm", line 67, in <module>
for x in expansions:
TypeError: 'NoneType' object is not iterable
so, I see, that `expansions` MUST be configured in `~/.etm-mv/cfg.yaml` file.
So, I've added your suggestion:
expansions:
tennis: @e 1h30m @a 30m: d @i personal:exercise
Now, I have:
$ python3 etm ~/.etm-mv
Traceback (most recent call last):
File "etm", line 43, in <module>
settings = options.Settings(etmdir).settings
...
File "./etm-mvc/env/lib/python3.6/site-packages/ruamel/yaml/scanner.py", line 1803, in _gather_comments
self.fetch_more_tokens()
File "./etm-mvc/env/lib/python3.6/site-packages/ruamel/yaml/scanner.py", line 321, in fetch_more_tokens
self.reader.get_mark(),
ruamel.yaml.scanner.ScannerError: while scanning for the next token
found character '@' that cannot start any token
in "/home/seba/.etm-mv/cfg.yaml", line 58, column 11
where `line 58, column 11` is the beginning of `@e` from ' tennis: @e 1h30m @a 30m: d @i personal:exercise'.
Changing the line to ' tennis: xxx' solves the problem and etm starts.
Tested on Ubuntu Linux, Python 3.6.7
I hope that my test will help.
Have a nice coding.
----
Sebastian