AnvilWrappedError: module 'numpy' has no attribute 'asscalar'

What I’m trying to do: I tried to create a PDF based on different Information and a Mapbox Map

What I’ve tried and what’s not working: While the PDF-Creation i get the following Error-Message:

AnvilWrappedError: module ‘numpy’ has no attribute ‘asscalar’

The Error just occurs when i try the Steps with my Server (but the Server doesnt send me any error message) ! When i try it with my local Anvil Uplink everything works fine.
I also dont use ‘asscalar’ anywhere in my anvil code nor my Python Code via Anvil Uplink. There is only one time i use Numpy and this is for getting the Median of an Array inside my Server Code. But this also works locally.

So the only two Points where this error can happen are the Server or Anvil.

Okay, i’ve fixed my Problem ! I´ve send a numpy float64 from my Server to the Anvil Client and that´s caused the Problem. Now i am changing my float64 at my Server to a normal float and everything is working great again.

2 Likes