Skip to content

AttributeError: 'Application' object has no attribute 'sessionID' #1

Open

Description

@sonicsleuth

I am attempting to implement the client.py script as part of a Python3 build. I am getting a repeated error which seems to crash python on occasion. I have tried running this inside/outside of pipenv for containment. I am using FIX Spec 4.2.

It seems the issue is with the following line from the put_order() method.

fix.Session.sendToTarget(trade, self.sessionID)

The error is as follows...

raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
AttributeError: 'Application' object has no attribute 'sessionID'
Segmentation fault: 11

Any thoughts on this? Thanks in advance.

Activity

  1. smorrel1 commented on Nov 1, 2018

    @smorrel1

    Hi - had the same error after changing
    input = '1' # input()
    So onLogon didn't have time to run.
    Fixed with
    time.sleep(0.001) before the while

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions