Thank you for your kind answer.
Yes I've already had the environment file on my Mac. I've tried anyway to remove and create again the conda environment following the steps in the video but it gave me the same error.
I tried to install an older version of pyutilib and now the error has changed (see below), but I'm truly going with guesses right now so I'm not sure if I have made improvements or instead worsened the situation.
(temoa-py3) (venv) Air-di-Giulia:temoa-energysystem giuliapezzin$ python temoa_model/ --config=temoa_model/config_sample
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/giuliapezzin/documenti2/temoa-energysystem/temoa_model/__main__.py", line 28, in <module>
from temoa_model import *
File "/Users/giuliapezzin/documenti2/temoa-energysystem/temoa_model/temoa_model.py", line 26, in <module>
from temoa_run import *
File "/Users/giuliapezzin/documenti2/temoa-energysystem/temoa_model/temoa_run.py", line 29, in <module>
from pyomo.environ import *
File "/Users/giuliapezzin/PycharmProjects/pythonProject/venv/lib/python3.9/site-packages/pyomo/environ/__init__.py", line 103, in <module>
_import_packages()
File "/Users/giuliapezzin/PycharmProjects/pythonProject/venv/lib/python3.9/site-packages/pyomo/environ/__init__.py", line 89, in _import_packages
pkg.load()
File "/Users/giuliapezzin/PycharmProjects/pythonProject/venv/lib/python3.9/site-packages/pyomo/dataportal/plugins/__init__.py", line 21, in load
import pyomo.dataportal.plugins.sheet
File "/Users/giuliapezzin/PycharmProjects/pythonProject/venv/lib/python3.9/site-packages/pyomo/dataportal/plugins/sheet.py", line 21, in <module>
from pyutilib.excel.spreadsheet import ExcelSpreadsheet, Interfaces
ImportError: cannot import name 'Interfaces' from 'pyutilib.excel.spreadsheet' (/Users/giuliapezzin/PycharmProjects/pythonProject/venv/lib/python3.9/site-packages/pyutilib/excel/spreadsheet.py)
Thank you again for your time.
Giulia Pezzin