Example code won't run, claiming that monotonic is not installed
See original GitHub issueThanks 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
Issue Analytics
- State:
- Created 5 years ago
- Comments:19 (10 by maintainers)
Top Results From Across the Web
Pythonic monotonic - Ned Batchelder
They wanted to know if I agreed that the code was “Pythonic.” The problem was to find the runs of increasing and decreasing...
Read more >MONOTONIC() in SQL JOIN - Programming - SAS Communities
In a SQL query, MONOTONIC() doesn't necessarily return orderly values to the observations—even in a query with only one data, the orderly values ......
Read more >FACEBOOK - MONOTONIC ARRAY (LeetCode) - YouTube
Monotonic Array LeetCode coding solution. One of Facebook's most commonly asked interview questions according to LeetCode.
Read more >Python - How to check list monotonicity - Stack Overflow
What would be an efficient and pythonic way to check list monotonicity? i.e. that it has monotonically increasing or decreasing values? @6502 ...
Read more >[Python-Dev] Use QueryPerformanceCounter() for time ...
that falls back to time.time() and another that doesn't -- just ... If I need monotonic (for example) my code is in NO...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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).
Was thinking about this more, and I bet your problem is related to having multiple python installs.
Something along these lines: see: https://stackoverflow.com/questions/26006609/pip-doesnt-show-my-installed-packages see: https://stackoverflow.com/questions/25276329/cant-load-python-modules-installed-via-pip-from-site-packages-directory