nunobrum / PyLTSpice

Set of tools to interact with LTSpice. See README file for more information.
https://www.nunobrum.com/pyltspice.html
GNU General Public License v3.0
207 stars 59 forks source link

example sim_runner_callback_example.py needs the "rich" module #136

Closed viisatadi closed 7 months ago

viisatadi commented 8 months ago

Given that the examples use this module, it should be an included requirement

Error message is:

python sim_runner_callback_example.py
Traceback (most recent call last):
  File "sim_runner_callback_example.py", line 3, in <module>
    from rich.logging import RichHandler
ModuleNotFoundError: No module named 'rich'
nunobrum commented 8 months ago

I'll probably remove this feature from the example on the next version. I prefer not to add yet another dependency. I'll close this issue when the next version is released.

nunobrum commented 7 months ago

The import rich has now a try: except ImportError: clause around it. If it is not found, then it is not used.