Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello there,
I have written some Py scripts and they work fine on the Desktop version, after publishing I am reciving this error, any idea how to solve this:
ImportError: cannot import name 'Function name' from 'Package' (C:\Python\lib\site-packages\...\__init__.py)
The exact error is shown below:
Activity ID: b6476dd7-1d82-4875-838a-33d03abd797e
Request ID: b50b4041-797f-591a-586c-73eec2b8d6e7
Correlation ID: 89779efe-d96d-89b7-0a44-6b57bb794946
Time: Wed May 25 2022 09:51:33 GMT+1200 (New Zealand Standard Time)
Service version: 13.0.18310.53
Client version: 2205.3.11455-train
Cluster URI: https://wabi-south-east-asia-redirect.analysis.windows.net/
Part of my code:
Thanks
M
Hi @Anonymous ,
Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.
Best Regards
Hi Rena, Thanks for checking, these steps did not solve the problem, I am not using the gateway, so I am still lookign for other solutions.
Thanks,
M
reinstall the sklearn package. Update to the latest version of the personal gateway. (also validate if sklearn is even supported by the gateway)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |