Closed irmscher9 closed 3 years ago
The message class is actually called "FixMessage", so the line above should be "fix_msg = simplefix.FixMessage()".
Do you copy that line from somewhere? I'd like to fix that mistake in any documentation, or wherever.
The message class is actually called "FixMessage", so the line above should be "fix_msg = simplefix.FixMessage()".
Do you copy that line from somewhere? I'd like to fix that mistake in any documentation, or wherever.
Yes, from here: https://simplefix.readthedocs.io/en/latest/import.html
I have the same error, I just installed the package, made the import and try to set
fix_msg = simplefix.Message()
But I'm getting an error about AttributeError: module 'simplefix' has no attribute 'Message'
I've pushed the latest documentation to readthedocs, which corrects this. The message class is "FixMessage", not "Message".
import simplefix
fix_msg = simplefix.Message()
_Traceback (most recent call last): File "C:/Users/irmsc/pp/simple_fix_test/main.py", line 3, in
fixmsg = simplefix.Message()
AttributeError: module 'simplefix' has no attribute 'Message'