Hello All, Importing math function works in the console whereas importing pandas as pd shows the following error.

RuntimeError: implement_array_function method already has a docstring

I don't know what's happening. I am using python 3.7 Please help

hi there- just to confirm, if you start a brand new python3.7 console, and then do "import pandas as pd", do you see that error?

Nope, not in the new console. But when I try it on the console containing it shows.

what is the console containing is it a python or a bash console? have you tried restarting it?

After hours of debugging, solved it. For what it's worth, the working directory is not /appname/mysite/ rather appname. The error log said it could not find the data file named "xyz.xlsx". Changed the path in the code and it works fine.

ah I see- definitely use the full/absolute path instead of a relative path to avoid this issue.

How did you solve the error?

use the full/absolute path instead of a relative path to avoid this issue.

Yes - should be a tips list on pythonanywhere somewhere like this:<br>

  • Ect.
  • Use full path not relative path
  • Ect.

That's all covered on our help pages. In general, searching for an error message on the help pages should give you a page that helps with it.

getting this same error just from importing pandas in

'import pandas as pd'

did any of you run into this issue?

What is the "same error"? There were different errors mentioned above.

Hey there,

I have the same problem, but I can't seem to fix it.
I changed all the paths to full paths in my code, but I still get the exact same error as OP.

Sorry for this stupid question, I'm new to this and followed conradho's dashingdemo on GitHub and implemented my own idea. It runs on locally on my Laptop but now here, on Pythonanywhere

There are a number of problems mentioned in this thread. Which one are you experiencing?

Hey glenn, thank you for answering.

I try to answer you as specific as possible:

Like I said I followed this tutorial.
When I run the I get this error:

Traceback (most recent call last):
  File "/home/FabiB93/mysite/", line 11, in <module>
    from dashing_demo_app import app
  File "/home/FabiB93/", line 4, in <module>
    import pandas as pd
  File "/usr/lib/python3.7/site-packages/pandas/", line 11, in <module>
  File "/usr/lib/python3.7/site-packages/numpy/", line 142, in <module>
    from . import core
  File "/usr/lib/python3.7/site-packages/numpy/core/", line 17, in <module>
    from . import multiarray
  File "/usr/lib/python3.7/site-packages/numpy/core/", line 14, in <module>
    from . import overrides
  File "/usr/lib/python3.7/site-packages/numpy/core/", line 47, in <module>
RuntimeError: implement_array_function method already has a docstring

I installed the modules as mentioned in the repo (virtualenv).

So far I already changed all the paths to absolute paths in both and
I'm really new to this as a whole and really don't know if im stupid or not right now.

That error is not caused by path issues. The path stuff arose because of a different question in the thread.

The error that you are getting, appears to be an issue with running numpy under uwsgi (that is in a web app on PythonAnywhere) Unfortunately, the numpy project do not seem to have a fix for it. Since this appears to be a new issue with numpy, perhaps an older version of numpy will work better.

I downgraded to python 3.6 and saw this issue was resolved when refreshing the instance. hope that can help!

Cool. Thanks for the info.