Skip to content
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

Upgrading to Python 3 issue #28

Open
gloriouslyawkwardlife opened this issue Oct 27, 2023 · 0 comments
Open

Upgrading to Python 3 issue #28

gloriouslyawkwardlife opened this issue Oct 27, 2023 · 0 comments

Comments

@gloriouslyawkwardlife
Copy link

Attempting to run in macOS 15 (Sonoma) after converting the script using 2to3, I get the following:

x: 129, y: 180, z: (-1.180000, 7.260000)
drawing
labeling
Traceback (most recent call last):
  File "/Users/steven/Downloads/rtl-sdr-misc/heatmap/heatmap.py", line 621, in <module>
    create_labels(args, img)
  File "/Users/steven/Downloads/rtl-sdr-misc/heatmap/heatmap.py", line 569, in create_labels
    tape_text(img, args.freqs, label_base/scale, y-tape_pt)
  File "/Users/steven/Downloads/rtl-sdr-misc/heatmap/heatmap.py", line 534, in tape_text
    w = word_aa(s, tape_pt, 'black', 'yellow')
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/steven/Downloads/rtl-sdr-misc/heatmap/heatmap.py", line 470, in word_aa
    s = f.getsize(label)
        ^^^^^^^^^
AttributeError: 'FreeTypeFont' object has no attribute ‘getsize'
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

No branches or pull requests

1 participant