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

Recommended Answers

All 15 Replies

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 >//<

What did the program print when you wrote print(ch) before class Yakudi ?

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

print(ch)
class TestBot(ch.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'

I wish I could use live chat with you ;-;

Before Traceback (most recent call last): something was printed about ch. What does it say ?

I think it is the error in ch.py needed to run the bot?

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.