Skip to content

numpy.linespace audio spectrumQT.py TypeError: object of type <class 'float'> cannot be safely interpreted as an integer. #14

Open

Description

@techwithanirudh

I tried to run audio spetrumQT.py but it said TypeError: object of type <class 'float'> cannot be safely interpreted as an integer.
Can someone please help.

Activity

  1. Dodo0303 commented on Mar 23, 2021

    @Dodo0303

    Dividing by 2 makes it a float. Substitute '/' with '//' for integer division.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions