Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1691086

Summary: python-parso FTBFS with Python 3.8: NotImplementedError: Python version None is currently not supported.
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-parsoAssignee: Carl George <carl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: carl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-parso-0.4.0-1.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-09 09:23:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1668959    
Bug Blocks: 1686977    
Attachments:
Description Flags
build.log from copr none

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.