SOMEONE HELP ME line 23, in <module> class Yakudi(ch.RoomManager): AttributeError: 'module' object has no attribute 'RoomManager'

It probably means that ch is a module, and that there is no variable named RoomManager in this module. Try to write

print(ch)

before class Yakudi, to see what ch really is.

What should I do?
I kinda have very little to no python skills >//<

class TestBot(ch.RoomManager):
AttributeError: 'module' object has no attribute 'RoomManager'

The full error msg
Traceback (most recent call last):

File "C:\Python34\bot2\Idk.py", line 24, in <module>
class TestBot(ch.RoomManager):
AttributeError: 'module' object has no attribute 'RoomManager'

changed to chlib.py
<module 'chlib' from 'C:\Python34\bot2\chlib.py'>
Traceback (most recent call last):
File "C:\Python34\bot2\Idk.py", line 24, in <module>
class TestBot(chlib.RoomManager):
AttributeError: 'module' object has no attribute 'RoomManager'
Still the same error

I only say that the statement print(ch) must print something in the output this is what I want to see. Try

print(ch)
raise SystemExit

Are you the author of C:\Python34\bot2\chlib.py ? Open this file in your editor and look for the word RoomManager in this file.

Found the error chlib.py is the necessary file to run bots on chatango,
I instead made it Bot(chlib.ConnectionManager):
now it works^^ still having some errors though

All right. It seems strange to me that the bot2 folder is in C:\Python34 . You shouldn't clutter python's own directory with your modules under development.

Edited 1 Year Ago by Gribouillis

This article has been dead for over six months. Start a new discussion instead.