8000 numpy.distutils.system_info.get_info fails on PyPy3 · Issue #11968 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

numpy.distutils.system_info.get_info fails on PyPy3 #11968

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rth opened this issue Sep 16, 2018 · 2 comments
Closed

numpy.distutils.system_info.get_info fails on PyPy3 #11968

rth opened this issue Sep 16, 2018 · 2 comments

Comments

@rth
Copy link
Contributor
rth commented Sep 16, 2018

Calling numpy.distutils.system_info.get_info on PyPy3-6.0 produces an error

Reproducing code example:

from numpy.distutils.system_info import get_info

get_info('blas_opt', 0)

Error message:

pypy-env/site-packages/numpy/distutils/system_info.py:432: in get_info
    return cl().get_info(notfound_action)
pypy-env/site-packages/numpy/distutils/system_info.py:624: in get_info
    self.calc_info()
pypy-env/site-packages/numpy/distutils/system_info.py:1656: in calc_info
    atlas_info = get_info('atlas_blas')
pypy-env/site-packages/numpy/distutils/system_info.py:432: in get_info
    return cl().get_info(notfound_action)
pypy-env/site-packages/numpy/distutils/system_info.py:624: in get_info
    self.calc_info()
pypy-env/site-packages/numpy/distutils/system_info.py:1223: in calc_info
    atlas_version, atlas_extra_info = get_atlas_version(**atlas)
pypy-env/site-packages/numpy/distutils/system_info.py:1456: in get_atlas_version
    c = cmd_config(Distribution())
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <numpy.distutils.command.config.config object at 0x00000000135778d8>
dist = <distutils.dist.Distribution object at 0x0000000013577910>

    def __init__(self, dist):
        """Create and initialize a new Command object.  Most importantly,
            invokes the 'initialize_options()' method, which is the real
            initializer and depends on the actual command being
            instantiated.
            """
        # late import because of mutual dependence between these classes
        from distutils.dist import Distribution
    
        if not isinstance(dist, Distribution):
>           raise TypeError("dist must be a Distribution instance")
E           TypeError: dist must be a Distribution instance

Numpy/Python version information:

>>>> import sys, numpy; print(numpy.__version__, sys.version)
1.14.3 3.5.3 (fdd60ed87e941677e8ea11acf9f1819466521bf2, Apr 26 2018, 22:25:07)
[PyPy 6.0.0 with GCC 6.4.0]
@mattip
Copy link
Member
mattip commented Sep 16, 2018

Cannot reproduce with the same version of PyPy, even tried exactly that version of NumPy. However it seems you are using a different build of PyPy?

>>>> import sys, numpy; print(numpy.__version__, sys.version)
1.14.3 3.5.3 (fdd60ed87e94, Apr 24 2018, 06:10:04)
[PyPy 6.0.0 with GCC 6.2.0 20160901]

This smells like a problem with the CI setup. Lets move this to the scikit-learn issuse.

@rth
Copy link
Contributor Author
rth commented Sep 17, 2018

Thanks for checking @mattip ! You are right, actually, I also cannot reproduce this locally 6A50 only in CI. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0