0

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

2
Contributors
15
Replies
41
Views
1 Year
Discussion Span
Last Post by Gribouillis
Featured Replies
  • 1

    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. Read More

0

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.

0

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

0

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

0

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'

0

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

0

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
0

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.

0

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

1

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 by Gribouillis

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.