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

kz.KZStream in python binding cannot be instantiated #1536

Closed
dongahn opened this Issue May 25, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@dongahn
Copy link
Contributor

dongahn commented May 25, 2018

@trws: I am trying to test the KZStream class in kz Python binding, but I am getting a trace back when I am instantiating a class object. Any thought?

quartz770{dahn}25: python
Python 2.7.14 (default, Jan 17 2018, 10:04:29)
[GCC 4.9.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import flux
>>> from flux import kz
>>> kzobj = kz.KZStream (fh, "lwj.0.0.1")
>>> fh = flux.Flux ()
>>> kzobj = kz.KZStream (fh, "lwj.0.0.1")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/nfs/tmp2/dahn/flux-dev/lib/python2.7/site-packages/flux/kz.py", line 126, in __init__
    flux_handle, name, flags, handle, prefix)
  File "/nfs/tmp2/dahn/flux-dev/lib/python2.7/site-packages/flux/kz.py", line 84, in __init__
    self.handle = None
  File "/nfs/tmp2/dahn/flux-dev/lib/python2.7/site-packages/flux/wrapper.py", line 299, in handle
    if self._handle is not None:
  File "/nfs/tmp2/dahn/flux-dev/lib/python2.7/site-packages/flux/wrapper.py", line 246, in __getattr__
    llib = self.__getattribute__("lib")
AttributeError: 'InnerWrapper' object has no attribute 'lib'

I am not sure what I am supposed to pass to the "name" argument either so I put lwj.0.0.1

@trws

This comment has been minimized.

Copy link
Member

trws commented May 25, 2018

@dongahn

This comment has been minimized.

Copy link
Contributor Author

dongahn commented May 28, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.