flexxui / pscript

Python to JavaScript compiler
http://pscript.readthedocs.io
BSD 2-Clause "Simplified" License
256 stars 25 forks source link

Python 3.9 Support - base64.encodestring/encodebytes #58

Closed GlenRSmith closed 3 years ago

GlenRSmith commented 3 years ago

Similar to #50:

✗ pip freeze
dialite==0.5.3
flexx==0.8.1
pscript==0.7.5
tornado==6.1
webruntime==0.5.8
Python 3.9.4 (default, Apr  5 2021, 01:49:30)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from flexx import flx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/gsmith/Envs/phibes_gui/lib/python3.9/site-packages/flexx/flx.py", line 10, in <module>
    from .app import *
  File "/Users/gsmith/Envs/phibes_gui/lib/python3.9/site-packages/flexx/app/__init__.py", line 38, in <module>
    from ._app import App, manager
  File "/Users/gsmith/Envs/phibes_gui/lib/python3.9/site-packages/flexx/app/_app.py", line 11, in <module>
    from base64 import encodestring as encodebytes
ImportError: cannot import name 'encodestring' from 'base64' (/usr/local/Cellar/python@3.9/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/base64.py)
almarklein commented 3 years ago

Yes, py39 supprt has been added to pscript, but not yet to flexx.

almarklein commented 3 years ago

The corresponding issue is https://github.com/flexxui/flexx/issues/674