Hello,
I have been trying to run this framework using :
python3 auto_create_verilog.py --prompt="./verilogeval_prompts_tbs/validation_set/circuit4/circuit4.sv" --name="top_module1" --testbench="./verilogeval_prompts_tbs/validation_set/circuit4/circuit4_tb.sv" --outdir="sol.txt" --log="log.txt" --model-family=ChatGPT --model-id=gpt-4o
However, I get a circular import error due to some import dependency
File "/AutoChip/autochip_scripts/auto_create_verilog.py", line 3, in <module> import languagemodels as lm File "/AutoChip/autochip_scripts/languagemodels.py", line 28, in <module> import verilog_handling as vh File "/AutoChip/autochip_scripts/verilog_handling.py", line 13, in <module> def compile_iverilog(outdir,module,compiler_cmd,response:lm.LLMResponse): AttributeError: partially initialized module 'languagemodels' has no attribute 'LLMResponse' (most likely due to a circular import)
Is there a way around this error without having to restructure the code/imports?
Hello,
I have been trying to run this framework using :
python3 auto_create_verilog.py --prompt="./verilogeval_prompts_tbs/validation_set/circuit4/circuit4.sv" --name="top_module1" --testbench="./verilogeval_prompts_tbs/validation_set/circuit4/circuit4_tb.sv" --outdir="sol.txt" --log="log.txt" --model-family=ChatGPT --model-id=gpt-4oHowever, I get a circular import error due to some import dependency
File "/AutoChip/autochip_scripts/auto_create_verilog.py", line 3, in <module> import languagemodels as lm File "/AutoChip/autochip_scripts/languagemodels.py", line 28, in <module> import verilog_handling as vh File "/AutoChip/autochip_scripts/verilog_handling.py", line 13, in <module> def compile_iverilog(outdir,module,compiler_cmd,response:lm.LLMResponse): AttributeError: partially initialized module 'languagemodels' has no attribute 'LLMResponse' (most likely due to a circular import)Is there a way around this error without having to restructure the code/imports?