FEM and python 3 issues

About the development of the FEM module/workbench.

Moderator: bernd

triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: FEM and python 3 issues

Post by triplus »

bernd wrote: Fri Nov 09, 2018 6:30 am wow that sounds gread! but I need to install some package on my debian, do I? Which one, there is no package called appimage on debian stretch.
No additional packages need to get installed. What is needed is already included in the AppImage. As @sgrogan pointed out therefore all you need to do is to download the AppImage from the FreeCAD GitHub releases page (and follow the procedure above).

P.S. Note that there are 2 AppImages on the releases page (Py2/Qt4 - PPA based and Py3/Qt5 - Conda based).
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM and python 3 issues

Post by bernd »

triplus wrote: Thu Nov 08, 2018 12:22 am
sgrogan wrote: Wed Nov 07, 2018 11:36 pm
triplus wrote: Wed Nov 07, 2018 10:59 pm FYI there is a Conda based AppImage available and therefore you don't need Windows to test it.
Is there a way to edit files (.py) in the AppImage? Testing is great, but we are counting on bernd to fix it.
Sure.

Code: Select all

downloaded.AppImage --appimage-extract
cd squashfs-root
You can navigate to content such as usr/Mod/Fem/module.py and do some modifications. To test the changes:

Code: Select all

./AppRun
If you want to pack it again as an AppImage:

Code: Select all

cd ..
wget "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
chmod a+x appimagetool-x86_64.AppImage
./appimagetool-x86_64.AppImage squashfs-root
:shock: :shock: :shock: I never knew it's so easy ... i really could'nt believe it :oops:
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM and python 3 issues

Post by bernd »

- start FreeCAD
- open FEM new solver example
- double click on elmer solver

Code: Select all

Traceback (most recent call last):
  File "/home/hugo/Desktop/AppImage/squashfs-root/usr/Mod/Fem/femsolver/solverbase.py", line 79, in setEdit
    machine = run.getMachine(vobj.Object)
  File "/home/hugo/Desktop/AppImage/squashfs-root/usr/Mod/Fem/femsolver/run.py", line 54, in getMachine
    _DocObserver.attach()
  File "/home/hugo/Desktop/AppImage/squashfs-root/usr/Mod/Fem/femsolver/run.py", line 334, in attach
    cls._instance = cls()
  File "/home/hugo/Desktop/AppImage/squashfs-root/usr/Mod/Fem/femsolver/run.py", line 326, in __init__
    for doc in App.listDocuments().itervalues():
<class 'AttributeError'>: 'dict' object has no attribute 'itervalues'
confirmed on:

OS: Debian GNU/Linux 9 (stretch)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15150 (Git)
Build type: Release
Branch: master
Hash: fe8f172ce1f725cbc5e7a1538beaaac6a6529ec2
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Switzerland (de_CH)


partially joined the Py3 party :D
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: FEM and python 3 issues

Post by triplus »

bernd wrote: Sat Nov 10, 2018 12:07 pm :shock: :shock: :shock: I never knew it's so easy ... i really could'nt believe it :oops:
Good to hear it is working. Thanks to all the hard work AppImage inventors did. Packaging work invested on PPA/Conda side. Travis related work macOS FreeCAD packaging team did in the past ...
bernd wrote: Sat Nov 10, 2018 12:09 pm partially joined the Py3 party :D
PR or it didn't happen. ;)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: FEM and python 3 issues

Post by Kunda1 »

triplus wrote: Thu Nov 08, 2018 11:14 pm Mentioned procedure doesn't modify your environment in any way. That is nothing gets installed and no environment paths get modified.
FYI, I've added this to Appimage#Using_AppImages_in_your_Development_Workflow
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: FEM and python 3 issues

Post by triplus »

Great.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM and python 3 issues

Post by bernd »

triplus wrote: Sat Nov 10, 2018 1:24 pm
bernd wrote: Sat Nov 10, 2018 12:09 pm partially joined the Py3 party :D
PR or it didn't happen. ;)
:mrgreen: if the PR would be the one that counts I have joined month ago already ... git commit 42bfdf2 or git commit 8de9707 or git commit 656a669 IMHO joining the party for me means MY work and developing machine runs Py3 ...
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: FEM and python 3 issues

Post by triplus »

All this Python 3 partying going on lately. Hard to keep track! 8-)
Post Reply