tardis-sn / tardis

TARDIS - Temperature And Radiative Diffusion In Supernovae
https://tardis-sn.github.io/tardis
202 stars 404 forks source link

Unable to run tardis #2537

Closed officialasishkumar closed 6 months ago

officialasishkumar commented 8 months ago

Describe the bug I was trying to run tardis with memory profiler but I am getting an error.

Traceback (most recent call last):
  File "/home/charon/coding/random/profilers-test/memray/test1-without-changes/main.py", line 1, in <module>
    from tardis import run_tardis
  File "/home/charon/.local/lib/python3.10/site-packages/tardis/__init__.py", line 33, in <module>
    gi.require_version('GooCanvas', '2.0')
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 126, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GooCanvas not available

To Reproduce

from tardis import run_tardis

sim = run_tardis("tardis_example.yml",
                 virtual_packet_logging=True,
                 show_convergence_plots=True,
                 export_convergence_plots=True,
                 log_level="INFO")

# scalene --memory --reduced-profile main.py

I ran this main.py file with scalene and I am getting an error. Here is python3.10/site-packages/tardis/__init__.py: https://paste.opensuse.org/pastes/6affe585fbdb

Screenshots

System

Additional context

andrewfullard commented 8 months ago

ValueError: Namespace GooCanvas not available is not a TARDIS problem.