lf-lang / lingua-franca

Intuitive concurrent programming in any language
https://www.lf-lang.org
Other
234 stars 62 forks source link

Issue regarding target python #2310

Closed chauncygu closed 3 months ago

chauncygu commented 3 months ago

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 commented 3 months ago

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