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: 'bool' object has no attribute 'write' (mm-latest.py) #192

Open
vvzvlad opened this issue Jun 10, 2016 · 0 comments
Open

Comments

@vvzvlad
Copy link

vvzvlad commented Jun 10, 2016

...
response: ReadPumpStatus:size[64]:data:{'status': 'normal', 'bolusing': False, 'suspended': False}
hexdump:
python
0000   0x03 0x00 0x00 0x00 0x00 0x00 0x00 0x00    ........
0008   0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00    ........
0010   0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00    ........
0018   0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00    ........
0020   0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00    ........
0028   0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00    ........
0030   0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00    ........
0038   0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00    ........

#### decoded:
python
{'status': 'normal', 'bolusing': False, 'suspended': False}

Traceback (most recent call last):
  File "/usr/local/bin/mm-latest.py", line 4, in <module>
    __import__('pkg_resources').run_script('decocare==0.0.28', 'mm-latest.py')
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 719, in run_script
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1504, in run_script
  File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.28-py2.7.egg/EGG-INFO/scripts/mm-latest.py", line 211, in <module>
    app.run(None)
  File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.28-py2.7.egg/decocare/helpers/cli.py", line 114, in run
    self.main(args)
  File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.28-py2.7.egg/EGG-INFO/scripts/mm-latest.py", line 200, in main
    self.report_status(args)
  File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.28-py2.7.egg/EGG-INFO/scripts/mm-latest.py", line 130, in report_status
    args.status.write(json.dumps(self.status, indent=2))
AttributeError: 'bool' object has no attribute 'write'


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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

No branches or pull requests

1 participant