Skip to content

Error: module 'MumbleServer' has no attribute 'MetaPrx' #1980

Closed Answered by pepone
FrankRulof asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Frank,

You should not import import MumbleServer_ice directly, the generated code includes a Module in MumbleServer/__init__.py, which you need to import.

Something like:

import Ice
import MumbleServer


with Ice.initialize() as communicator:
    meta = MumbleServer.MetaPrx.checkedCast(
        communicator.stringToProxy("Meta:tcp -h 192.168.1.245 -p 6502")
    )
    if not meta:
        raise RuntimeError("Invalid proxy")

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pepone
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants