About 84 results
Open links in new tab
  1. RuntimeError: generator raised StopIteration - Python Forum

    Mar 28, 2021 · Hello, I created this class: class ssource: def __init__(self, n): self.list1=[] self.list2=[] self.i=0 self.max=n self.At=stream(self, self.list1) self.Bt=stream ...

  2. Mock call to subprocess.Popen failing with StopIteration

    Nov 8, 2019 · A unit test that I have inherited is now failing on p = subprocess.Popen (command, shell=True, stdout=subprocess.PIPE) logging.warning ('Not hitting here.')with a traceback of …

  3. StopIteration error - Python Forum

    Dec 29, 2017 · StopIteration is a normal error raised when the __next__() method is called but there are no more records to read. Therefore I guess that your file is empty.

  4. arcpy - StopIteration: iteration not started - Geographic …

    May 28, 2020 · I get the message StopIteration: iteration not started. i've tried put cursor.updateRow (row) inside and outside the loop but i keep receiving the same message.

  5. raise exception within generator - Python Forum

    Jun 6, 2020 · Hi, I have a generator def myRange(start, end): while start < end: yield start start += 1 raise StopIteration for n in myRange(2, 5): print(n)I get a runtime error ...

  6. StopIteration exception when mock PostgreSQL connection in …

    Jun 10, 2020 · Hi I mock connect to Postgresql (psycopg2) in two tests from unittest.mock import patch, MagicMock with patch ('psycopg2.pool.ThreadedConnectionPool') as mock_connect: …

  7. Infinity iterators with itertools module - Python Forum

    Aug 6, 2020 · An infinite iterator is any iterator that can go on yielding values indefinitely. This means that the iterator will never raise the StopIteration exception because there will always …

  8. Stop Iteration Error - Python Forum

    Mar 30, 2021 · Hello, here is my class: class inportProp: def __init__(self, t0, tM, incoming, phys, clinkdt, otherport=None, name=''): self.DEBUG=True self.lastt=t0 self.tM=tM if ...

  9. Stack trace shows different exception type than print

    Apr 1, 2019 · What does work is catching a StopIteration exception, but that doesn't seem right. I'm afraid that there's something weird going on here and if I catch the wrong exception, there …

  10. arcgis pro - StopIteration: iteration not started error using arcpy.da ...

    May 31, 2021 · An ArcPy cursor is a one-way iterable through a data set. When you pass the cursor to sorted, the cursor is fully iterated so you can't do anything with it unless you reset it. …