<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error in Calling Fortran from Python in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571876#M170897</link>
    <description>&lt;P&gt;One problem I have encountered regularly wrt DLLs on Windows is that you simply do not always get a message about missing DLLs. Sometimes the program simply stops.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2024 11:44:45 GMT</pubDate>
    <dc:creator>Arjen_Markus</dc:creator>
    <dc:date>2024-02-13T11:44:45Z</dc:date>
    <item>
      <title>Error in Calling Fortran from Python</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571427#M170863</link>
      <description>&lt;P&gt;I had this working fine last year. I am calling my Intel Fortran DLL from Anaconda Python using:&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;import sys&lt;BR /&gt;import ctypes as ct&lt;BR /&gt;lib = ct.CDLL('..\\..\\bin\\Debug\\x64\\solver_lib.dll')&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;Since then, I have been playing with a trial version of NAG to evaluate their solvers. My linker therefore has NLW6I293E_nag.lib in the Additional Dependencies list. Now when I try to run this python script again, on the "lib =" line, I get a popup which says:&lt;/P&gt;&lt;P&gt;&amp;gt; python.exe - Entry Point Not Found&lt;BR /&gt;The procedure entry point for_stop_core_quiet could not be located in the dynamic link library C:\Program Files\NAG\NL29\nlw6i293el\bin\NLW6I293E_nag.dll.&lt;/P&gt;&lt;P&gt;Why is this happening? How do I fix it?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 07:41:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571427#M170863</guid>
      <dc:creator>ferrad1</dc:creator>
      <dc:date>2024-02-12T07:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calling Fortran from Python</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571558#M170877</link>
      <description>&lt;P&gt;That function is part of the Intel Runtime library, libifcore.&amp;nbsp; I am not sure why a NAG-compiled DLL would need Intel's libifcore.&amp;nbsp; You did compile NLW61293E_nag.dll with the nag compiler, correct?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try adding the path to Intel's libifcore.dll to your library path environment variable?&amp;nbsp; Really confused why a NAG compiled DLL would need our Intel runtime library.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 17:38:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571558#M170877</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2024-02-12T17:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calling Fortran from Python</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571559#M170878</link>
      <description>&lt;P&gt;No I didn't compile&amp;nbsp;&lt;SPAN&gt;NLW61293E_nag.dll, it comes from NAG with their trial.&amp;nbsp; I am using the Intel Compiler for my application, and linking in their LIB.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 17:46:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571559#M170878</guid>
      <dc:creator>ferrad1</dc:creator>
      <dc:date>2024-02-12T17:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calling Fortran from Python</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571560#M170879</link>
      <description>&lt;P&gt;I apologize, I simply do not understand your application.&lt;/P&gt;
&lt;P&gt;You have a Python main program.&amp;nbsp; It is calling into the NAG math libraries?&amp;nbsp; If so, you should not need Intel compiler and libraries at all.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using the Command Line or Visual Studio?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does your python driver also call other DLLs you compiled with the Intel compiler?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having difficulty seeing how this application needs anything from Intel.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 18:00:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571560#M170879</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2024-02-12T18:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calling Fortran from Python</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571612#M170881</link>
      <description>&lt;P&gt;Sorry, here is more detail.&lt;/P&gt;&lt;P&gt;I have an application written in Fortran and compiled and linked under Intel Visual Fortran using Microsoft Visual Studio.&amp;nbsp; An EXE plus bunch of DLLs.&lt;/P&gt;&lt;P&gt;Last year I wrote a Python wrapper to run this application.&amp;nbsp; It loads the DLL, locates the entry point, runs it and extracts results using JSON.&amp;nbsp; This all worked fine last year.&lt;/P&gt;&lt;P&gt;Then last month I wanted to trial a NAG optimizer (nothing to do with Python, just the standalone Fortran application), so I downloaded and installed their trial version.&amp;nbsp; This required inclusion of their LIB file (&lt;SPAN&gt;NLW6I293E_nag.lib&lt;/SPAN&gt;) into my VFPROJ so that I can call their DLL (&lt;SPAN&gt;NLW6I293E_nag.dll).&amp;nbsp; I did a few tests with mixed results.&amp;nbsp; But the NAG lib remained in my VFPROJ.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now today I'm revisiting the Python wrapper I worked on last year.&amp;nbsp; And I get the above error.&amp;nbsp; So inclusion of the NAG library leads to the Python error.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 18:45:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571612#M170881</guid>
      <dc:creator>ferrad1</dc:creator>
      <dc:date>2024-02-12T18:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calling Fortran from Python</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571625#M170885</link>
      <description>&lt;P&gt;It may be that the Intel Runtime libraries are not being found.&amp;nbsp; Specifically libifcore DLLs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One year ago Intel had a different directory structure.&amp;nbsp; Did you upgrade to the 2024.0 compiler?&amp;nbsp; If so then the location for libifcore has changed.&amp;nbsp; &lt;A href="https://www.intel.com/content/www/us/en/docs/oneapi/programming-guide/2024-0/use-the-setvars-and-oneapi-vars-scripts-with.html" target="_self"&gt;Here is an article&lt;/A&gt; on where we store our runtime DLLs.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll assume it is the same PC and not a new one from last year.&lt;/P&gt;
