Search found 8 matches
- 1 year ago
- Forum: API
- Topic: ModuleNotFoundError: No module named '_gams2numpy'
- Replies: 9
- Views: 45854
Re: ModuleNotFoundError: No module named '_gams2numpy'
Updated: I can now python setup.py install successfully. I can see gams module in my conda list. However, trying to from gams import * I got this error: File "C:\Users\<name>\AppData\Roaming\Python\Python39\site-packages\gams2numpy-0.1-py3.9.egg\gmdcc.py", line 71, in <module> GMD_NRSYMBOL...
- 1 year ago
- Forum: API
- Topic: ModuleNotFoundError: No module named '_gams2numpy'
- Replies: 9
- Views: 45854
Re: ModuleNotFoundError: No module named '_gams2numpy'
Was the "python setup.py install" successful? Perhaps you can share the output of the command. What about setting the SETUPTOOLS_USE_DISTUTILS environment variable? -Michael python setup.py install was not successful for me. I did set: set SETUPTOOLS_USE_DISTUTILS=stdlib prior to running ...
- 1 year ago
- Forum: API
- Topic: ModuleNotFoundError: No module named '_gams2numpy'
- Replies: 9
- Views: 45854
Re: ModuleNotFoundError: No module named '_gams2numpy'
What anaconda version, what Python version? See https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#building-identical-conda-environments to produce a spec list. Please share this and give the exact sequence of command that resulted in the failure. -Michael I'm using...
- 1 year ago
- Forum: API
- Topic: Cannot get gdxcc module in the right path (Python API)
- Replies: 2
- Views: 4809
Re: Cannot get gdxcc module in the right path (Python API)
There is currently no "pip" for the GAMS modules. So not clear what you mean by "pip install". The install of the GAMS modules works by "cd <gams_sysdir>\apifiles\Python\api_39 && python setup.py install" as you can read from https://www.gams.com/latest/docs/AP...
- 1 year ago
- Forum: API
- Topic: ModuleNotFoundError: No module named '_gams2numpy'
- Replies: 9
- Views: 45854
Re: ModuleNotFoundError: No module named '_gams2numpy'
Jan, With setuptools>=60.0.0 a breaking change has been introduced. Due to this breaking change the GAMS Python files are not installed correctly. To solve the issue, please try setting SETUPTOOLS_USE_DISTUTILS=stdlib before running setup.py Let me know if this helps, Clemens I tried to do this, bu...
- 1 year ago
- Forum: API
- Topic: Cannot get gdxcc module in the right path (Python API)
- Replies: 2
- Views: 4809
Cannot get gdxcc module in the right path (Python API)
Hello, I'm trying to import gams module into my python program and got the error: ModuleNotFoundError: No module named '_gdxcc' I know this probably has something to do with getting this module on the right path because when I pip install gdxcc, the requirement is already satisfied and the location ...
- 2 years ago
- Forum: Modeling
- Topic: conditional constraint using alias
- Replies: 1
- Views: 1622
conditional constraint using alias
Hi everyone, I have a set d /NYCHI, NYBOS, NYDC, CHINY, BOSNY, DCNY / which is the set of trips between original points and destinations: NYC to Chicago, NYC to Boston, NYC to DC, and their reverse directions. I have a variable b which is the budget I need to prepare for my trip. I want to add a con...
- 2 years ago
- Forum: Modeling
- Topic: Create an shifting index gap
- Replies: 2
- Views: 2186
Create an shifting index gap
Hi everyone, I'm fairly new to gams and I have a problem that I'd appreciate your input on: I have a set I which includes hours in a year so 1 to 8760. I have a variable g(h) which is index by hour h. I want to write an equation to satisfy these constraints: g(1) + g(2) + g(3) + g(4) = 0 g(3) + g(4)...