You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
the experimental py5_tools translator might be broken due to a dependency change #791
I haven't investigated with care, but I think autopep8 dropped the "2 to 3 fix" feature, and this broke the translators.
I believe very few people are using these helpers... I like them very much but I have been using them little later. So this is nothing urgent...
!python -m py5_tools translate-imported2module im_source.py mm_out.py
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Program Files (x86)\thonny-500-windows-portable-with-py5-01011\Lib\site-packages\py5_tools_main.py", line 90, in
main()
~~~~^^
File "C:\Program Files (x86)\thonny-500-windows-portable-with-py5-01011\Lib\site-packages\py5_tools_main.py", line 80, in main
module.main(parsed_args)
~~~~~~~~~~~^^^^^^^^^^^^^
File "C:\Program Files (x86)\thonny-500-windows-portable-with-py5-01011\Lib\site-packages\py5_tools\tools\py5translate_imported2module.py", line 45, in main
translators.imported2module.translate_file(src, dest)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "C:\Program Files (x86)\thonny-500-windows-portable-with-py5-01011\Lib\site-packages\py5_tools\translators\imported2module.py", line 47, in translate_file
util.translate_file(translate_token, src, dest, post_translate=post_translate)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\thonny-500-windows-portable-with-py5-01011\Lib\site-packages\py5_tools\translators\util.py", line 81, in translate_file
new_code = translate_code(
translate_token, f.read(), post_translate=post_translate
)
File "C:\Program Files (x86)\thonny-500-windows-portable-with-py5-01011\Lib\site-packages\py5_tools\translators\util.py", line 65, in translate_code
autopep8.fix_2to3(new_code), options=dict(aggressive=2)
^^^^^^^^^^^^^^^^^
AttributeError: module 'autopep8' has no attribute 'fix_2to3'
Activity