Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

When i run evolve.py and can't go to the next generation (said Circuit object is not iterable)

Open
#7 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
embedded-iot

Research direction

Start with src/evolve.py at population.evolve(), then read src/CircuitPopulation.py around evolve, __run_classic_tournament, and __group. Reproduce the failure by running evolve.py; done means evolution reaches the next generation without the Circuit-not-iterable TypeError.

Written by the indexing model from the issue text.

Description

File "/home/felix/Desktop/BitstreamEvolution/BitstreamEvolution-main/src/evolve.py", line 28, in

population.evolve()

File "/home/felix/Desktop/BitstreamEvolution/BitstreamEvolution-main/src/CircuitPopulation.py", line 188, in evolve

self.__run_selection()

File "/home/felix/Desktop/BitstreamEvolution/BitstreamEvolution-main/src/CircuitPopulation.py", line 212, in __run_classic_tournament

for ckt1, ckt2 in CircuitPopulation.__group(population, 2):

File "/home/felix/Desktop/BitstreamEvolution/BitstreamEvolution-main/src/CircuitPopulation.py", line 376, in __group

args = [iter(iterable)] * n

TypeError: 'Circuit' object is not iterable

Dominant language
Python
Stars
18
Forks
7
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from evolvablehardware/BitstreamEvolution

All issues in evolvablehardware/BitstreamEvolution

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.