Numpy and Scipy use issue

3,728 views
Skip to first unread message

PB

unread,
Feb 10, 2017, 1:03:04 PM2/10/17
to Jep Project

Hi,

I am trying to use numpy and scipy in a script and i get below warnings when executing the script using multi threaded application using JEP. I dont see this when i run the script within python itself.

_frozen_importlib:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
/usr/lib64/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  return f(*args, **kwds)
/usr/lib64/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  return f(*args, **kwds)
/usr/lib64/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  return f(*args, **kwds)

It happens if i include below line in the script.

from scipy import special, optimize

And on few occassions i get 
jep.JepException: <class 'AttributeError'>: 'NoneType' object has no attribute 'CFUNCTYPE'
        at scipy/special/_ellip_harm_2.init scipy.special._ellip_harm_2 (scipy/special/_ellip_harm_2.c:7399)(_ellip_harm_2.pyx:30)
        at /usr/lib64/python3.5/site-packages/scipy/special/_ellip_harm.<module>(_ellip_harm.py:7)
        at /usr/lib64/python3.5/site-packages/scipy/special/__init__.<module>(__init__.py:643)
        at /apps/tmp/example.<module>(example.py:14)


I am new to this python world. Can someone help me on this?

thanks,
Pradeep V.B.

Nathan Jensen

unread,
Feb 13, 2017, 6:13:08 PM2/13/17
to Jep Project
I've never seen those errors before.  Just googling around, it appears they occur if scipy was compiled against a different version of numpy.  So I'd look into if Jep was compiled with a different version of numpy, or if you have multiple versions of Python installed.  It's possible it is picking up the wrong Python through PATH or LD_LIBRARY_PATH.


--
You received this message because you are subscribed to the Google Groups "Jep Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jep-project+unsubscribe@googlegroups.com.
To post to this group, send email to jep-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jep-project/43aa7f82-fc27-4870-bc79-201d813f8efa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yiding Zhang

unread,
Aug 14, 2018, 9:48:40 AM8/14/18
to Jep Project
It's the issue of new numpy version (1.15.0)

You can downgrade numpy and this problem will be fixed:
sudo pip uninstall numpy
sudo pip install numpy==1.14.5
Reply all
Reply to author
Forward
Message has been deleted
0 new messages