Bug 1691086 - python-parso FTBFS with Python 3.8: NotImplementedError: Python version None is currently not supported.
Summary: python-parso FTBFS with Python 3.8: NotImplementedError: Python version None ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-parso
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Carl George
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1668959
Blocks: PYTHON38
TreeView+ depends on / blocked
 
Reported: 2019-03-20 20:09 UTC by Miro Hrončok
Modified: 2019-04-09 09:23 UTC (History)
1 user (show)

Fixed In Version: python-parso-0.4.0-1.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-09 09:23:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
build.log from copr (229.74 KB, text/plain)
2019-03-20 21:11 UTC, Miro Hrončok
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github davidhalter parso issues 63 0 None None None 2019-03-21 14:51:39 UTC

Description Miro Hrončok 2019-03-20 20:09:32 UTC
+ py.test-3.8 --verbose
============================= test session starts ==============================
platform linux -- Python 3.8.0a2, pytest-4.3.0, py-1.7.0, pluggy-0.9.0 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /builddir/build/BUILD/parso-0.3.1, inifile: pytest.ini
collecting ... collected 824 items / 2 errors / 822 selected

==================================== ERRORS ====================================
__________________ ERROR collecting test/test_diff_parser.py ___________________
parso/grammar.py:236: in load_grammar
    return _loaded_grammars[path]
E   KeyError: '/builddir/build/BUILD/parso-0.3.1/parso/python/grammar38.txt'

During handling of the above exception, another exception occurred:
parso/grammar.py:239: in load_grammar
    with open(path) as f:
E   FileNotFoundError: [Errno 2] No such file or directory: '/builddir/build/BUILD/parso-0.3.1/parso/python/grammar38.txt'

During handling of the above exception, another exception occurred:
test/test_diff_parser.py:51: in <module>
    class Differ(object):
test/test_diff_parser.py:52: in Differ
    grammar = load_grammar()
parso/grammar.py:250: in load_grammar
    return load_grammar(**kwargs)
parso/grammar.py:246: in load_grammar
    raise NotImplementedError(message)
E   NotImplementedError: Python version None is currently not supported.
__________________ ERROR collecting test/test_diff_parser.py ___________________
parso/grammar.py:236: in load_grammar
    return _loaded_grammars[path]
E   KeyError: '/builddir/build/BUILD/parso-0.3.1/parso/python/grammar38.txt'

During handling of the above exception, another exception occurred:
parso/grammar.py:239: in load_grammar
    with open(path) as f:
E   FileNotFoundError: [Errno 2] No such file or directory: '/builddir/build/BUILD/parso-0.3.1/parso/python/grammar38.txt'

Comment 1 Miro Hrončok 2019-03-20 20:10:49 UTC
v0.3.4  v0.3.3 v0.3.2 should has 3.8 support.

Comment 2 Miro Hrončok 2019-03-20 21:11:10 UTC
Created attachment 1546253 [details]
build.log from copr

0.3.4 fails differently, attached.

Comment 3 Carl George 2019-03-21 14:50:43 UTC
HEAD of master still fails.  Reported upstream.  Once it's resolved upstream I'll get the package promptly updated.

Comment 4 Miro Hrončok 2019-04-08 17:35:16 UTC
Should be fixed in 0.4.0.

Comment 5 Carl George 2019-04-08 21:08:41 UTC
Updated to 0.4.0 in rawhide.  Let me know how that works for your PY38 testing.

Comment 6 Miro Hrončok 2019-04-09 09:23:06 UTC
Works. Thanks.


Note You need to log in before you can comment on or make changes to this bug.