ta-lib-python icon indicating copy to clipboard operation
ta-lib-python copied to clipboard

Error: Value: 'Function' object has no attribute '__name__'

Open hhashim1 opened this issue 9 months ago • 2 comments

I am just installed the latest library of Talib and the Python wrapper. I am getting the following error no matter which function I use. I am calling the Python wrapper from Deephaven which is built on Java. I didnt have this issue when I was using my custom talib library.

Full expression           : (double)last_element(SMA(np.array(Group_bar_close_1min), 5))
Expression having trouble : 
Exception type            : java.lang.RuntimeException
Exception message         : Error in Python interpreter:
Type: <class 'AttributeError'>
Value: 'Function' object has no attribute '__name__'```

hhashim1 avatar Feb 27 '25 19:02 hhashim1

Is that an issue you have calling directly to Python from Python?

mrjbq7 avatar Feb 27 '25 19:02 mrjbq7

I can call a python directly from another Python function and that works however I cannot call from a Deephaven query line. This used to work just fine with my custom library which was a very versions older. I am not sure if the new library or new numpy works differentl;y.

hhashim1 avatar Feb 27 '25 20:02 hhashim1

Not enough info, closing.

mrjbq7 avatar Aug 08 '25 03:08 mrjbq7