After quite a lot of troubleshooting python packages, I have whittled the script in the PythonCaller down to simply importing some packages:
import fme
import fmeobjects
import pcl
class FeatureProcessor(object):
def __init__(self):
pass
def input(self,feature):
pass
def close(self):
pass
However, I still receive a Python Exception:
Python Exception <ValueError>: numpy.ufunc has the wrong size, try recompiling. Expected 192, got 216which is being caused by importing pcl (python-pcl).
I AM, however, able to utilize this package directly in python using the same interpreter. I only encounter this error from within FME.
I have found references to Cython throwing warnings (but not errors) due to a reference to an older numpy version (https://github.com/numpy/numpy/issues/12785#issuecomment-455336738), but it seems that issue has been addressed and I do not encounter any warnings when I run scripts directly.
At this point, I have to assume that the PythonCaller is at fault. Does anyone out there have any other ideas?
I am using a custom python interpreter (I have tried both 3.7 & 3.6), which has had all of the applicable packages installed, on Windows 10 with FME Workbench 2019.0, build 19246.