GithubHelp home page GithubHelp logo

DCC example scripts fail about irc HOT 3 CLOSED

jaraco avatar jaraco commented on August 25, 2024
DCC example scripts fail

from irc.

Comments (3)

jaraco avatar jaraco commented on August 25, 2024

I've started troubleshooting this. First thing I did was update the scripts to have nicer command-line handling (e42b79ce39ad). After that, I ran the send and receive scripts in separate windows:

.\scripts\dccreceive irc.freenode.net irclib_recv
.\scripts\dccsend.py irc.freenode.net irclib_send irclib_recv .\scripts\dccsend.py

However, when I did this, I got an error in the sender.

Traceback (most recent call last):
  File "C:\Users\jaraco\projects\irc\scripts\dccsend.py", line 90, in <module>
    main()
  File "C:\Users\jaraco\projects\irc\scripts\dccsend.py", line 87, in main
    c.start()
  File "C:\Program Files\Python33\lib\site-packages\irc-8.3.1-py3.3.egg\irc\client.py", line 1211, in start
  File "C:\Program Files\Python33\lib\site-packages\irc-8.3.1-py3.3.egg\irc\client.py", line 264, in process_forever
  File "C:\Program Files\Python33\lib\site-packages\irc-8.3.1-py3.3.egg\irc\client.py", line 245, in process_once
  File "C:\Program Files\Python33\lib\site-packages\irc-8.3.1-py3.3.egg\irc\client.py", line 210, in process_data
  File "C:\Program Files\Python33\lib\site-packages\irc-8.3.1-py3.3.egg\irc\client.py", line 1084, in process_data
  File "C:\Program Files\Python33\lib\site-packages\irc-8.3.1-py3.3.egg\irc\client.py", line 384, in _handle_event
  File "C:\Program Files\Python33\lib\site-packages\irc-8.3.1-py3.3.egg\irc\client.py", line 1174, in _dispatcher
  File "C:\Users\jaraco\projects\irc\scripts\dccsend.py", line 39, in on_dcc_connect
    self.send_chunk()
  File "C:\Users\jaraco\projects\irc\scripts\dccsend.py", line 62, in send_chunk

    self.dcc.send_bytes(data)
AttributeError: 'DCCConnection' object has no attribute 'send_bytes'

So I think I need to tackle that issue next.


Original comment by: Jason R. Coombs

from irc.

jaraco avatar jaraco commented on August 25, 2024

The issue with send_bytes being missing was due to a packaging error (the modules weren't being consistently imported).

In 681fdb9be7e8, I fixed an issue with sending binary files on Python 3. After that, I was able to do a full round-trip.

> python scripts/dccsend irc.freenode.net irclib_send irclib_recv scripts/dccsend.py
Sent file scripts/dccsend.py (2646 bytes).
> python scripts/dccreceive irc.freenode.net irclib_recv
Received file dccsend.py (2646 bytes).

Original comment by: Jason R. Coombs

from irc.

jaraco avatar jaraco commented on August 25, 2024

Please try again with 8.5.2. If you continue to have issues, run the scripts with "-l DEBUG" and report back with the output.


Original comment by: Jason R. Coombs

from irc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.