Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTP works perfectly on Windows when executed with 'python.exe', but not when compiled with cx_Freeze #113

Open
csiebert007 opened this issue Dec 2, 2023 · 0 comments

Comments

@csiebert007
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant