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: Alex Batts
Subject: Re: AttributeError: module ‘math’ has no attribute ‘exponent_ff’
Date: Wed, 8 Jul 2020 13:11:17 -0400

Okay, I did not realize that could be an issue. Is there a way to rename the module or should I create another one?

Thank you,

Alex

On Wed, Jul 8, 2020 at 1:08 PM Marcus Müller <mueller@kit.edu> wrote:
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
>


reply via email to

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