Skip to content

AttributeError, adafruit_itertools dependencies not loaded by adafruit_itertools_extras #3

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

Closed
paretech opened this issue Aug 20, 2019 · 1 comment · Fixed by #4
Closed
Assignees

Comments

@paretech
Copy link

Dependencies from adafruit_itertools.adafruit_itertools, needed by adafruit_itertools.adafruit_itertools_extras not loaded resulting in AttributeError. To reproduce run the following.

from adafruit_itertools.adafruit_itertools import count
from adafruit_itertools.adafruit_itertools_extras import take

take(1, count(1, 5))
>>> import issues.itertools
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/lib/issues/itertools.py", line 5, in <module>
  File "adafruit_itertools/adafruit_itertools_extras.py", line 341, in take
AttributeError: 'module' object has no attribute 'islice'

Adafruit CircuitPython 4.1.0 on 2019-08-02; Adafruit CircuitPlayground Express with samd21g18
adafruit-circuitpython-bundle-4.x-mpy-20190816

@jepler
Copy link
Contributor

jepler commented Aug 20, 2019

@paretech thanks for your report. I believe I've identified the problem and a fix.

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.

3 participants