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

PyError: module 'sys' has no attribute 'argv' #184

Closed
coldcodefire opened this issue Jan 28, 2023 · 2 comments
Closed

PyError: module 'sys' has no attribute 'argv' #184

coldcodefire opened this issue Jan 28, 2023 · 2 comments
Assignees

Comments

@coldcodefire
Copy link

when performing "codon run mycode.py" which is an application based on flask, and flask depends on werkzeug module, in werkzeug, "sys.argv[0]" was read to determine how the scripts was performed. but unforunately, seems sys module in codon has no argc and argv like normal python env. appreciate for any help.

Thanks

@inumanag
Copy link
Contributor

@coldcodefire

Codon does not (yet) export sys.argv with Python bridge.

Also, if you are using Flask---which uses lots of features we don't yet support---I'd suggest using @codon decorator to speed-up the specific bottlenecks instead of running the whole thing via Codon. Just running stuff with Codon won't bring the speed-ups if the library of interest is invoked via Python bridge.

@inumanag
Copy link
Contributor

Merging into #608 .

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

2 participants