Cannot install Nrel-pysam

  • Georges Khoury
  • Georges Khoury's Avatar Topic Author
More
08 Jun 2020 11:01 #8284 by Georges Khoury
Cannot install Nrel-pysam was created by Georges Khoury
Hello,
When using pip to install nrel-pysam, I receive the following:
ERROR: Command errored out with exit status 1:     command:'c:\users\georges\appdata\local\programs\python\python38-32\django\scripts\python.exe'
-c 'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\Georges\\AppData\\Local\\Temp\\pip-install-ksfma7md\\nrel-pysam\\setup.py'"'"';
__file__='"'"'C:\\Users\\Georges\\AppData\\Local\\Temp\\pip-install-ksfma7md\\nrel-pysam\\setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__,
'"'"'exec'"'"'))' egg_info --egg-base
'C:\Users\Georges\AppData\Local\Temp\pip-pip-egg-info-80g2toql'
         cwd:C:\Users\Georges\AppData\Local\Temp\pip-install-ksfma7md\nrel-pysam\    Complete output (7lines):    Traceback (mostrecent call last):      File"<string>", line 1, in <module>      File"C:\Users\Georges\AppData\Local\Temp\pip-install-ksfma7md\nrel-pysam\setup.py",
line 24, in <module>
        defaults_dir =os.environ+"/api/api_autogen/library/defaults/"      File"C:\Users\Georges\AppData\Local\Programs\Python\Python38-32\lib\os.py",
line 675, in __getitem__
        raiseKeyError(key) from None    KeyError:'SAMNTDIR'   
ERROR: Command errored out with exit status 1: pythonsetup.py egg_info Check the logs for full command output.
What am I doing wrong?

Thanks,
Georges


Please Log in or Create an account to join the conversation.

  • Paul Gilman
More
08 Jun 2020 16:50 - 08 Jun 2020 16:50 #8286 by Paul Gilman
Replied by Paul Gilman on topic Cannot install Nrel-pysam
Hi Georges,

PySAM requires a 64-bit version of Python 3.7 (or higher).

If you would be interested in contributing a 32-bit build to the PySAM open source project, please let you know and we will provide instructions.

Best regards,
Paul.
Last edit: 08 Jun 2020 16:50 by Paul Gilman.

Please Log in or Create an account to join the conversation.

  • Georges Khoury
  • Georges Khoury's Avatar Topic Author
More
08 Jun 2020 18:10 #8287 by Georges Khoury
Replied by Georges Khoury on topic Cannot install Nrel-pysam
Dear Paul,
I successfully installed the module with the 64-bit Python app.
I will certainly contribute to the PySAM project in the future if I can.
In the meantime, I am sure I am not proficient enough to write code for the 32-bit build.
Thanks a lot,
Georges

Please Log in or Create an account to join the conversation.

Moderators: Paul Gilman
Powered by Kunena Forum