Pygcam

Latest version: v1.11.1

Safety actively analyzes 682361 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.0.0

-----------------------------

* Added code to gcam sub-command to create link to java libs on macOS,
as is done in the ``run-gcam.command`` script in the GCAM distribution
for the Mac.

* A bug in the ModelInterface code in gcam-v4.4 prevented the ``pygcam``
query sub-command from working. Please install gcam-v4.4.1 (when available)
or update your the gcam-v4.4 installation, replacing the file
``.../input/gcam-data-system/_common/ModelInterface/src/ModelInterface.jar``
with the updated version from the **Downloads** section, below.

* Modified ``init`` sub-command to use prompt_toolkit to provide
filename completion via the tab key. This works on Windows only
from a standard command prompt, not from a Cygwin terminal. (The
``init`` sub-command works, but without filename completion.)

* Added check that config variable ``GCAM.VersionNumber`` matches what the
GCAM executable reports. If different, the config var is set as per
the GCAM executable.

* Fixed installation issue on Windows and Linux

Note also that if you are having trouble installing or running pygcam on Windows or Linux,
run the command ``gt --version``. If it reports that you are running version 1.0rc3, you
should be able to resolve problems related to ``SALib`` and ``pyscaffold`` by
running the commands:

pip uninstall pygcam
pip install pyscaffold==2.5.8
pip install salib==1.1.2
pip install pygcam

If you have not yet created the Anaconda environment, download the current environment file for your system (i.e., pygcam_windows.yml or pygcam_linux.yml) from https://anaconda.org/plevin/pygcam/files, which corrects the problem. This does not affect macOS users.

1.0rc5

**1. Update to ModelInterface.jar**

The ModelInterface.jar file available here is an interim version until JGCRI releases an update. It fixes a bug in the released version in gcam-v4.4 that was preventing the pygcam ``query`` sub-command from working correctly.

To install this file, replace the version in your the gcam-v4.4 installation, found in ``{{your gcam-v4.4 directory}}/input/gcam-data-system/_common/ModelInterface/src/ModelInterface.jar`` with the one listed in the **Downloads** section, below.

**2. Installation issue on Windows and Linux**

Note also that if you are having trouble installing or running pygcam on Windows or Linux, run the command ``gt --version``. If it reports that you are running version 1.0rc3, you should be able to resolve problems related to ``SALib`` and ``pyscaffold`` by running the commands::

pip uninstall pygcam
pip install pyscaffold==2.5.8
pip install salib==1.1.2
pip install pygcam

If you have not yet created the Anaconda environment, download the current environment file for your system (i.e., pygcam_windows.yml or pygcam_linux.yml) from https://anaconda.org/plevin/pygcam/files, which corrects the problem. This does not affect macOS users.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.