You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a big fan of the TTP module, however I ran into the following issue:
I'd like to use TTP in my script and compile it under Windows using cx_freeze.
However, I cannot find the reason why TTP behaves so strangely (compared to many other modules) when compiled.
See the trace below ...
FYI: I'm using Python win-amd64-3.9, ttp==0.9.5 and cx-Freeze==6.15.11
Any suggestion or help is appreciated!
Many thanks in advance!
Best regards,
Christoph
Traceback (most recent call last):
File "C:\Temp\TTT\Lib\site-packages\cx_Freeze\initscripts_startup_.py", line 124, in run
module_init.run(name + "main")
File "C:\Temp\TTT\Lib\site-packages\cx_Freeze\initscripts\console.py", line 16, in run
exec(code, module_main.dict)
File "C:\temp\TTT\bin\TTT.py", line 33911, in
sys.exit(main())
File "C:\temp\TTT\bin\TTT.py", line 3541, in main
DataDict = ProcessTTP(TableList, ttp_file, ArgOptionDict=ArgOptionDict, verbose_level=CliOpts.Verbose)
File "C:\temp\TTT\bin\TTT.py", line 23777, in ProcessTTP
ttp_parser = ttp(data=DataStr, template=TtpFile, log_level="DEBUG")
File "C:\Temp\TTT\lib\site-packages\ttp\ttp.py", line 246, in init
self.add_template(template=template)
File "C:\Temp\TTT\lib\site-packages\ttp\ttp.py", line 366, in add_template
items = self.ttp["utils"]["load_files"](path=template, read=True)
KeyError: 'utils'
The text was updated successfully, but these errors were encountered:
Hi!
I'm a big fan of the TTP module, however I ran into the following issue:
I'd like to use TTP in my script and compile it under Windows using cx_freeze.
However, I cannot find the reason why TTP behaves so strangely (compared to many other modules) when compiled.
See the trace below ...
FYI: I'm using Python win-amd64-3.9, ttp==0.9.5 and cx-Freeze==6.15.11
Any suggestion or help is appreciated!
Many thanks in advance!
Best regards,
Christoph
Traceback (most recent call last):
File "C:\Temp\TTT\Lib\site-packages\cx_Freeze\initscripts_startup_.py", line 124, in run
module_init.run(name + "main")
File "C:\Temp\TTT\Lib\site-packages\cx_Freeze\initscripts\console.py", line 16, in run
exec(code, module_main.dict)
File "C:\temp\TTT\bin\TTT.py", line 33911, in
sys.exit(main())
File "C:\temp\TTT\bin\TTT.py", line 3541, in main
DataDict = ProcessTTP(TableList, ttp_file, ArgOptionDict=ArgOptionDict, verbose_level=CliOpts.Verbose)
File "C:\temp\TTT\bin\TTT.py", line 23777, in ProcessTTP
ttp_parser = ttp(data=DataStr, template=TtpFile, log_level="DEBUG")
File "C:\Temp\TTT\lib\site-packages\ttp\ttp.py", line 246, in init
self.add_template(template=template)
File "C:\Temp\TTT\lib\site-packages\ttp\ttp.py", line 366, in add_template
items = self.ttp["utils"]["load_files"](path=template, read=True)
KeyError: 'utils'
The text was updated successfully, but these errors were encountered: