access to Glacier2 router in python #2065
Replies: 4 comments
-
This is not correct:
You must call
No clear what are you trying to do in the following code:
You might want to take a look at the Python Glacier2 demo at https://github.com/zeroc-ice/ice-demos/blob/3.7/python/Glacier2/callback/client.py |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer , i am going to look at the example you indicated |
Beta Was this translation helpful? Give feedback.
-
when i change "session = Glacier2.RouterPrx.createSession("SuperUser", "linuxtar")" into "session = murmurRouter.createSession("SuperUser", "linuxtar")" i get the error |
Beta Was this translation helpful? Give feedback.
-
It means that the object with ID A Glacier2 router hosts a well-known object whose identity is derived from the
It would be better to ask this question in the Mumble forum. I just asked because the code doesn't look correct
Here |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am writing a client for the mumble server and using Glacier2 and ICE as interfaces. I =created the following python code from a C++ piece of code the code is as follows
import Ice
import Glacier2
import sys
import MumbleServer # Your generated MumbleServer module
Initialize the Ice communicator
initData = Ice.InitializationData()
initData.properties = Ice.createProperties()
initData.properties.setProperty('Ice.Default.Router', 'DemoGlacier2Router/router:default -p 4063 -h 192.168.1.63')
#initData.properties.setProperty('Ice.Default.Router', 'Glacier2/router:default -p 4063 -h 192.168.1.63')
iceCommunicator = Ice.initialize(initData)
print ("1")
try:
# Get the default router from the communicator
#murmurRouter = Glacier2.RouterPrx.uncheckedCast(iceCommunicator.getDefaultRouter())
murmurRouter = Glacier2.RouterPrx.uncheckedCast(iceCommunicator.getDefaultRouter())
print ("2")
when executing the code an error :: Error: RouterPrx.createSession() missing 1 required positional argument: 'password' I dont understand this error , the mumble server is running with the above user and password. The mumble client can connect. Can you help me with that ?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions