Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
tarainfotech
Frequent Visitor

Python Module Not Found Error When Importing Pandas: 'no module named 'fsspec_wrapper.trident.core'

Hi,

I have numerous notebooks in which I utilize Python, and specifically the Pandas library for data transformations. Today I started to receive errors on the runs of multiple notebooks across different workspaces when running the line of code that imports the pandas module. Message: 'from fsspec_wrapper.trident.core import OneLakeFileSystem -> ModuleNotFoundError: No module named 'fsspec_wrapper.trident.core'. This error specifically occurs only when the notebook environment is a custom environment rather than "Workspace Default". These notebooks have ran for months with no issue and no manual changes were made to the custom environment, and just started to throw this error today. I tried adding the newest fsspec library (2/1/2025 version) from pypl using 'public library' into my custom environment, and importing fsspec prior to pandas in the notebook.. still got the same error. I have not been able to find a solution, [other than for all notebooks throwing this error, changing the environment from a custom one to 'Workspace default'- this solves the issue]. But sometimes the packages I have to use in a notebook are not included in the default workspace libraries, and I will have to use a custom environment and pandas- how can I solve this issue? Thanks so much!

29 REPLIES 29
Pradeep_O_S
Frequent Visitor

Using the latest runtime could solve this issue if installing the fsspec library alone didn't resolve it.

I posted the mitigation below

tlanza89_RWL
Frequent Visitor

I'm also starting to experience this same issue as of last night 3/13/25. 

theross
Advocate II
Advocate II

Having "fixed" the issue this morning across multiple workspaces, we've just had it re-occur again a few hours later across all the same workspaces 😫.

Our resolution path (presuming it doesn't occur again) was:

 

1. Upgrade Runtime of our custom environment from 1.2 to 1.3, which upgrades Spark from 3.4 to 3.5.  That seemed to work for about a day or so, but then it broke again. Switching to the Default Environment didn't help, that was broken too.

2. Although fsspec was in the Built-in libraries, we switched to the Public libraries and added fsspec from PyPl. This brought in a newer version of fsspec that was in the Built-in libraries, and that has been working for about 3-4 days so far with no problem.

 

It's a really frustrating issue and I suspect that a lot more people are going through it. The Microsoft Learn article that was posted earlier was interesting, but to me this was more of a total break on Microsoft's part and should have been treated as such. 

Yeah... issue continue to happen here...

ABI_Rufino
Advocate I
Advocate I

Having the same issue here, specifically when notebook tries to import pandas package.

 

ABI_Rufino_0-1741954666331.png

 

Krumelur
Microsoft Employee
Microsoft Employee

The workaround is to force the environment to republish. This will fix the problem until the next time internal core libraries in Fabric are changing. In order to publish _any_ change must be made to the environment. It does not matter what you're doing. I tested by adding the public "pytest" package from PyPi, saved, and deployed the environment and the problem was gone.

We've already implemented the workaround, but it remains a workaround. My concern is if this kind scenario is likely to be a recurring thing, and if there's anything we could/should be doing to mitigate against it in a production environment? At least one person above has indicated the issue has re-occurred for them, and required fixing with a workaround for a second time this week.

theross
Advocate II
Advocate II

This issue has hit us overnight, impacting multiple business areas and scheduled pipelines.

Is there some way to mitigate against platform side changes like this on the customer side?

zzthatcher
Frequent Visitor

We are also having this issue. Trying the deliberate install now. 

Issue just came back for me after I tried to deliberately install the package from the public repo. Upgrading the runtime now to see if that fixes it more permanently. This is breaking some of my most important pipelines and requiring that I wait for what is already an unacceptably long environment publish time before re-running them. 

The issue has not returned for me since also upgrading the runtime

Alwin-Raj
Frequent Visitor

We had the same issue, it got solved after installing fsspec module from public libraries in our custom environment

Krumelur
Microsoft Employee
Microsoft Employee

Microsoft FTE here. We're seeing the same issue. It has messed up all of our reporting workspaces, again.

Support, feel free to ping me internally on Teams to see if we can find more details.

 

 

V-yubandi-msft
Community Support
Community Support

Hello @tarainfotech ,

We noticed we haven't received a response from you yet, so we wanted to follow up and ensure the solution we provided addressed your issue. If you require any further assistance or have additional questions, please let us know.

Your feedback is valuable to us, and we look forward to hearing from you soon.

zeusmx
Microsoft Employee
Microsoft Employee

The issue can be fixed by removing the libraries from the environment and adding them again.

 

In fact any change of libraries on the environment will likely fix the issue, and the reason is that this will bring the libraries cache "up to date" with the most recent python environment that is built it the VHD.

 

This is why adding fsspec library "fixes" the issue, but adding this library shouldnt be strictly necesary. 

 

dtacct
Advocate I
Advocate I

This issue is back, under the new Fabric Runtime 1.3 (Spark 3.5 and Delta 3.2).  Upgrading the environment temporarily fixed the issue. I left it alone for a few days, and the problem is back. Super frustrating. 

This time we manually added fsspec into the Public Libraries, using the latest version of fsspec. Prior to that, we relied on the fsspec version that was in the Built-in Libraries. This fixed the problem.

 

Again, nothing from Microsoft on why that built-in library failed, and I've seen recent posts from others that other libraries than this one were failing (one post referred to azure.core or something like that).

 

Mrizzo21
Regular Visitor

Not sure if you have resolved your issue, but I had the exact same problem today in my Fabric notebooks that are utilizing Python that have run without issue until now. I also run a custom environment and found that one of my public libraries had a update available; my 'pyarrrow' was originally installed as 19.0.0.  I see now that 19.0.1 was available. I updated the library, re-published it and my notebook ran without issue.

Mrizzo21_0-1741634940782.png

 

Helpful resources

Announcements
MarchFBCvideo - carousel

Fabric Monthly Update - March 2025

Check out the March 2025 Fabric update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

"); $(".slidesjs-pagination" ).prependTo(".pagination_sec"); $(".slidesjs-pagination" ).append("
"); $(".slidesjs-play.slidesjs-navigation").appendTo(".playpause_sec"); $(".slidesjs-stop.slidesjs-navigation").appendTo(".playpause_sec"); $(".slidesjs-pagination" ).append(""); $(".slidesjs-pagination" ).append(""); } catch(e){ } /* End: This code is added by iTalent as part of iTrack COMPL-455 */ $(".slidesjs-previous.slidesjs-navigation").attr('tabindex', '0'); $(".slidesjs-next.slidesjs-navigation").attr('tabindex', '0'); /* start: This code is added by iTalent as part of iTrack 1859082 */ $('.slidesjs-play.slidesjs-navigation').attr('id','playtitle'); $('.slidesjs-stop.slidesjs-navigation').attr('id','stoptitle'); $('.slidesjs-play.slidesjs-navigation').attr('role','tab'); $('.slidesjs-stop.slidesjs-navigation').attr('role','tab'); $('.slidesjs-play.slidesjs-navigation').attr('aria-describedby','tip1'); $('.slidesjs-stop.slidesjs-navigation').attr('aria-describedby','tip2'); /* End: This code is added by iTalent as part of iTrack 1859082 */ }); $(document).ready(function() { if($("#slides .item").length < 2 ) { /* Fixing Single Slide click issue (commented following code)*/ // $(".item").css("left","0px"); $(".item.slidesjs-slide").attr('style', 'left:0px !important'); $(".slidesjs-stop.slidesjs-navigation").trigger('click'); $(".slidesjs-previous").css("display", "none"); $(".slidesjs-next").css("display", "none"); } var items_length = $(".item.slidesjs-slide").length; $(".slidesjs-pagination-item > button").attr("aria-setsize",items_length); $(".slidesjs-next, .slidesjs-pagination-item button").attr("tabindex","-1"); $(".slidesjs-pagination-item button").attr("role", "tab"); $(".slidesjs-previous").attr("tabindex","-1"); $(".slidesjs-next").attr("aria-hidden","true"); $(".slidesjs-previous").attr("aria-hidden","true"); $(".slidesjs-next").attr("aria-label","Next"); $(".slidesjs-previous").attr("aria-label","Previous"); //$(".slidesjs-stop.slidesjs-navigation").attr("role","button"); //$(".slidesjs-play.slidesjs-navigation").attr("role","button"); $(".slidesjs-pagination").attr("role","tablist").attr("aria-busy","true"); $("li.slidesjs-pagination-item").attr("role","list"); $(".item.slidesjs-slide").attr("tabindex","-1"); $(".item.slidesjs-slide").attr("aria-label","item"); /*$(".slidesjs-stop.slidesjs-navigation").on('click', function() { var itemNumber = parseInt($('.slidesjs-pagination-item > a.active').attr('data-slidesjs-item')); $($('.item.slidesjs-slide')[itemNumber]).find('.c-call-to-action').attr('tabindex', '0'); });*/ $(".slidesjs-stop.slidesjs-navigation, .slidesjs-pagination-item > button").on('click keydown', function() { $.each($('.item.slidesjs-slide'),function(i,el){ $(el).find('.c-call-to-action').attr('tabindex', '-1'); }); var itemNumber = parseInt($('.slidesjs-pagination-item > button.active').attr('data-slidesjs-item')); $($('.item.slidesjs-slide')[itemNumber]).find('.c-call-to-action').attr('tabindex', '0'); }); $(".slidesjs-play.slidesjs-navigation").on('click', function() { $.each($('.item.slidesjs-slide'),function(i,el){ $(el).find('.c-call-to-action').attr('tabindex', '-1'); }); }); $(".slidesjs-pagination-item button").keyup(function(e){ var keyCode = e.keyCode || e.which; if (keyCode == 9) { e.preventDefault(); $(".slidesjs-stop.slidesjs-navigation").trigger('click').blur(); $("button.active").focus(); } }); $(".slidesjs-play").on("click",function (event) { if (event.handleObj.type === "click") { $(".slidesjs-stop").focus(); } else if(event.handleObj.type === "keydown"){ if (event.which === 13 && $(event.target).hasClass("slidesjs-play")) { $(".slidesjs-stop").focus(); } } }); $(".slidesjs-stop").on("click",function (event) { if (event.handleObj.type === "click") { $(".slidesjs-play").focus(); } else if(event.handleObj.type === "keydown"){ if (event.which === 13 && $(event.target).hasClass("slidesjs-stop")) { $(".slidesjs-play").focus(); } } }); $(".slidesjs-pagination-item").keydown(function(e){ switch (e.which){ case 37: //left arrow key $(".slidesjs-previous.slidesjs-navigation").trigger('click'); e.preventDefault(); break; case 39: //right arrow key $(".slidesjs-next.slidesjs-navigation").trigger('click'); e.preventDefault(); break; default: return; } $(".slidesjs-pagination-item button.active").focus(); }); }); // Start This code is added by iTalent as part of iTrack 1859082 $(document).ready(function(){ $("#tip1").attr("aria-hidden","true").addClass("hidden"); $("#tip2").attr("aria-hidden","true").addClass("hidden"); $(".slidesjs-stop.slidesjs-navigation, .slidesjs-play.slidesjs-navigation").attr('title', ''); $("a#playtitle").focus(function(){ $("#tip1").attr("aria-hidden","false").removeClass("hidden"); }); $("a#playtitle").mouseover(function(){ $("#tip1").attr("aria-hidden","false").removeClass("hidden"); }); $("a#playtitle").blur(function(){ $("#tip1").attr("aria-hidden","true").addClass("hidden"); }); $("a#playtitle").mouseleave(function(){ $("#tip1").attr("aria-hidden","true").addClass("hidden"); }); $("a#play").keydown(function(ev){ if (ev.which ==27) { $("#tip1").attr("aria-hidden","true").addClass("hidden"); ev.preventDefault(); return false; } }); $("a#stoptitle").focus(function(){ $("#tip2").attr("aria-hidden","false").removeClass("hidden"); }); $("a#stoptitle").mouseover(function(){ $("#tip2").attr("aria-hidden","false").removeClass("hidden"); }); $("a#stoptitle").blur(function(){ $("#tip2").attr("aria-hidden","true").addClass("hidden"); }); $("a#stoptitle").mouseleave(function(){ $("#tip2").attr("aria-hidden","true").addClass("hidden"); }); $("a#stoptitle").keydown(function(ev){ if (ev.which ==27) { $("#tip2").attr("aria-hidden","true").addClass("hidden"); ev.preventDefault(); return false; } }); }); // End This code is added by iTalent as part of iTrack 1859082