Menu

#2 NameError: name 'Str' is not defined

resolved
nobody
None
minor
bug
2020-03-30
2020-03-30
No

setup.py fails on Python 3.8

I guess _ast doesnt have Str any more.
Probably your template is already updated to fix this.

Discussion

  • John Vandenberg

    John Vandenberg - 2020-03-30

    Docs say

    Deprecated since version 3.8: Old classes ast.Num, ast.Str, ast.Bytes, ast.NameConstant and ast.Ellipsis are still available, but they will be removed in future Python releases.

    Changing the import from _ast to ast might fix it, but only temporarily until a future release.

     
  • Anthon van der Neut

    • status: open --> resolved
     
  • Anthon van der Neut

    I guess nobody (including me) uses the tar.gz instead of the wheel.

    Please close this if 0.8.3 solves this issue

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.