roho has asked for the wisdom of the Perl Monks concerning the following question:

I am running Strawberry Perl 5.24 on Windows 10. I installed module "Spreadsheet::ParseXLSX". The module installed with no errors. When I "use" the module, the following error message is displayed:
Can't load 'D:/perl/vendor/lib/auto/XML/Parser/Expat/Expat.xs.dll' for + module XML::Parser::Expat load_file:The specified module could not be found at D:/perl/lib/DynaL +oader.pm line 193. at D:/perl/vendor/lib/XML/Parser.pm line 18. The error is definitely occurring in 'D:/perl/vendor/lib/XML/Parser.pm +' line 18, which has "require XML::Parser::Expat;" in a BEGIN block. +Running perl -MXML::Parser::Expat -e 0 produces the same error messag +e.
I double-checked module "XML::Parser::Expat" by running cpan install on it, and it says the module is up to date.
The path and file 'D:/perl/vendor/lib/auto/XML/Parser/Expat/Expat.xs.dll' exist, so it's not clear why the above error message is displayed.

Any suggestions are much appreciated.

"It's not how hard you work, it's how much you get done."

Replies are listed 'Best First'.
Re: Error Using Module Spreadsheet::ParseXLSX
by beech (Parson) on Apr 23, 2018 at 19:58 UTC

    Hi,

    Expat.xs.dll depends on other dlls, like c\bin\libexpat-1_.dll, if for some reason those dlls cant be found in your %PATH%, then loading Expat.xs.dll will fail

      That fixed the problem! Thank you very much.

      "It's not how hard you work, it's how much you get done."