Skip to content

Error: AttributeError: 'TensorFlowComponent' object has no attribute 'tfapi' #62

@youngbin-song

Description

@youngbin-song

Hi, I just started using this plugin for one of my project but I'm having difficulty in what's going wrong with my setup. I'm currently using UE 4.23 and have two separate projects for the GPU and CPU version of your plugin (same content and everything).

While the GPU version of the project seems to work fine, I encounter the error

`LogPython: Test2 input passed: {"id":"BP_Agents3","distanceToTarget":503.25839233398438,"bearingToTarget":-178.17808532714844,"distanceToNearestAgent":788.39898681640625,"bearingToNearestAgent":91.817146301269531,"agentOrientation":{"pitch":0,"yaw":0,"roll":0},"object":"BP_Agents_C'/Game/DSO_AISwarm/Maps/UEDPIE_0_TestingGround1.TestingGround1:PersistentLevel
.BP_Agents3'"}
LogPython: Error: 'TensorFlowComponent' object has no attribute 'tfapi'
LogPython: Error: Traceback (most recent call last):
LogPython: Error:   File "D:\Unreal Projects\Tensorflow_CPU\Plugins\tensorflow-ue4\Content\Scripts\TensorFlowComponent.py", line 109, in json_input
    self.json_input_blocking(args)

LogPython: Error:   File "D:\Unreal Projects\Tensorflow_CPU\Plugins\tensorflow-ue4\Content\Scripts\TensorFlowComponent.py", line 114, in json_input_blocking
    resultJson = self.tfapi.onJsonInput(json.loads(args))
LogPython: Error: AttributeError: 'TensorFlowComponent' object has no attribute 'tfapi'`

in the CPU version.

Just as a clarification, I am able to run the example projects which you've provided without any error. I'm not exactly sure what I'm doing wrong when running this project. Any point to the correct direction would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions