Giter Site home page Giter Site logo

Comments (2)

jaredd avatar jaredd commented on August 16, 2024

I'm getting a similar error in under a minute on containerized Debian buster. Installed gr-air-modes from git in a docker container. Fed with rtl_tcp. Messages seem to decode but then this error.

Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3/dist-packages/air_modes/zmq_socket.py", line 104, in run
    self._pubsub[address] = msg
  File "/usr/lib/python3/dist-packages/gnuradio/gr/pubsub.py", line 55, in __setitem__
   sub(val)
  File "/usr/local/lib/python3/dist-packages/air_modes/parse.py", line 432, in publish
   pub["type%i_dl" % ret.data.get_type()] = ret
  File "/usr/lib/python3/dist-packages/gnuradio/gr/pubsub.py", line 55, in __setitem__
    sub(val)
  File "/usr/local/lib/python3/dist-packages/air_modes/msprint.py", line 147, in handle17
    [altitude, decoded_lat, decoded_lon, rnge, bearing] = air_modes.parseBDS05(msg.data, self._cpr)
  File "/usr/local/lib/python3/dist-packages/air_modes/parse.py", line 285, in parseBDS05
    [decoded_lat, decoded_lon, rnge, bearing] = cprdec.decode(data["aa"], data["lat"], data["lon"], data["cpr"], 0)
  File "/usr/local/lib/python3/dist-packages/air_modes/cpr.py", line 221, in decode
    self.weed_poslists()
  File "/usr/local/lib/python3/dist-packages/air_modes/cpr.py", line 196, in weed_poslists
    for key, item in poslist.items():
RuntimeError: dictionary changed size during iteration
$ uname -a 
Linux 6ef5ea8f9423 5.4.0-7626-generic #30~1588169883~20.04~bbe668a-Ubuntu SMP Wed Apr 29 21:00:02 UTC  x86_64 GNU/Linux

from gr-air-modes.

bistromath avatar bistromath commented on August 16, 2024

Looks like a bug introduced by the conversion to Python 3. I'm modifying the CPR position list in place to prune old position reports, but it seems like Python 3 doesn't like that.

from gr-air-modes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.