PyCollada on Appimage

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
iogui
Posts: 95
Joined: Tue Mar 19, 2019 3:44 pm
Location: São Paulo
Contact:

PyCollada on Appimage

Post by iogui »

How can I use pycollada (to open .dae files) with a Appimage Freecad? Is it possible?


OS: Ubuntu 16.04.6 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git) AppImage
Build type: None
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Portuguese/Brazil (pt_BR)
Be the change you want to see in the world. - Mahatma Gandhi
User avatar
iogui
Posts: 95
Joined: Tue Mar 19, 2019 3:44 pm
Location: São Paulo
Contact:

Re: PyCollada on Appimage

Post by iogui »

No one to help with this one?
Be the change you want to see in the world. - Mahatma Gandhi
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: PyCollada on Appimage

Post by NormandC »

I can't help about the AppImage, but since you're on Ubuntu, why not use the PPA instead? It works fine with PyCollada. And, it will automatically update to the 0.18 release, once I figure out how to get past my current packaging hurdle.

FYI the AppImage is actually based on the PPA package.
User avatar
iogui
Posts: 95
Joined: Tue Mar 19, 2019 3:44 pm
Location: São Paulo
Contact:

Re: PyCollada on Appimage

Post by iogui »

NormandC wrote: Sat Mar 23, 2019 9:05 pm I can't help about the AppImage, but since you're on Ubuntu, why not use the PPA instead? It works fine with PyCollada. And, it will automatically update to the 0.18 release, once I figure out how to get past my current packaging hurdle.

FYI the AppImage is actually based on the PPA package.
Ok, I will give it a try. I was using appimage to avoid to have FreeCAD files spread in my environment to be able to use different versions without interference from one on another because I'm thinking in start playing with it's source code too. Maybe I'm just been unnecessarily overcautious.
Be the change you want to see in the world. - Mahatma Gandhi
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: PyCollada on Appimage

Post by NormandC »

We've already made it possible for both our PPAs (freecad-stable and freecad-daily) to cohabit with each other, each has its own executable (freecad and freecad-daily). On top of that you can have as many AppImages as you want; but only one version of FreeCAD can be run at the same time.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: PyCollada on Appimage

Post by triplus »

Hi @iogui

I can do a few tests but as for the first question. What procedure do you use to install PyCollada?
User avatar
iogui
Posts: 95
Joined: Tue Mar 19, 2019 3:44 pm
Location: São Paulo
Contact:

Re: PyCollada on Appimage

Post by iogui »

triplus wrote: Sun Mar 24, 2019 5:50 pm Hi @iogui

I can do a few tests but as for the first question. What procedure do you use to install PyCollada?
Hello @triplus I've just made the easiest on my ubuntu machine:
sudo apt install python-collada

But, if it is necessary to do something else to use it with an appimage I could do it. Anyway I think I will just install FreeCAD from the PPA as NormandC has suggested.
But from another point of view if it is not possible to use the pycollada with an Appimage we can say it is not completely functional even if it is an isolate and maybe uncommon use case.
I was trying to use .dae files to be able to import things from sketchup which I think can be very useful for one that wants to use FreeCAD to model furniture as I intend to do.
Be the change you want to see in the world. - Mahatma Gandhi
User avatar
iogui
Posts: 95
Joined: Tue Mar 19, 2019 3:44 pm
Location: São Paulo
Contact:

Re: PyCollada on Appimage

Post by iogui »

NormandC wrote: Sat Mar 23, 2019 9:05 pm I can't help about the AppImage, but since you're on Ubuntu, why not use the PPA instead?
It worked! Thanks!
Be the change you want to see in the world. - Mahatma Gandhi
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: PyCollada on Appimage

Post by triplus »

iogui wrote: Mon Mar 25, 2019 10:01 pm Hello @triplus I've just made the easiest on my ubuntu machine:
sudo apt install python-collada
It looks like pycollada currently only supports Python 2?

Code: Select all

import sys
sys.path.append('/usr/lib/python2.7/dist-packages')
I was able to open a .dae file after installing python-collada and entering the code snippet in FreeCAD Python console. Tested on PPA based AppImage (Py2/Qt4).
User avatar
kkremitzki
Veteran
Posts: 2511
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: PyCollada on Appimage

Post by kkremitzki »

triplus wrote: Wed Mar 27, 2019 6:13 pm
It looks like pycollada currently only supports Python 2?
The version in the repos does only support Python 2, I've packaged a new version with Python 3 support but it's awaiting a sponsor. For now a package is available in the Community Extras PPA:
https://launchpad.net/~freecad-communit ... ubuntu/ppa
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
Post Reply