opencomputeproject / CADCloud

CADCloud is a cloud based sharing infrastructure dedicates to CAD engineers. It allows users to share design files, browse them interactively through a simple web interface, and support native file format from popular open source tools.
MIT License
89 stars 15 forks source link

Does the AppImage have Cloud integrated? #12

Closed petrisch closed 3 years ago

petrisch commented 3 years ago

Mine is the FreeCAD_0.19-23546-Linux-Conda_glibc2.12-x86_64.AppImage Which is the "latest" I can find. However, when I import Cloud, it doesn't find it. So i guess its not in there right? Or is it in a specific workbench i have to load? Your suggesting to use snap instead, is that the way to go? I don't use that until now, but that's just me :-) Great work btw!!

vejmarie commented 3 years ago

Unfortunately, I do not think that Appimage has cloud activated. I am working currently at getting homebrew fully activated. The workbench needs to be explicitly mentioned during compilation (-DBUILD_CLOUD=1). I am willing to make it a default for 0.2. Right now we are under the process to release 0.19 and as this is a new feature I didn't wanted to break the build, and force the dependencies to be integrated (even if windows library now do integrate SSL). Can you switch to homebrew ?

petrisch commented 3 years ago

Haven't tried homebrew yet, but I am willing to give a try. What I see is, that there is FreeCad v18 on homebrew. I don't know how to build the latest. Anyway, I gave the snap install a try, and that works. However the upload didn't work. Should Cloud.save(part) give any feedback if it fails?

vejmarie commented 3 years ago

Do not take 0.18 but use the tap which is here https://github.com/FreeCAD/homebrew-freecad especially if you are running big_sur. Cloud workbench is a 0.19 extension. The error processing into the Cloud workbench is a pity, we still have a lot of work to implement end user feedback from command outcome. Can you give me all the command that you use before the Cloud.save one's ? Normally you have to setup your URL and TCPPort for the CADCloud server, as well as your credential (I don't need their exact value, but need to see how you type them in). As an example when I am calling Cloud.save I am using something like Cloud.save(u"part") (quote and type are important ;))

petrisch commented 3 years ago

import Cloud Cloud.URL(u"https://justyour.parts") Cloud.TCPPort(u":443") Cloud.TokenAuth(u"thetokenihavefromthesite") Cloud.TokenSecret(u"thesecretihavefromthesite") Cloud.Save(u"Pinephone-Case")

I had a STP Imported and also tried to safe as FreeCAD format. I pasted all the lines one by one. None gave feedbak, which is ok, just saying. :-)

Well is already offtopic, so sorry. big_sur? Is that Mac? I'll give brew a try later. Now i am on the latest snap install, that should work.

btw: the link to homebrew is wrong, maybe for others.

vejmarie commented 3 years ago

can you change the file name from Cloud.Save(u"Pinephone-Case") to Cloud.Save(u"pinephonecase"), just to check. What is your login name on the server as I could have a look into the logs ?

petrisch commented 3 years ago

ok, just did that. Its the same as here ;-)

vejmarie commented 3 years ago

ok, Cloud.TCPPort(u":443") shall be Cloud.TCPPort(u"443") I think

petrisch commented 3 years ago

Oh silly me, thanks! I think i can tell, by the time it took the save command, and by the latency on the web page, that it did something. But i can't see it in hot topics. Maybe i have just to wait.

vejmarie commented 3 years ago

we are progressing ;). The bad news is that I do not see the data on the server. So something wrong happened. Can you launch freecad from a terminal and tell me if you see any error message into it when running the save command ? I suspect either a name resolution issue, or something else.

vejmarie commented 3 years ago

@petrisch if you want you can join our discord group https://discord.gg/Z4pBcsM32N

petrisch commented 3 years ago

I'm not on discourse, but again, that might will happen later. The important message is: "The access key ID you provided does not exist in our records." However i checked the credentials, they are correct. Now I tried with single quotes, which gave "curl_easy_perform() failed: Couldn't connect to server" And now the website seem broken, sorry if it was me ;-)

vejmarie commented 3 years ago

I just restarted the service. Can you give it back a try. We will see if it crash back ;).

petrisch commented 3 years ago

Looks like a success 👍 You can close that issue.