Skip to content
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

Cannot open machine-tool-def.json #9

Closed
skidesmond opened this issue Sep 21, 2014 · 6 comments
Closed

Cannot open machine-tool-def.json #9

skidesmond opened this issue Sep 21, 2014 · 6 comments
Labels

Comments

@skidesmond
Copy link

I tried running the sample board and machine json files. I get an error below. I checked the permissions on the files and the folders. All looks ok. I'm referencing the files/folders appropriately. Running Windows Vista.

C:\Users\steve\Documents\MonkeyCam\MonkeyCAM-4.0.2\bin>MonkeyCAM.exe --board boa
rd-def.json --machine machine-tool-def.json --outdir SampleBoard
MonkeyCAM v4.0.2, Copyright (C) 2013-2014 Michael M. Magruder
This is free software; see the source for license information. There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Using board 'board-def.json', machine 'machine-tool-def.json'
terminate called after throwing an instance of 'boost::exception_detail::clone_i
mpl<boost::exception_detail::error_info_injector<boost::property_tree::json_pars
er::json_parser_error> >'
what(): machine-tool-def.json: cannot open file

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

C:\Users\steve\Documents\MonkeyCam\MonkeyCAM-4.0.2\bin>

@mikemag
Copy link
Owner

mikemag commented Sep 22, 2014

Are the board and machine def files in the bin directory where you're running from? I'd guess not, unless you copied them over there. You need to give the proper path to each input file. Assuming you've moved no files, try this:
C:\Users\steve\Documents\MonkeyCam\MonkeyCAM-4.0.2> bin\MonkeyCam.exe --board example\board-def.json --machine example\machine-tool-def.jason

@skidesmond
Copy link
Author

Thought I had it there.....I started fresh by unzipping the file again and
put the example folder in the bin folder and ran the command above. I get a
pop-up box that says MonkeyCam.exe is not a valid Win32 application.

On Sun, Sep 21, 2014 at 11:01 PM, Mike Magruder notifications@github.com
wrote:

Are the board and machine def files in the bin directory where you're
running them from? I'd guess not, unless you copied them over there. You
need to give the proper path to each input file. Assuming you've moved no
files, try this:
C:\Users\steve\Documents\MonkeyCam\MonkeyCAM-4.0.2> bin\MonkeyCam.exe
--board example\board-def.json --machine example\machine-tool-def.jason


Reply to this email directly or view it on GitHub
#9 (comment).

Steve Desmond

@mikemag
Copy link
Owner

mikemag commented Sep 23, 2014

Hmm... that's strange. It's actually gotten worse for you, since the output from your first run shows you actually got MonkeyCam.exe to execute.

Try just unzipping the archive, don't change anything, and run the command I show above from the root of the archive.

Alternatively, to help further I'd need to see the exact command you're executing, plus the current directory, plus the entire directory structure below that. If my suggestion above doesn't work, then cut-and-paste the command prompt plus the command, and any output which follows, and then do a dir /s and copy the output of that as well.

We should be able to get this working for you given that you got it to run once before. It's just a matter of getting all of your file paths right. You are the first person to try it on Vista, but I doubt that will really matter (famous last words, I know.)

@skidesmond
Copy link
Author

After some screwing around I got it to work. I was able to but the sample
board into the Sampleboard directory/folder and
open Sample-snowboard-overview.svg file in IE and in Chrome. As usual
Chrome works better in displaying the file.

I noticed after I unzipped the file MonkeyCam.exe the first time the file
size was zero. So something went wrong from the get go. Also I think the
copy/paste of the command in email may have picked up an extra space or
some kind of garbage in the string to foul-up the execution. I've run into
issues like that in my day job.

When I copy/paste the command from your website (
https://github.com/mikemag/MonkeyCAM/releases/tag/v4.0.2) it all worked
great!

Thanks for your help!

On Mon, Sep 22, 2014 at 10:52 PM, Mike Magruder notifications@github.com
wrote:

Hmm... that's strange. It's actually gotten worse for you, since the
output from your first run shows you actually got MonkeyCam.exe to execute.

Try just unzipping the archive, don't change anything, and run the command
I show above from the root of the archive.

Alternatively, to help further I'd need to see the exact command you're
executing, plus the current directory, plus the entire directory structure
below that. If my suggestion above doesn't work, then cut-and-paste the
command prompt plus the command, and any output which follows, and then do
a dir /s and copy the output of that as well.

We should be able to get this working for you given that you got it to run
once before. It's just a matter of getting all of your file paths right.
You are the first person to try it on Vista, but I doubt that will really
matter (famous last words, I know.)


Reply to this email directly or view it on GitHub
#9 (comment).

Steve Desmond

@splitn2
Copy link

splitn2 commented Sep 24, 2014

Hey Steve, this is a pretty damn cool program eh! it is going to really help me move forward with my project that's for sure. I'll be keen to see your results too. My CNC is coming together now I have all the electrical side built I am moving onto the table and gantry. Slowly but surely this is heading in the right direction but this tool Mike has developed to go from design to g-code gives me more confidence to keep going! I did an example ski design this morning and wow the svg and gcode that popped out was incredible, in seconds!!!!! Keep up the great work Mike!

@mikemag
Copy link
Owner

mikemag commented Sep 24, 2014

Awesome, glad you got it going!

@mikemag mikemag closed this as completed Sep 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants