discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AttributeError: module ‘math’ has no attribute ‘exponent_ff’


From: Marcus Müller
Subject: Re: AttributeError: module ‘math’ has no attribute ‘exponent_ff’
Date: Wed, 8 Jul 2020 19:08:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

That's cool, but I'd strongly recommend not calling your module "math", because that name clashes with the existing Python "math" module. I think that might be happening: something you import imports math, and thus the native module, which overrides yours.

Best regards,
Marcus

On 08/07/2020 19.05, Alex Batts wrote:
I created my own “Math” module. This is to distinguish from the built in “Math Operators” module.

On Wed, Jul 8, 2020 at 12:59 PM Marcus Müller <mueller@kit.edu <mailto:mueller@kit.edu>> wrote:

    Hi Alex,

    um, where's that line from? There's no "exponent_ff" in Python's
    "built-in" math module, so this is not surprising.

    Best regards,
    Marcus

    On 08/07/2020 18.57, Alex Batts wrote:
     > Hello,
     >
     > I tried to create my own OOT module, one that can do exponents on
     > floats. However, I keep running into this error:
     >
     > self.math_exponent_ff_0 = math.exponent_ff()
     > AttributeError: module ‘math’ has no attribute ‘exponent_ff’
     >
     > I saw an earlier post on the forums that had a couple fixes, but
    I tried
     > those and it did not work. Any help would be appreciated. If need
    be, I
     > can post files as well to see code.
     >
     > Thank you,
     >
     > Alex


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]