ModuleNotFoundError: No module named 'wikipedia'...even though there is

Hello, i am working on an health-care app for a scholarship. It is an Artificial Intelligence guided app. I was only yesterday when i transferred the server-code in my system to anvil’s server-module and a lot of modules needed, the ones that are not available in the free plan, are running in my server, in my system, connect by uplink. And when I was testing my code out today, i got an Error saying there is No module named ‘wikipedia’ ( it would probably show the same to every other module…as I imported wikipedia the first, the error is only for wikipedia) but in the list of packages (https://anvil.works/docs/server/packages), it is shown that the module wikipedia, is installed. Here is the error-

ModuleNotFoundError: No module named 'wikipedia'
at ServerModule1, line 7
  called from /libanvil/anvil_downlink_worker/__init__.py, line 63
  called from <frozen importlib._bootstrap>, line 626
  called from <frozen importlib._bootstrap>, line 656
  called from <frozen importlib._bootstrap>, line 955
  called from <frozen importlib._bootstrap>, line 971
  called from <frozen importlib._bootstrap>, line 994
  called from /lib/lib-python/3/importlib/__init__.py, line 126
  called from /libanvil/anvil_downlink_worker/__init__.py, line 164
  called from Form1, line 13
  called from Form0, line 18

The server-code import :

import anvil.users
import anvil.tables as tables
import anvil.tables.query as q
from anvil.tables import app_tables
import anvil.server
import wikipedia
import wolframalpha

So, can anyone please tell me how to fix this error…Thank You!!

It works for me (server side) using the full python interpreter.

Check you are not running on the basic versions.

1 Like

I am not using the paid version. But i think wikpedia is already installed

Whilst I don’t think it is specifically blocked because you are on the free plan, I think it requires a version of Python that you don’t have access to on that plan. End result is the same.

It would need someone from Anvil to confirm that, but I’m pretty sure that’s what it is.

2 Likes

anvil
I’m guessing that’s what your talking bout…

1 Like

Correct. I’m also guessing that it needs the full python to run that library.

1 Like

Maybe…Im not sure…

I think I found a way to solve this! i’m sending the query to my server using uplink and i’m returning the answer. This was works too but its not exactly what I wanted… Thanks!

1 Like