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

Encoding error when debugging Python on Windows #2480

Closed
born4web opened this Issue Apr 12, 2017 · 17 comments

Comments

Projects
None yet
5 participants
@born4web

born4web commented Apr 12, 2017

Short Summary

  • Fresh install of KomodoIDE 9.3 then after support recommended tried 10.2
  • Windows 10 with Czech language support
  • every Python program I tried to run in IDE produced that error (picture of traceback included for both version of KomodoIDE

Steps to Reproduce

Every Python program I try to run produce the same error

Expected results

Run Python program

Actual results

Traceback on screen shot

Platform Information

Komodo Edit or IDE?
Komodo Version?
Operating System (and version)?

Additional Information

importantinfofromide93
importantinfofromide102
pystderr_version103_log.txt
pystderr_version93_log.txt
pystderr_version93_log.txt

@Naatan

This comment has been minimized.

Member

Naatan commented Apr 12, 2017

Seems there is an error in czech, could you translate?

error: [Errno 10054] Stávající připojení bylo vynuceně ukončeno vzdáleným hostitelem

@Naatan Naatan changed the title from Bug on Windows 10 to Encoding error when debugging Python on Windows Apr 12, 2017

@born4web

This comment has been minimized.

born4web commented Apr 12, 2017

I hope to translate it OK...

Existing connection was forcely ended by remote host

@born4web

This comment has been minimized.

born4web commented Apr 12, 2017

Another one:
WindowsError: [Error 109] Přesměrování bylo ukončeno.

translation: Redirection was ended

I have no idea why those errors are thre

@Naatan

This comment has been minimized.

Member

Naatan commented Apr 12, 2017

Are you remote debugging or are you running the script locally (ie. just hitting the play button)?

@born4web

This comment has been minimized.

born4web commented Apr 12, 2017

Just hit the play button on local script, no remote debuging. Thats why I do not understand why they are those errors...

@Naatan

This comment has been minimized.

Member

Naatan commented Apr 12, 2017

@mitchell-as any ideas?

@mitchell-as

This comment has been minimized.

Member

mitchell-as commented Apr 12, 2017

Hi @born4web. Please do the following:

  1. Go to Edit > Preferences > Languages > Python.
  2. At the bottom there is a section called Debugger Logging.
  3. Change the path to a path you can access.
  4. Try pressing the play button on your script that is causing the error.
  5. Check the path you set in the Debugger Logging preference. There should be a debug log there.
  6. Attach that log in a reply to this ticket.

Thanks!

@born4web

This comment has been minimized.

born4web commented Apr 12, 2017

Log file is not created

This is error I receive on debug window in KomodoIDE


Traceback (most recent call last):
File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\support\dbgp\bin\pydbgp.py", line 307, in
sys.exit( main(sys.argv) )
File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\support\dbgp\bin\pydbgp.py", line 293, in main
client.connect(host, port, 'main', args)
File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\support\dbgp\pythonlib\dbgp\client.py", line 2321, in connect
self.sendInit(name, args[0])
File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\support\dbgp\pythonlib\dbgp\client.py", line 2513, in sendInit
self.socket.send_response('<init %s/>' % _getAttrStr(attrs))
File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\support\dbgp\pythonlib\dbgp\client.py", line 2247, in send_response
self._socket.send(_encode_response(response))
File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\support\dbgp\pythonlib\dbgp\client.py", line 122, in _encode_response
return packet.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 319: ordinal not in range(128)

@mitchell-as

This comment has been minimized.

Member

mitchell-as commented Apr 12, 2017

Okay, so that is the full error message. Thank you and sorry for the trouble. I will dig into this.

@mitchell-as mitchell-as self-assigned this Apr 12, 2017

@mitchell-as mitchell-as added this to the 10.2.2 milestone Apr 12, 2017

@mitchell-as

This comment has been minimized.

Member

mitchell-as commented Apr 12, 2017

@born4web

This comment has been minimized.

born4web commented Apr 13, 2017

Hello the link is broken.

@Defman21

This comment has been minimized.

Contributor

Defman21 commented Apr 13, 2017

It's a private repo so you can't see it.

@cgchoffman

This comment has been minimized.

Member

cgchoffman commented Apr 13, 2017

@born4web, there will be a nightly build with this patch available just after 12 pm PST.
http://downloads.activestate.com/Komodo/nightly/komodoide/
Confirm the build number is 89888 before downloading.

@born4web

This comment has been minimized.

born4web commented Apr 13, 2017

I have tested that release and it works good job :)

Will you be patching version 9 also? I do not have paid version 10 only version 9 of Komodo IDE...

Thanks Petr

@Naatan

This comment has been minimized.

Member

Naatan commented Apr 13, 2017

Unfortunately not no, we do not maintain older releases except for extremely critical bugs.

@born4web

This comment has been minimized.

born4web commented Apr 14, 2017

This sounds like critical bug :) I can not use version 9 on my Windows 10 computer :)

@Naatan

This comment has been minimized.

Member

Naatan commented Apr 14, 2017

By critical bug I mean Komodo stops working outright. The fact of the manner is Komodo 9 is no longer supported. I would suggest you contact support@activestate.com, they might be able to facilitate an upgrade for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment