connect() missing 2 required positional arguments: 'self' and 'host'

41 views
Skip to first unread message

RAMANJI A

unread,
Mar 16, 2020, 2:42:04 AM3/16/20
to BlazeLibs
Hi Team,
Am trying to connect to Mainframe but i am getting the below error. tried few attempts with different options..
em = Emulator(visible=True, timeout=200, args=["-port", "623"])
em.connect('portnumber')
error here:
TypeError: connect() missing 2 required positional arguments: 'self' and 'host'

Scenario 2 tried but still same error
em = Emulator(visible=True, timeout=200, args=["-port", "623"])
em.connect(host:'nnn.nnn.nn.nnn')
error here:
TypeError: connect() missing 2 required positional arguments: 'self' and 'host'

Message has been deleted

Joshua Schlichting

unread,
Mar 23, 2020, 2:06:40 PM3/23/20
to BlazeLibs
Change your ":" to a "=" when you call em.connect()
em.connect(host='hostipaddresshere')

Reply all
Reply to author
Forward
0 new messages