Closed neunzehnachtneun closed 5 years ago
I just checked, if this error also occurs converting the utopia data file. The error persists.
Hi @neunzehnachtneun Thanks a lot for the bug report. This problem is due to the amply module in v1.6.8 of the PuLP package not yet ignoring lines in the OSeMOSYS file which begin with a #
e.g. commented lines (see https://github.com/coin-or/pulp/issues/222)
One way to avoid this is to install a development version of PuLP. You can do this as follows:
git clone https://github.com/coin-or/pulp
cd pulp
python setup.py develop
Hopefully, the PuLP developers will release a new version of PuLP soon.
An alternative pip command which means you don't need to clone the code:
pip install -e git://git.coin-or.com/pulp.git@master#egg=pulp
Wow, thanks for the quick reply!
For us this is not really a solution, as we need a common and consistent environment on multiple machines. But I tried to delete all lines beginning with a #
. It seems, that also the last line end;
is also causing a parsing error.
But deleting also this line gets the script running.
Hi @neunzehnachtneun, my pleasure. Thanks for making use of the otoole library.
Do note that releases of otoole prior to v1.0 are likely to be backward incompatible and see many changes to the API as we develop it further. We'll try our best to make changes thoughtfully to cause minimal disruption but cannot make any promises.
We would really value any feedback or uses you might have for this package as well.
Out of interest, are you using the command line interface, or directly calling the Python modules?
Changeset coin-or/pulp#230, now merged into the PuLP codebase should fix the above issues with comments #
and end
statements in the atlantis datafile.
Hi together, I am using otoole v0.4.1 and as Pr #7 is fully merged, I expected converting of the atlantis data file into csv should work. Unfortunately I get the following error messages. pyparsing v2.4.2 pulp v1.6.8
Do you have any suggestions or ideas?
Kind, Sebastian