bashtage/randomgen

ImportWarning

Closed this issue · 7 comments

In Python 3.6, randomgen 1.14.1 throws the following warning:

>>> import warnings
>>> warnings.simplefilter('always')                                                                                                                                                                             
>>> import randomgen
/usr/lib/python3.6/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
  return f(*args, **kwds)
/usr/lib/python3.6/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
  return f(*args, **kwds)
...

Which platform? Installed from wheels?

Looks like a Cython issue that cannot be easily fixed.

cython/cython#1715

In this case Linux installed from wheels.

This has been fixed and the latest wheels shouldn't show this behavior. If you still see it, please reopen. Thanks.

Yep, solved. Thanks!

@bashtage How was this fixed? Would you please link me to the commit? Thank you in advance.