-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matrix Export [Continued] #54
Comments
I don't know what is causing this. I also got a similar error. Then, restarted my PC and the command worked fine. When you get that error, restart your PC and then try again. Hopefully it will work. |
At first glance, it looks like You could also look to skip this step, it's non-essential. Used to notify users if a new version of the library is ready. |
@msdogan Thanks for your suggestions. Yes, it is true that you can run once at a time but only after restarting the PC. But the problem is updating the data. Does command automatically update and run @jrmerz I tried to run npm view
All these issues, I think, are related to the system or compatibility of Java version. Thank you all. |
@mlmaskey
|
@jrmerz It worked now just changing line 19 in checkVersion.js as: Thanks for a hint. |
Thank you, Mustafa, for your help, Yesterday. With the file, you gave me worked for one time. Unfortunately, you need to restart the computer for the second case. While I ran the model for the second time I got a similar message as before,
Mahesh@Dell MINGW64 ~/documents/github/calvin (master)
$ cnf matrix --verbose --format=csv --start=2001-10 --stop=2002-09 --ts=. --fs=, --to=linksWY2002 --outnodes=nodes --max-ub=1000000000 D17 SR_FOL D9 D85 D64 C7 C8 C104 D44 U204 D503 D511 D507 D509 D541 C173 A207 C37
*** matrix Input Parameters ***
{
"0": "Documents\GitHub\CALVIN\calvin-network-tools\bin\cli.js",
"_": [
"matrix"
],
"help": false,
"no-header": false,
"N": false,
"noHeader": false,
"verbose": true,
"v": true,
"format": "csv",
"f": "csv",
"start": "2001-10",
"s": "2001-10",
"stop": "2002-09",
"t": "2002-09",
"ts": ".",
"S": ".",
"fs": ",",
"F": ",",
"to": "linksWY2002",
"T": "linksWY2002",
"outnodes": "nodes",
"max-ub": 1000000000,
"M": 1000000000,
"maxUb": 1000000000,
"config": "C:\Users\Mahesh",
"c": "C:\Users\Mahesh",
"$0": "......\AppData\Roaming\npm\node_modules\calvin-network-tools\bin\cli.js",
"data": "C:\Users\Mahesh\Documents\GitHub\CALVIN\calvin-network-data\data",
"nodes": [
"D17",
"SR_FOL",
"D9",
"D85",
"D64",
"C7",
"C8",
"C104",
"D44",
"U204",
"D503",
"D511",
"D507",
"D509",
"D541",
"C173",
"A207",
"C37"
],
"runtime": "C:\Users\Mahesh\Documents\GitHub\CALVIN\calvin-network-tools\HEC_Runtime"
}
undefined:2
[email protected] | ISC | deps: 20 | versions: 66
^
SyntaxError: Invalid or unexpected token
at C:\Users\Mahesh\AppData\Roaming\npm\node_modules\calvin-network-tools\nodejs\lib\checkVersion.js:30:33
at ChildProcess.exithandler (child_process.js:294:7)
at ChildProcess.emit (events.js:311:20)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
Mahesh@Dell MINGW64 ~/documents/github/calvin (master)
Most interesting thing is that on another computer at the Lab did not run despite I modified the prmconf. file at all. The message in that computer looks like:
Water Management Lab@DESKTOP-D3ODFAQ MINGW64 ~/documents/github
$ cnf matrix --verbose --format=csv --start=2002-10 --stop=2003-09 --ts=. --fs=, --to=linkWY2003 --outnodes=nodes --max-ub=1000000000 D17 SR_FOL D9 D85 D64
*** matrix Input Parameters ***
{
"_": [
"matrix"
],
"help": false,
"no-header": false,
"N": false,
"noHeader": false,
"verbose": true,
"v": true,
"format": "csv",
"f": "csv",
"start": "2002-10",
"s": "2002-10",
"stop": "2003-09",
"t": "2003-09",
"ts": ".",
"S": ".",
"fs": ",",
"F": ",",
"to": "linkWY2003",
"T": "linkWY2003",
"outnodes": "nodes",
"max-ub": 1000000000,
"M": 1000000000,
"maxUb": 1000000000,
"config": "C:\Users\Water Management Lab",
"c": "C:\Users\Water Management Lab",
"$0": "....\AppData\Roaming\npm\node_modules\calvin-network-tools\bin\cli.js",
"data": "C:\Users\Water Management Lab\Documents\GitHub\calvin-network-data\data",
"nodes": [
"D17",
"SR_FOL",
"D9",
"D85",
"D64"
],
"runtime": "C:\Users\Water Management Lab\Documents\GitHub\calvin-network-tools\HEC_Runtime"
}
undefined:2
[email protected] | ISC | deps: 20 | versions: 66
^
SyntaxError: Invalid or unexpected token
at C:\Users\Water Management Lab\AppData\Roaming\npm\node_modules\calvin-network-tools\nodejs\lib\checkVersion.js:30:33
at ChildProcess.exithandler (child_process.js:294:7)
at ChildProcess.emit (events.js:321:20)
at maybeClose (internal/child_process.js:1026:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
Water Management Lab@DESKTOP-D3ODFAQ MINGW64 ~/documents/github
Could you please let me know what could be the reason for this. I confgure two files as below:
1 In my laptop: {"0": "Documents\GitHub\CALVIN\calvin-network-tools\bin\cli.js","data":"C:\Users\Mahesh\Documents\GitHub\CALVIN\calvin-network-data\data","runtime":"C:\Users\Mahesh\Documents\GitHub\CALVIN\calvin-network-tools\HEC_Runtime"} or
{"data":"C:\Users\Mahesh\Documents\GitHub\CALVIN\calvin-network-data\data","runtime":"C:\Users\Mahesh\GitHub\CALVIN\calvin-network-tools\HEC_Runtime"}
2> In the lab: {"data":"C:\Users\Water Management Lab\Documents\GitHub\calvin-network-data\data","runtime":"C:\Users\Water Management Lab\Documents\GitHub\calvin-network-tools\HEC_Runtime"}
I appreciate your help.
Best regards
Mahesh
The text was updated successfully, but these errors were encountered: