Bug 1813075
Summary: | pythran fails to build with ipython 7.12+ | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | pythran | Assignee: | Miro Hrončok <mhroncok> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 32 | CC: | cstratak, mhroncok, mplch, pviktori, python-sig, sguelton |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-03-18 13:42:35 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: | |||
Bug Blocks: | 1750908, 1785415, 1803234 |
Description
Miro Hrončok
2020-03-12 21:37:31 UTC
I am not able to reproduce the issue. Files downloaded from pythran's github: # ll tests/ total 20 drwxr-xr-x. 2 root root 4096 Mar 13 08:36 __pycache__ -rw-r--r--. 1 root root 204 Mar 13 08:35 ipython_script.ipy -rw-r--r--. 1 root root 466 Mar 13 08:35 ipython_script_timeit.ipy -rw-r--r--. 1 root root 549 Mar 13 08:35 test_ipython.py # pytest tests/ ============================= test session starts ============================== platform linux -- Python 3.8.2rc1, pytest-4.6.9, py-1.8.0, pluggy-0.13.0 rootdir: /tests collected 2 items tests/test_ipython.py FF [100%] ModuleNotFoundError: No module named 'pythran' ModuleNotFoundError: No module named 'pythran' =========================== 2 failed in 0.98 seconds =========================== The output is truncated but it's obvious that ipython loads both testing *.ipy files correctly and then fails because I don't have pythran installed. > it's obvious that ipython loads both testing *.ipy files correctly
I am confused here. Obvious how? Sorry, but only thing that seems obvious (to me) from the above output is the "fails because I don't have pythran installed" part.
> I am confused here. Obvious how? Sorry, but only thing that seems obvious > (to me) from the above output is the "fails because I don't have pythran > installed" part. In your report, the error message says that ipython cannot find/open the *.ipy files: "[TerminalIPythonApp] WARNING | File 'ipython_script_timeit.ipy' doesn't exist" But in my try, ipython is able to open them, load them and then fail because the scripts try to load pythram extension which I don't have installed. So I am not able to reproduce the original issue with loading *.ipy scripts. Is it more clear now? BTW, the error might now be fixed upstream because the latest test_ipython.py uses os.path to determine the right path to *.ipy files but the version we have packaged does not: https://github.com/serge-sans-paille/pythran/blob/master/pythran/tests/test_ipython.py Unfortunately, there is no new release after this fix: https://github.com/serge-sans-paille/pythran/commit/f5ae85881f47bfffe75ff2826e27d56514d69190 I'll try to backport that commit and see if it fixes the tests. Thanks. |