benediktschmitt / py-ts3

A Python 3 API for the TeamSpeak 3 server query and file transfer interface.
http://py-ts3.readthedocs.io
Other
157 stars 31 forks source link

AttributeError: module 'ts3.query' has no attribute 'TS3ServerConnection' #65

Closed leon1995 closed 6 years ago

leon1995 commented 6 years ago

Hi.

I used the first version and installed it with pip (and it worked) but when I want to use the second version I always get the Error AttributeError: module 'ts3.query' has no attribute 'TS3ServerConnection'. Of course I installed the version with pip3 install ts3 but it seems that only the first version works.

I hope you can help me :)

AdorablePotato commented 6 years ago

Hi, version 1 and 2 are not compatible. The TS3Connection class has been renamed to TS3ServerConnection in version 2 to distinguish better between the connector to the TS3 client query interface and the server query.

leon1995 commented 6 years ago

Thanks for your quick answer. I try to use your sayhello example from version 2. But I get this error. Your example from version1 is working. How do I upgrade to version 2? I did use pip3 install ts3 to install your skript and python3 myskript.py to start my skript. I hope you can help me with these new informations :)

EDIT: I uninstalled the pip3 installed version (because its the v1) and cloned the version branch and installed it via python setup.py install and then it worked. :)