Skip to content

Error "AssertionError: Please specify a valid cinema path which contains main.html"

Sven Vogel edited this page Oct 25, 2022 · 4 revisions

Full error:

`Traceback (most recent call last):
  File "2_setup.py", line 140, in 
    MILK.cinema.main()
  File "/home/sven/MILK/MILK/cinema/cinema.py", line 45, in main
    assert html_path.is_file(), "Please specify a valid cinema path which contains main.html"
AssertionError: Please specify a valid cinema path which contains main.html

You may open the offended python code, /home/sven/MILK/MILK/cinema/cinema.py in this case, and navigate to line 45. You will see that the code tests whether the information provided as cinema path is actually a file, not a folder. That means you did not run

config_maud.py -pm /home/sven/Maud_2p996/ -pc /home/sven/cinema_debye_scherrer/main.html

with the paths to the Maud.sh (-pm only want the folder) and main.html (-pc wants to be pointed to the actual file). Run it, the you may have to deactivate the conda environment and reactivate, e.g.

conda deactivate
conda activate milk_sven

Still doesn't seem to do it. After this exercise, the variable is now

/home/sven/cinema_debye_scherrer/main.html/main.html

so twice with the main.html. So unclear how to set this properly...

Clone this wiki locally