'Geany and Visual Studio not plotting graph

I have been trying to make a plot using geany, but I keep encountering the error below. I also tried using visual studio, but the same error has been coming up every time.

    import matplotlib.pyplot as plt
    import numpy as np
    data = np.arange(10)
    data
    array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
    plt.plot(data)

Below is the error showing up.

Traceback (most recent call last): File "C:\Users\ABOSEDE\Documents\python_work\mpl_squares.py", line 1, in import matplotlib.pyplot as plt File "C:\Users\ABOSEDE\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib_init_.py", line 104, in import numpy File "C:\Users\ABOSEDE\Documents\python_work\numpy.py", line 2, in number = randint(1, 50) TypeError: 'module' object is not callable



Solution 1:[1]

To my understanding, you want to delete the message the user sends, in which you would use

await ctx.message.delete()

Solution 2:[2]

You need to wait for author to send message

def check(m):
    return message.author == oldmsg.author #To make sure it is the only message author is getting
msg = await self.bot.wait_for('message', timeout=60.0, check=check)

if message.content == "your codes":
 # do stuff
 await message.delete()

This way you can delete the next message from the user right away. make sure you save the command author in a global dictionary or something!

Solution 3:[3]

      elif message.author.id == 930374951935021096:
   return
  else: 
   await message.delete()

seems like just adding an elif solves the problem, regardless thank you for your reply.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 gim
Solution 2 Sashank
Solution 3 BabylonCS