da4089 / simplefix

Simple FIX protocol implementation for Python
MIT License
229 stars 63 forks source link

simplefix has no attribute "Message" #19

Closed YaraAmin closed 5 years ago

YaraAmin commented 5 years ago

when i try to create new message using : "fix_msg = simplefix.Message()" an error pop up as: "File "C:/simplefix-master/simplefix/simple.py", line 4, in fix_msg = simplefix.Message() AttributeError: module 'simplefix' has no attribute 'Message'"

and please may you explain the difference between "SIMPLEFIX" and "QUICKFIX" or put any links for atricles

da4089 commented 5 years ago

It appears that the interpreter has found a "simplefix" module, but that probably it's not the actual simplefix package (which is why the attribute lookup is failing).

That might mean it's found a simplefix.py file in the import path, before it has found the actual package directory? You could check this by inserting print(simplefix.__file__) before line 4.

Regarding QuickFIX: simplefix is very simple. It converts FIX messages into a Python Message class, and those Python class instances into FIX messages. QuickFIX is a complete FIX engine, which includes connection handling, message validation, session management, persistence, and many other features.

da4089 commented 5 years ago

Closing this. If you need further help, please re-open.