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

AttributeError raised when initialising DispatchOnValue… #6

Open
kierun opened this issue Aug 18, 2017 · 4 comments
Open

AttributeError raised when initialising DispatchOnValue… #6

kierun opened this issue Aug 18, 2017 · 4 comments

Comments

@kierun
Copy link

kierun commented Aug 18, 2017

I did a pip install dispatchonvalue, and tried to copy some example from the README. However, I got this:

; ipython
Python 3.6.2 (default, Jul 18 2017, 22:59:34)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import dispatchonvalue as dv
In [2]: dispatch_on_value = dv.DispatchOnValue()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-2-dcafdac7d9f4> in <module>()
----> 1 dispatch_on_value = dispatchonvalue.DispatchOnValue()

AttributeError: module 'dispatchonvalue' has no attribute 'DispatchOnValue' 

The fix is simple, in __init__.py change

from dispatchonvalue import *

to

from .dispatchonvalue import *

Note the . (dot) before the package name.

@kierun
Copy link
Author

kierun commented Sep 20, 2017

Any update on this?…

@jvickroy
Copy link

jvickroy commented Aug 7, 2022

Same error. Is this going to be fixed? Thanks.

@kierun
Copy link
Author

kierun commented Aug 7, 2022

@jvickroy Since it has been 6 years without any updates, it is safe to assume this is abandon ware and not suitable for any use. There might be a fork you could use…

@jvickroy
Copy link

jvickroy commented Aug 7, 2022 via email

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

Successfully merging a pull request may close this issue.

2 participants