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

jython support #20

Closed
tomerfiliba opened this issue Mar 2, 2011 · 7 comments
Closed

jython support #20

tomerfiliba opened this issue Mar 2, 2011 · 7 comments
Labels
Bug Confirmed bug
Milestone

Comments

@tomerfiliba
Copy link
Collaborator

don't forget that: https://bitbucket.org/agronholm/rpyc/src/4468fd2877d4/rpyc/core/stream.py

@tomerfiliba
Copy link
Collaborator Author

assume okay

@tomerfiliba
Copy link
Collaborator Author

seems that everything's working except for invoking builtin methods... perhaps this has to do with c091854#L0R84


>>> import rpyc
>>> conn = rpyc.classic.connect_thread()
>>> conn.modules.sys

>>> type(conn.modules.sys)
'>
>>> conn.modules.sys.stdout
', mode 'w' at 0xe>
>>> conn.modules.sys.stdout.write("foo\n")
Traceback (most recent call last):
  File "", line 1, in 
TypeError: 'builtin_function_or_method' object is not callable

>>> conn.modules.sys.stdout.write

>>> dir(conn.modules.sys.stdout.write)
['__call__', '__class__', '__delattr__', ..., '__str__']
>>> type(sys.stdout.write)

>>> dir(sys.stdout.write)
['__call__', '__class__', '__delattr__', ..., '__str__']
>>> conn.modules.sys.path
['', 'C:\\Jython2.5\\Lib', ..., 'd:\\workspace\\rpyc_repo']
>>> conn.modules.sys.path.append

>>> conn.modules.sys.path.append("lala")
Traceback (most recent call last):
  File "", line 1, in 
TypeError: 'builtin_function_or_method' object is not callable

>>> dir(conn.modules.sys.path.append)
['__call__', '__class__', '__delattr__', ..., '__str__']
>>> type(conn.modules.sys.path.append)

>>>

>>> conn.modules.os.listdir(".")
['deadlock.py', ..., 'test_win32pipes.pyc']

@tomerfiliba
Copy link
Collaborator Author

no... i commented these lines out, cleared the cache (.class and .pyc), but still:



> > > conn.modules.sys.stdout.write("foo\n")
> > > Traceback (most recent call last):
> > >   File "", line 1, in 
> > > TypeError: 'builtin_function_or_method' object is not callable
> > > 

i don't intend to investigate it anymore

@agronholm
Copy link

This only seems to happen when Jython is the client. CPython client -> Jython slave works fine.

@agronholm
Copy link

The error appears to be restricted to the client -- attempt to invoke write() does not cause network activity.

@tomerfiliba
Copy link
Collaborator Author

okay, moving it to 3.1.1

@tomerfiliba
Copy link
Collaborator Author

seems like a jython bug, and considering the lack of public interest, i'm closing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bug
Projects
None yet
Development

No branches or pull requests

2 participants