arlo: Example code won't run, claiming that monotonic is not installed
Thanks for making and sharing this code. I’ve recently installed an arlo system and I’m interested in contributing to your project, but I’m relatively new to python programming, so I may be doing something wrong here. In any case, at this point, I think it’s a problem with the code and not with me.
What version of Python are you using (python -V)?
$ python -V
Python 2.7.15
What operating system and processor architecture are you using (python -c 'import platform; print(platform.uname());')?
$ python -c 'import platform; print(platform.uname());'
('Darwin', 'tui', '17.5.0', 'Darwin Kernel Version 17.5.0: Mon Mar 5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64', 'x86_64', 'i386')
Which Python packages do you have installed (run the pip freeze or pip3 freeze command and paste output)?
$ pip freeze
appdirs==1.4.3
asn1crypto==0.24.0
attrs==17.4.0
Automat==0.6.0
Beaker==1.9.1
certifi==2018.4.16
cffi==1.11.5
chardet==3.0.4
click==6.7
constantly==15.1.0
cryptography==2.2.2
Cython==0.28.2
enum34==1.1.6
funcsigs==1.0.2
gnureadline==6.3.3
graphviz==0.8
hyperlink==17.3.0
idna==2.6
incremental==17.5.0
ipaddress==1.0.22
Mako==1.0.7
MarkupSafe==0.23
nose==1.3.7
numpy==1.14.2
packaging==17.1
pyasn1==0.4.2
pyasn1-modules==0.0.7
pycairo==1.15.4
pycparser==2.18
pygame==1.9.3
pyOpenSSL==17.5.0
pyparsing==2.2.0
python-libtorrent==1.1.7
pyxdg==0.25
service-identity==17.0.0
six==1.11.0
Twisted==17.9.0
zope.interface==4.4.1
Which Arlo hardware do you have (camera types - [Arlo, Pro, Q, etc.], basestation model, etc.)?
Arlo
What did you do?
$ sudo port install python27
$ sudo port install py27-pip
$ sudo port select --set pip pip27
$ git clone https://github.com/jeffreydwalter/arlo.git
$ pip install monotonic
$ pip install requests
$ pip install sseclient
$ pip show monotonic
You are using pip version 10.0.0, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command. # I think I can ignore this?
$ pip show requests
You are using pip version 10.0.0, however version 10.0.1 is available.
$ pip show sseclient
You are using pip version 10.0.0, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.You should consider upgrading via the 'pip install --upgrade pip' command.
$ pip uninstall monotonic requests sseclient
Skipping requests as it is not installed.
Skipping monotonic as it is not installed.
Skipping sseclient as it is not installed.
You are using pip version 10.0.0, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
$ python myarlo.py
Then I just created a local file myarlo.py by copying and pasting the example I found at https://github.com/jeffreydwalter/arlo and replacing my username and password for the ones I found in that example code.
What did you expect to see?
Code runs (download videos from library and delete them from library?).
What did you see instead?
$ python myarlo.py
Traceback (most recent call last):
File "myarlo.py", line 1, in <module>
from Arlo import Arlo
File "/Users/alpha/sources/arlo/Arlo.py", line 24, in <module>
import monotonic
ImportError: No module named monotonic
Does this issue reproduce with the latest release?
Yes
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (10 by maintainers)
In the past I’ve found that Mac python differs in some important ways from more standard python (that I found in the Macports project).