Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoneType Error #40

Open
yasoob opened this issue Dec 25, 2015 · 6 comments
Open

NoneType Error #40

yasoob opened this issue Dec 25, 2015 · 6 comments
Milestone

Comments

@yasoob
Copy link

yasoob commented Dec 25, 2015

I got the following error when I tried to open 0.0.0.0:9000

[2015-12-26 02:07:40][   bouncer   ERROR] get_bot_handle error: 'NoneType' object has no attribute 'id'
Traceback (most recent call last):
  File "/home/yasoob/Desktop/ircb/ircb/bouncer.py", line 110, in get_bot_handle
    key = network.id
AttributeError: 'NoneType' object has no attribute 'id'

I followed the following steps:

$ python3 setup.py develop
$ ircb users create yasoob yasoob.khld@gmail.com <password>
$ ircb networks create yasoob Freenode irc.freenode.net 6665 yasoob
$ ircb runserver
@yasoob
Copy link
Author

yasoob commented Dec 26, 2015

@sayanchowdhury did you get any chance to check this out?

@rtnpro
Copy link
Member

rtnpro commented Dec 26, 2015

Hey @yasoob

You are not supposed to open the endpoint over a browser, but using a IRC client, for example, Xchat, irssi, etc.

Readme says this:

You'll get an access token as an output of the above. Use this as server password when configuring your IRC client to connect to ircb

If it is not clear, from the README, feel free to suggest improvements :)

I hope that this solves your issue.

@yasoob
Copy link
Author

yasoob commented Dec 26, 2015

AAhhh, I was pulling my hair out :-| Let me try this. Thanks! I will close
this issue once I verify the solution. I would be more than happy to
improve the docs. Thanks again!

Kind regards,
Muhammad Yasoob Ullah Khalid http://yasoob.me/
Book: Intermediate Python http://book.pythontips.com/
Blog: Python Tips http://pythontips.com/

On Sat, Dec 26, 2015 at 3:52 PM, Ratnadeep Debnath <notifications@github.com

wrote:

Hey @yasoob https://github.com/yasoob

You are not supposed to open the endpoint over a browser, but using a IRC
client, for example, Xchat, irssi, etc.

Readme says this:

You'll get an access token as an output of the above. Use this as server password when configuring your IRC client to connect to ircb

If it is not clear, from the README, feel free to suggest improvements :)

I hope that this solves your issue.


Reply to this email directly or view it on GitHub
#40 (comment).

@yasoob
Copy link
Author

yasoob commented Dec 26, 2015

@rtnpro I am getting this error now when I try to connect it using Smuxi:

ERROR irc3.yasoob [Errno 101] Network is unreachable
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/irc3-0.8.3-py3.4.egg/irc3/__init__.py", line 142, in connection_made
    transport, protocol = f.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 275, in result
    raise self._exception
  File "/usr/lib/python3.4/asyncio/tasks.py", line 238, in _step
    result = next(coro)
  File "/usr/lib/python3.4/asyncio/base_events.py", line 630, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.4/asyncio/base_events.py", line 612, in create_connection
    yield from self.sock_connect(sock, address)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    return self.result()  # May raise too.
  File "/usr/lib/python3.4/asyncio/futures.py", line 275, in result
    raise self._exception
  File "/usr/lib/python3.4/asyncio/selector_events.py", line 413, in _sock_connect
    sock.connect(address)
OSError: [Errno 101] Network is unreachable

Note: My internet is fully working.

@rtnpro
Copy link
Member

rtnpro commented Dec 26, 2015

Does Freenode listen on 6657? AFAIK, it usually listens on 6667 (Non SSL), 6697 (SSL), etc ports.

@yasoob
Copy link
Author

yasoob commented Dec 30, 2015

Changing it to 6667 didn't fix the problem either.

@rtnpro rtnpro modified the milestone: 0.3 May 30, 2016
@sayanchowdhury sayanchowdhury modified the milestones: 0.3.1, 0.3 Oct 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants