joshmoody24/sitcom-simulator

How to Fix it ?

KaiJia2017 opened this issue · 5 comments

Traceback (most recent call last):
File "G:\Miniconda3\lib\runpy.py", line 196, in run_module_as_main
return run_code(code, main_globals, None,
File "G:\Miniconda3\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "G:\Miniconda3\Scripts\sitcom-simulator.exe_main
.py", line 4, in
File "G:\Miniconda3\lib\site-packages\sitcom_simulator_init
.py", line 4, in
from .script_generator import write_script, script_from_file
File "G:\Miniconda3\lib\site-packages\sitcom_simulator\script_generator_init.py", line 1, in
from .script_generator import write_script, script_from_file
File "G:\Miniconda3\lib\site-packages\sitcom_simulator\script_generator\script_generator.py", line 5, in
from ..user_input import select_characters as debug_select_characters
File "G:\Miniconda3\lib\site-packages\sitcom_simulator\user_input.py", line 1, in
import tomllib
ModuleNotFoundError: No module named 'tomllib'

What version of python are you running? Sitcom Simulator requires >= 3.11
python --version

If you have to use an older version, I can look into making it compatible with older versions. Let me know :)

image
Yes,python version 3.11.5

The reason you can't pip install tomllib is because it is a built-in library in Python 3.11. It should automatically be available for use without having to install anything. I can't find any sources online where people have been unable to use it.

A few things to check:

  • Do you have multiple versions installed? Maybe they're not playing nicely together.
  • Are you using a virtual environment? If so, is it also using Python 3.11?

After that, my only other idea would be reinstalling python to see if that fixes it. Sorry it isn't working, I'll keep trying to help!

Thank you, I've fixed it

Awesome! Glad you got it working!