Closed WilliamSokolErhard closed 4 years ago
What OS are you using?
Windows 10 pro
Could be a dependency issue. Have you tried npm ci?
Yeah, I tried that: https://docs.npmjs.com/cli/ci.html I tried with admin and I still get the same error.
It definitely seems like an issue with that node_modules\webpack-cli
dependency but I can't seem to fix it.
I tried one of the old releases and got a similar issue.
I was able to recreate it, thanks. Am investigating now.
The main issue is that our documentation didn't update correctly... there is a .env file in source/client that needs to be created based on the template. Working on making this more user friendly and updating the documentation but if you create that .env you should be good.
Thank you so much. I just tried it on another PC with the same issue. I will now try with the .env
It seems to have built more but I'm still getting an error:
[1] npm run build-client exited with code 0
[0] libs/ff-react/source/ManipTarget.tsx(10,73): error TS2307: Cannot find module '@ff/browser/ManipTarget'.
[0] libs/ff-react/source/OrbitManip.ts(10,72): error TS2307: Cannot find module '@ff/browser/ManipTarget'.
[0] npm ERR! code ELIFECYCLE
[0] npm ERR! errno 2
[0] npm ERR! dpo-cook@1.0.0 build-server: `tsc -b source/server`
[0] npm ERR! Exit status 2
[0] npm ERR!
[0] npm ERR! Failed at the dpo-cook@1.0.0 build-server script.
[0] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[0]
[0] npm ERR! A complete log of this run can be found in:
I will see if it is fatal or not.
You may need to rebuild.
Wow, it finally works. Thanks again for all your help. I think you guys are doing some great stuff with this project and in general.
Thanks. I've added a default .env to the repo and will update the documentation so hopefully this won't happen again. Please feel free to contribute or submit additional bugs you may find.
Sorry, now I'm getting some issue with the jsonLoader:
It happens when I try to start the server after it successfully builds.
npm run server
or npm run watch
-------------------------
Cook 3D Processing Server
-------------------------
Clients loaded: 2
J:\dpo-cook\source\server\utils\jsonLoader.ts:69
return validate(filePath);
^
Error: failed to parse 'J:\dpo-cook\server\tools.json': Unexpected token "
at J:\dpo-cook\source\server\utils\jsonLoader.ts:53:19
at Object.validate (J:\dpo-cook\source\server\utils\jsonLoader.ts:69:12)
at new TaskManager (J:\dpo-cook\source\server\app\TaskManager.ts:47:46)
at new JobManager (J:\dpo-cook\source\server\app\JobManager.ts:139:28)
at new ProcessingServer (J:\dpo-cook\source\server\app\ProcessingServer.ts:78:27)
at Object.<anonymous> (J:\dpo-cook\source\server\index.ts:41:16)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
looks like an error with your tools.json file. Did you configure it per the build instructions? If so, you can try a json validator or paste it here and I can take a look.
I might have tried to add blender in there.
That fixed it, thanks yet again.
You should be able to add Blender, we have it in our configuration locally. Maybe it was a bad path?
It should be something like: "Blender": { "executable": "C:\Program Files\Blender Foundation\Blender\Blender.exe", "version": "2.80", "maxInstances": 1, "timeout": 3600 // 1 hour },
Ack. GH took out the escaped backslashes. Lets try again:
"Blender": { "executable": "C:\\Program Files\\Blender Foundation\\Blender\\Blender.exe", "version": "2.80", "maxInstances": 1, "timeout": 3600 // 1 hour },
It was definitely a bad path. All my bad.
Anyways, I'm trying to implement the rest API and I'm having a little difficulty. Could you please let me know whether I'm supposed to replace the "mymesh.obj" with a byte array of the 3d model I'm sending or do I send it as a HTTP PUT? Is there a different way I'm supposed to get the file on the server?
{
"id": "7fa4db4c-4cd7-44d7-b37d-937cdada1663",
"name": "Decimate mesh",
"clientId": "e201f3b6-9d2d-4f13-822a-11c65341a250",
"recipeId": "be8c1ebc-3b2c-4cef-bd9a-14782624c931",
"parameters": {
"highPolyMeshFile": "mymesh.obj",
"numFaces": 150000
},
"priority": "normal",
"submission": "2018-08-27T16:33:45.853Z"
}
Thanks again.
That looks correct to me but you may want to try the full path. Most of the recipes include a pickup task that will handle the file transfer. Take a look at: source/server/tasks/PickupTask.ts
Have you tried the web ui or are you interested in creating your own? It has a nice drag and drop feature for setting the file parameters.
I'm trying to integrate it into a standalone application. Specifically a unity app with unity webrequests.
I'm feeding in this exact string now and getting a 405 error.
"id":"7fa4db4c-4cd7-44d7-b37d-937cdada1663",
"name":"Decimate mesh",
"clientId":"6867a59e-0ec5-411d-a93e-4f8cd9098823",
"recipeId":"7ce5c5b1-00d2-4d7f-bebc-ea99ae5f6640",
"parameters":{
"highPolyMeshFile":"J:/Cook Demo/Assets/StreamingAssets/test.FBX",
"numFaces":13245
},
"priority":"normal",
"submission":"2018-08-27T16:33:45.853Z"
}
In return:
] POST / 405 - - 17.448 ms
[2] WEBDAV POST / 405 Method Not Allowed
[2] PUT / 405 - - 0.784 ms
[2] WEBDAV PUT / 405 Method Not Allowed
``
I got it.
In the Swagger Doc it says
"POST /job"
I needed to put in "http://127.0.0.1:8000/job" as the address.
Great, thanks for the update! Please let us know what you think and we welcome any contributions.
On a clean install I get the following error when I try to build the program:
I tried resetting and installing npm over again to no avail. I'm probably missing something obvious but I would appreciate any help.
Thanks in advance.