&lt;P&gt;Do you run the python wrapper from the command line or from within Visual Studio?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If command line, what does&lt;/P&gt;
&lt;P&gt;echo %PATH% show for Intel paths, and can you find libifcore in those paths?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 19:49:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571625#M170885</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2024-02-12T19:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calling Fortran from Python</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571629#M170886</link>
      <description>&lt;P&gt;I run Python from an Anaconda command prompt, which is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;%windir%\System32\cmd.exe "/K" C:\Users\acf\anaconda3\Scripts\activate.bat C:\Users\acf\anaconda3&lt;/P&gt;&lt;P&gt;I don't see any Intel directories in %PATH% under this cmd&lt;/P&gt;&lt;P&gt;I am running Intel Fortran 64 bit, Version 2021.8.0 Build 20221119_000000&lt;/P&gt;&lt;P&gt;Same PC as last year.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 20:04:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571629#M170886</guid>
      <dc:creator>ferrad1</dc:creator>
      <dc:date>2024-02-12T20:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calling Fortran from Python</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571671#M170889</link>
      <description>&lt;P&gt;From the Anaconda command prompt, can you run the oneAPI setvars.bat?&lt;/P&gt;
&lt;PRE class="line-numbers language-bash"&gt;&lt;CODE&gt;"C:\Program Files (x86)\Intel\oneAPI\setvars.bat"&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Feb 2024 21:46:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571671#M170889</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2024-02-12T21:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calling Fortran from Python</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571804#M170893</link>
      <description>&lt;P&gt;Yes, that runs.&lt;/P&gt;&lt;P&gt;Also I don't get the Windows pop-up error about the NAG DLL.&lt;/P&gt;&lt;P&gt;However the Anaconda directories are removed from the path after running that batch file.&amp;nbsp; I'm not sure if that will be a problem regarding Python use in the future.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 07:06:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571804#M170893</guid>
      <dc:creator>ferrad1</dc:creator>
      <dc:date>2024-02-13T07:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calling Fortran from Python</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571874#M170896</link>
      <description>&lt;P&gt;Normally it creates a load of new path directories and puts the existing paths item on the end so it sounds like it failed. Maybe the path exceeds the max length?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 11:37:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571874#M170896</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2024-02-13T11:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calling Fortran from Python</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571876#M170897</link>
      <description>&lt;P&gt;One problem I have encountered regularly wrt DLLs on Windows is that you simply do not always get a message about missing DLLs. Sometimes the program simply stops.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 11:44:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571876#M170897</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2024-02-13T11:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calling Fortran from Python</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571879#M170898</link>
      <description>&lt;P&gt;Yes that is what I normally expect.&amp;nbsp; But it didn't do that.&amp;nbsp; The anaconda directories were at the beginning of the PATH, see left hand bit below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snap8.jpg" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/51485i50B6F52855B5F6A8/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Snap8.jpg" alt="Snap8.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The right hand bit shows what happened after I ran the Intel BAT file.&amp;nbsp; The anaconda directories were removed (they don't appear later), and replaced by all the Intel directories.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 11:47:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571879#M170898</guid>
      <dc:creator>ferrad1</dc:creator>
      <dc:date>2024-02-13T11:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calling Fortran from Python</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571920#M170899</link>
      <description>&lt;P&gt;I am using the latest version maybe your older one has some issue?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 13:39:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571920#M170899</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2024-02-13T13:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calling Fortran from Python</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571922#M170900</link>
      <description>&lt;P&gt;Who knows, I'm using&amp;nbsp;Version 2021.8.0 Build 20221119_000000. It seems to work so I'll leave things as they are until I really need to upgrade.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 13:44:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-in-Calling-Fortran-from-Python/m-p/1571922#M170900</guid>
      <dc:creator>ferrad1</dc:creator>
      <dc:date>2024-02-13T13:44:50Z</dc:date>
    </item>
  </channel>
</rss>

