-
Notifications
You must be signed in to change notification settings - Fork 67
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
Cannot resolve python imports #218
Comments
Use .pyj, not .py |
And how do I import standard python libraries that are installed by |
It is impossible, but you can try Transcrypt or Brython |
Is there a way to make script don't fail on missing imports? |
RS is mainly intended for writing Javascript using Python syntax, it is not compatible with Python, it just looks like Python, but it is javascript. So, explain in more detail what are you trying to do? |
I would like to convert python project to JS |
What does your project look like? Should it be running in a browser or on Node.js? If it is large enough, then it is better to take a look at Transcrypt, because to convert it to RS you have to fix each file yourself. There are some fundamental differences, such as Truthiness/Falseness: |
It is a python backend server with |
The compilation failed on importing local python module that exists in the same folder as the main file:
import config
The shown error is:
When I copied the
config.py
file into thesrc/lib
folder it didn't find it too.The text was updated successfully, but these errors were encountered: