usnistgov / REFPROP-wrappers

Wrappers around NIST REFPROP for languages such as Python, MATLAB, etc.
193 stars 127 forks source link

Error using py.ctREFPROP.ctREFPROP.REFPROPInstance/REFPROPdll Calling inputname from scripts is not supported #621

Open Armando1970 opened 1 month ago

Armando1970 commented 1 month ago

If you have an issue to report, please continue and fill out the applicable sections below. The details provided will help to resolve this issue as quickly as possible.

Prerequisites

NOTE: Be aware that all issues are publicly accessible and viewable. Thus please do not post any code or other content that is protected intellectual property or under copyright.

Before posting an issue, please:

You can also use markdown to format your issue: GitHub guide on Markdown. If you have code snippets, please use a code block to ensure that the formatting remains legible in the web interface. For instance, surround your code in triple backticks:

print('Hello world!')

Description

[Description of the issue]

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Expected behavior: [What you expect to happen]

Actual behavior: [What actually happens]

Versions

REFPROP Version: [REFPROP version you are using]
Operating System and Version: [OS you are running REFPROP on]
Access Method: [How you are accessing REFPROP (i.e. Python, other wrapper)]

Additional Information

If possible, please post examples and/or screenshots of the issue.

ianhbell commented 1 month ago

Please fill out the issue template rather than adding your note to the title of the issue

Armando1970 commented 1 month ago

Dear, I have an issue linking REFPROP with Matlab 2015. I am looking forward to your support in achieving this aim. Currently, Matlab 2015 indicates this error with this code:


CODE %Communication NIST-PYTHON-MATLAB [Vers,Exec] = pyversion; system([Exec,' -m pip install --user -U ctREFPROP']); import py.ctREFPROP.ctREFPROP.REFPROPFunctionLibrary.* RP = py.ctREFPROP.ctREFPROP.REFPROPFunctionLibrary('C:\Program Files\REFPROP'); z = RP.REFPROPdll('Air.PPF','TP','Cp',int8(2),int8(1),int8(0),TA,PA,{1.0});

COMMAND WINDOWS Python Error: ValueError: The function REFPROPdll could not be loaded from the shared library.


Should REFPROP 10 and Matlab 2015 be in the same subdirectory? Would you happen to have some examples?

In advance, I thank you for your support.

Best regards Huicochea CIICAp-UAEM Tel. 3297084 (ext. 6264)

Saludos Armando


De: Ian Bell @.> Enviado: jueves, 19 de septiembre de 2024 08:49 a. m. Para: usnistgov/REFPROP-wrappers @.> Cc: Armando1970 @.>; Author @.> Asunto: Re: [usnistgov/REFPROP-wrappers] Error using py.ctREFPROP.ctREFPROP.REFPROPInstance/REFPROPdll Calling inputname from scripts is not supported (Issue #621)

Please fill out the issue template rather than adding your note to the title of the issue

— Reply to this email directly, view it on GitHubhttps://github.com/usnistgov/REFPROP-wrappers/issues/621#issuecomment-2361225714, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BLNPFS56UVF7KJHDZZYGDJDZXLQAPAVCNFSM6AAAAABOQCQOTOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRRGIZDKNZRGQ. You are receiving this because you authored the thread.Message ID: @.***>

ianhbell commented 1 month ago

What version of REFPROP? The REFPROPdll function is only available in REFPROP 10, otherwise you can use the legacy API

Armando1970 commented 1 month ago

Dear Bell I am using REFPROP 10 with Matlab 2015 or Matlab 2021 without positive results.

In advance, a lot thanks

Saludos Armando


De: Ian Bell @.> Enviado: jueves, 19 de septiembre de 2024 06:22 p. m. Para: usnistgov/REFPROP-wrappers @.> Cc: Armando1970 @.>; Author @.> Asunto: Re: [usnistgov/REFPROP-wrappers] Error using py.ctREFPROP.ctREFPROP.REFPROPInstance/REFPROPdll Calling inputname from scripts is not supported (Issue #621)

What version of REFPROP? The REFPROPdll function is only available in REFPROP 10, otherwise you can use the legacy API

— Reply to this email directly, view it on GitHubhttps://github.com/usnistgov/REFPROP-wrappers/issues/621#issuecomment-2362470726, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BLNPFS4SIZCLRQ3LRSE5XF3ZXNTETAVCNFSM6AAAAABOQCQOTOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRSGQ3TANZSGY. You are receiving this because you authored the thread.Message ID: @.***>

ianhbell commented 1 month ago

Please show your code you ran and what output you got. Otherwise I have no idea how to help you.