Skip to content
New issue

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

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

Already on GitHub? # to your account

pscript not compatible with kivy #38

Open
manatlan opened this issue Aug 16, 2019 · 1 comment
Open

pscript not compatible with kivy #38

manatlan opened this issue Aug 16, 2019 · 1 comment

Comments

@manatlan
Copy link

Hi, first of all : I love pscript, and use it a lot in things like wuy/guy (https://github.com/manatlan/wuy). It let me build python component for vuejs ...

But I found a trouble that I can't bypass easily ...

You can't include "import pscript" in a kivy/buildozer android app.
This statement crash the kivy app when started on android. (with pscript included in buildozer specs, or pscript imported as pure python3)
I don't know why, and can't figure out how to spot the trouble (I don't know how to debug android kivy app)

It's not very important, because I'm not really need to deploy "python vue components" in an android apk webview.

But I would like to tell you about this ...

There seems to be something which broke kivy at importing time.

@almarklein
Copy link
Member

PScript tries to extract the source code of Python code using the inspect module. But for this to work, the .py files need to be available. This is a problem when freezing apps with PyInstaller for instance. I would not be surprised if your issue is related to this too.

GUY looks very interesting, btw :)

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

No branches or pull requests

2 participants