Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Import CSV-file on AWS S3 from Power BI with Python script: Importing the numpy C-extensions failed

In Power BI, I am trying to import a CSV-file that's stored in an AWS S3 bucket with Get Data -> Python Script. I used the script I found here to import the data, but I keep getting this error.    ...
  • Anonymous's avatar
    Anonymous
    4 years ago

    I did extensive research in the past few days and figured it out:

    • Anaconda is not a good option to use in combination with Power BI because you need to be able to open Power Bi from the command prompt (which I can't), see this acticle
    • Instead of using Anaconda I installed Python 3.8.7 locally (64-bit version) and installed the required packages
    • To avoid any conflicts between Python versions I deleted all other local Python installations (I did not delete Anaconda's Python versions)
    • Then I opened Power BI from the start menu, cleared the cache in Power BI options & settings - Data Load (see image) and then closed Power BI again.
    • Then I opened Power BI again from the start menu and ran my Python script... it worked!