|
From: Teddy O <tm...@ho...> - 2020-12-12 18:37:01
|
Hi, sorry for the late response, but I finally got this to work. I needed to copy vcruntime140_1.dll from another directory into the windows/system32 folder. Thanks for your help on this. Sent from Outlook<http://aka.ms/weboutlook> ________________________________ From: li cheng <weg...@ho...> Sent: Friday, November 20, 2020 6:14 AM To: Teddy O <tm...@ho...>; Luigi Ballabio <lui...@gm...> Cc: qua...@li... <qua...@li...> Subject: 回复: [Quantlib-users] DLL Load Failed So you may have a check about your PATH config, is c:\windows\system32 is in PATH? Below is my screenshot, all is ok: [cid:image003.jpg@01D6BF47.732C61C0] 发件人: Teddy O <tm...@ho...> 发送时间: 2020年11月19日 8:19 收件人: li cheng <weg...@ho...>; Luigi Ballabio <lui...@gm...> 抄送: qua...@li... 主题: Re: [Quantlib-users] DLL Load Failed yes, it installed _QuantLib.cp38-win_amd64.pyd this time instead of 37. I ran another dependency walker that was supposed to get rid of a bunch of false errors. I'm assuming the issue is this VCRUNTIME140_1.dll, but I also see I have it just below it in windows\system32. [cid:image002.png@01D6BF47.73211720] Sent from Outlook<https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Faka.ms%2Fweboutlook&data=04%7C01%7C%7Cd899b521e7ee4eda081208d88c20c4cb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637413419648694290%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Grn4yRTEjc0kHKHlPGsHr6SW1H1p1CXL8lIsHWhLHX8%3D&reserved=0> ________________________________ From: li cheng <weg...@ho...<mailto:weg...@ho...>> Sent: Wednesday, November 18, 2020 8:55 AM To: Teddy O <tm...@ho...<mailto:tm...@ho...>>; Luigi Ballabio <lui...@gm...<mailto:lui...@gm...>> Cc: qua...@li...<mailto:qua...@li...> <qua...@li...<mailto:qua...@li...>> Subject: 回复: [Quantlib-users] DLL Load Failed Could you have a try using Dependency Worker to see the dll linking chain about your *.pyd file. http://dependencywalker.com/<https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdependencywalker.com%2F&data=04%7C01%7C%7Cd899b521e7ee4eda081208d88c20c4cb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637413419648694290%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=0WYgmzhcM6zQpcq8NRwV0DopMZTPT%2B1wdKY6YbJDows%3D&reserved=0> The error of missing dlls may caused by missing of vc’s redistribution package. Regards, Cheng 发件人: Teddy O <tm...@ho...<mailto:tm...@ho...>> 发送时间: 2020年11月18日 7:46 收件人: Luigi Ballabio <lui...@gm...<mailto:lui...@gm...>> 抄送: qua...@li...<mailto:qua...@li...> 主题: Re: [Quantlib-users] DLL Load Failed Still no luck. getting the same error when I uninstall and then reinstall using python -m pip install -U QuantLib and python -m pip install -U QuantLib-python Sent from Outlook<https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Faka.ms%2Fweboutlook&data=04%7C01%7C%7Cd899b521e7ee4eda081208d88c20c4cb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637413419648704283%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=k6U3c%2FhFGA%2FbAg0fbPdSp3Gji61p1jrfPbeakcZfJQo%3D&reserved=0> ________________________________ From: Luigi Ballabio <lui...@gm...<mailto:lui...@gm...>> Sent: Tuesday, November 17, 2020 2:09 PM To: Teddy O <tm...@ho...<mailto:tm...@ho...>> Cc: qua...@li...<mailto:qua...@li...> <qua...@li...<mailto:qua...@li...>> Subject: Re: [Quantlib-users] DLL Load Failed Ok, I see. The DLL you have, _QuantLib.cp37-win_amd64.pyd, is compiled for Python 3.7. You probably have multiple versions of Python installed, and the version of pip you used to install QuantLib was the one for 3.7. Instead of calling pip directly (which might give you the wrong version for the Python you want to use), you can try something like python -m pip install -U QuantLib which will use the pip corresponding to the python you're running. Luigi On Tue, Nov 17, 2020 at 3:03 PM Teddy O <tm...@ho...<mailto:tm...@ho...>> wrote: When I run it in the powershell it says 64bit. "Import Quantlib" also gives me the same error when I run it here as well. Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32Type "help", "copyright", "credits" or "license" for more information. Sent from Outlook<https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Faka.ms%2Fweboutlook&data=04%7C01%7C%7Cd899b521e7ee4eda081208d88c20c4cb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637413419648704283%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=k6U3c%2FhFGA%2FbAg0fbPdSp3Gji61p1jrfPbeakcZfJQo%3D&reserved=0> ________________________________ From: Luigi Ballabio <lui...@gm...<mailto:lui...@gm...>> Sent: Tuesday, November 17, 2020 8:09 AM To: Teddy O <tm...@ho...<mailto:tm...@ho...>> Cc: qua...@li...<mailto:qua...@li...> <qua...@li...<mailto:qua...@li...>> Subject: Re: [Quantlib-users] DLL Load Failed From the file names and paths, it seems you have the 64-bit version of QuantLib installed but spyder is using 32-bit python. May you check that? Luigi On Tue, Nov 17, 2020 at 3:52 AM Teddy O <tm...@ho...<mailto:tm...@ho...>> wrote: I installed quantlib using "pip install QuantLib" and now I'm getting the below error. I'm using windows 10 and Spyder IDE. I don't see any dll file called _QuantLib, only _QuantLib.cp37-win_amd64.pyd. File "C:\Conda\lib\site-packages\QuantLib\QuantLib.py", line 13, in from . import _QuantLib ImportError: DLL load failed: The specified module could not be found. These are my path variables: C:\Conda\python38.zip C:\Conda\DLLs C:\Conda\lib C:\Conda C:\Conda\lib\site-packages C:\Conda\lib\site-packages\win32 C:\Conda\lib\site-packages\win32\lib C:\Conda\lib\site-packages\Pythonwin C:\Conda\lib\site-packages\IPython\extensions C:\Users\name t\.ipython Has anyone experienced a similar problem? Thanks Sent from Outlook<https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Faka.ms%2Fweboutlook&data=04%7C01%7C%7Cd899b521e7ee4eda081208d88c20c4cb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637413419648714277%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Q0w8gWmEh18W%2Bp0ExwTijrWu6togLBd2YmzMJ2wlGjw%3D&reserved=0> _______________________________________________ QuantLib-users mailing list Qua...@li...<mailto:Qua...@li...> https://lists.sourceforge.net/lists/listinfo/quantlib-users<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fquantlib-users&data=04%7C01%7C%7Cd899b521e7ee4eda081208d88c20c4cb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637413419648714277%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=VtsqouqWV%2Bbt5vUzGoifWlwSeUdmUcFXoe5UuBub6N4%3D&reserved=0> |