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

Issue regarding target python #2310

Closed
chauncygu opened this issue Jun 4, 2024 · 1 comment · Fixed by #2312
Closed

Issue regarding target python #2310

chauncygu opened this issue Jun 4, 2024 · 1 comment · Fixed by #2312

Comments

@chauncygu
Copy link

chauncygu commented Jun 4, 2024

When I finished generated code and ran Python code with python /Users/shangding/Documents/mycode/lingua_franca/test_program/src-gen/first_reactor/first_reactor.py, It happens errors:
Traceback (most recent call last): File "/Users/shangding/Documents/mycode/lingua_franca/test_program/src-gen/first_reactor/first_reactor.py", line 7, in <module> from LinguaFrancafirst_reactor import ( SystemError: initialization of LinguaFrancafirst_reactor did not return an extension module

The source code within first_reactor.lf is as follows:

`target Python

main reactor {
reaction(startup) {=
print("Hello World.")
=}
}`

On my laptop, C can work well, but Python has the above issue.

@edwardalee
Copy link
Collaborator

This is the same issue as #2298. We really need to revert the change referenced there.

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

Successfully merging a pull request may close this issue.

2 participants