Hi Allen,
It is probably caused from monkey patch of Eventlet. Python's standard
thread is overwritten by Greenlet thread. You can patch the following to
fix it.
https://github.com/osrg/ryu/blob/master/ryu/cmd/manager.py#L20
hub.patch(thread=False)
Thanks,
Satoshi
2015-01-26 22:57 GMT+09:00 Allen <[email protected]>:
> Hi,
>
> I encounter VariableError when I am debugging the ryu code in pycharm. It
> always displays:
>
> "Traceback (most recent call last): File
> "/home/xuchenhui/Software/pycharm-community-3.4.1/helpers/pydev/pydevd_vars.py",
> line 109, in findFrame
> raise VariableError("findFrame: must execute on same thread (%s != %s)" %
> (thread_id, curr_thread_id))
> VariableError: findFrame: must execute on same thread (pid10244_seq15 !=
> pid10244_seq27)"
>
> when the procedure enters to breakpoint.And the debugger displays "Unable
> to display frame variables".
>
> thanks
>
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>
--
Satoshi KOBAYASHI <[email protected]>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel