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

Mitogen not work in python 2.4 #408

Closed
whky opened this issue Oct 26, 2018 · 2 comments
Closed

Mitogen not work in python 2.4 #408

whky opened this issue Oct 26, 2018 · 2 comments
Labels

Comments

@whky
Copy link

@whky whky commented Oct 26, 2018

When try to make a ssh connection with mitogen this error:

2018-10-17 07:44:13,115 - mitogen - DEBUG - mitogen.ssh.Stream('local.19488').connect(): child process stdin/stdout=10
2018-10-17 07:44:13,233 - mitogen - DEBUG - mitogen.ssh.Stream('local.19488'): received b'MITO000\n'
2018-10-17 07:44:13,233 - mitogen - DEBUG - mitogen.ssh.Stream('local.19488')._ec0_received()
2018-10-17 07:44:13,245 - mitogen - DEBUG - register(Context(1, 'ssh.10.10.195.27'), mitogen.ssh.Stream('ssh.10.10.195.27'))
2018-10-17 07:44:13,246 - mitogen - DEBUG - Context(1, 'ssh.10.10.195.27').call_async(): monitor.core.get_measures_usage(Sender(Context(0, None), 1000))
2018-10-17 07:44:13,246 - mitogen - DEBUG - Context(1, 'ssh.10.10.195.27').send_async(Message(1, 0, 0, 101, 1001, b'\x80\x02(X\x0c\x00\x00\x00monitor.coreq\x00NX\x12\x00\x00\x00get_measures_usageq\x01cm'..131))
2018-10-17 07:44:13,266 - mitogen - DEBUG - mitogen.parent.TtyLogStream('ssh.10.10.195.27'): 'Traceback (most recent call last):'
2018-10-17 07:44:13,306 - mitogen - DEBUG - mitogen.parent.TtyLogStream('ssh.10.10.195.27'): ' File "", line 2093, in ?'
2018-10-17 07:44:13,306 - mitogen - DEBUG - mitogen.parent.TtyLogStream('ssh.10.10.195.27'): ' File "", line 2063, in main'
2018-10-17 07:44:13,306 - mitogen - DEBUG - mitogen.parent.TtyLogStream('ssh.10.10.195.27'): ' File "", line 1899, in _setup_master'
2018-10-17 07:44:13,306 - mitogen - DEBUG - mitogen.parent.TtyLogStream('ssh.10.10.195.27'): ' File "", line 1748, in init'
2018-10-17 07:44:13,307 - mitogen - DEBUG - mitogen.parent.TtyLogStream('ssh.10.10.195.27'): "AttributeError: 'Thread' object has no attribute 'ident'"


  • I am using the last master version.
  • Host OS ubuntu 16.04 and target OS RH5
  • Host python version 3.6 and target Python version 2.4.3
@dw dw added the user-reported label Dec 10, 2018
dw added a commit that referenced this issue Jan 20, 2019
Can't use yield inside try/finally on 2.4.
@dw
Copy link
Member

@dw dw commented Jan 20, 2019

Hello, sorry for the crazy delay replying to this :) dmw branch contains fixes for 2.4 support. Unfortunately there is no CI for this version yet, mostly because everyone has given up supporting it, but I still take the compatibility commitment seriously.

The full test suite isn't running for it yet, but basic SSH/etc. support should function now. I will try to get this merged to master for the coming week.

Thanks for reporting this.

dw added a commit that referenced this issue Jan 20, 2019
@dw dw closed this in b7add60 Jan 20, 2019
dw added a commit that referenced this issue Jan 20, 2019
* origin/dmw:
  issue #415: replace default Poller with select.poll()
  issue #415: add IPC latency bench.
  issue #408: fix test fallout.
  issue #408: update Changelog; closes #408.
  issue #408: 2.4 compat: replace iter_read with explicit generator
  issue #408: 2.4 compat: remove ternary if use in master.py.
  issue #408: use compatible method to get thread ID.
  issue #408: fix mitogen.compat.tokenize 2.4 compatibility.
  issue #436: decode debug log lines on Python 3.
  issue #461: Ansible 2.3 placeholder modules for action plug-ins.
  issue #461: Ansible 2.3-compatible _get_candidate_temp_dirs().
  issue #461: Ansible 2.3 did not have _load_name.
@dw
Copy link
Member

@dw dw commented Jan 20, 2019

I have added Python 2.4 to the list of missing CI targets in #461.

This is now on the master branch and will make it into the next release. To be updated when a new release is made, subscribe to https://networkgenomics.com/mail/mitogen-announce/

Thanks for reporting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants