Py3 Mac app for testing
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Py3 Mac app for testing
Thanks to the great work looo has done with conda packaging, I was able to put together a mac app using python 3.6. I only used conda for installing the dependencies and compiled the app manually. Eventually it would be good to be able to create an app from the freecad conda package. Anyway, here is a direct link if you want to try it out: https://github.com/FreeCAD/FreeCAD/rele ... t5-Py3.dmg. It might work on macOS versions as far back as 10.9. Interestingly the .dmg increased by 200MB, but I haven't looked into why.
I hadn't really considered changing to using conda instead of homebrew for macOS packaging, since homebrew is pretty standard for developers using macOS. However, with the change to py3, and all the required packages already available with conda, and my very limited time....it is sounding like a pretty good idea to me right now.
I hadn't really considered changing to using conda instead of homebrew for macOS packaging, since homebrew is pretty standard for developers using macOS. However, with the change to py3, and all the required packages already available with conda, and my very limited time....it is sounding like a pretty good idea to me right now.
Re: Py3 Mac app for testing
This is great! All workbenches are working again (Path, Draft, Arch). From my side it could well replace the current 15310.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Py3 Mac app for testing
congrats @Looo and @peterl94 Nice to see a OSX version again!!
Re: Py3 Mac app for testing
@peterl94 and @loo - well done. I'm onboard with this for all platforms as I stated here about a week ago - https://github.com/FreeCAD/FreeCAD-AppI ... -450514116 and in some back and forth with peterl4 and looo. Resurrecting Homebrew builds is within https://travis-ci.org/FreeCAD/homebrew- ... /473602650 but I am a firm believer, if possible, that we should invest in a singular, cross-platform solution over more redundantly laborious platform-specific solutions to efficiently maintain cadence across platforms. Of course, @looo's spear-heading of Conda illuminated the possibility of such a path early on...
Re: Py3 Mac app for testing
I am not sure what triggers it, becuase it usually happens when I am doing nothing, so perhaps it has to do with the autosave mechanism or some other timer triggered event.
I sometimes get the error message
I don't have any fancy characters or blanks in the path, neither to the program, nor to the file nor to my home directory.
OS: macOS 10.13
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15525 (Git)
Build type: Release
Branch: master
Hash: 1a7d3d9a37fe43468c8ac84590c1db53e2b2000a
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
I sometimes get the error message
Code: Select all
Traceback (most recent call last):
File "/Users/cb/Desktop/FreeCAD.app/Contents/lib/python3.6/json/__init__.py", line 231, in dumps
return _default_encoder.encode(obj)
File "/Users/cb/Desktop/FreeCAD.app/Contents/lib/python3.6/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/Users/cb/Desktop/FreeCAD.app/Contents/lib/python3.6/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/Users/cb/Desktop/FreeCAD.app/Contents/lib/python3.6/json/encoder.py", line 180, in default
o.__class__.__name__)
<class 'TypeError'>: Object of type 'dict_items' is not JSON serializable
OS: macOS 10.13
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15525 (Git)
Build type: Release
Branch: master
Hash: 1a7d3d9a37fe43468c8ac84590c1db53e2b2000a
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Py3 Mac app for testing
thanks @peterl94 for your efforts to create a mac-bundle.
Some thoughts on the creation of the bundle:
1. when you create the environment use an additional constraint: blas=*=openblas
This will make sure openblas is used instead of mkl. (mkl is very big in size)
2. conda ships static libs and shared libs together. For the appimage we remove all the static libs after the env-creation. Maybe this works also for the mac-bundle: https://github.com/FreeCAD/FreeCAD-AppI ... .sh#L33L34 (Also removing unnecessary stuff from bin and include should result in a smaller size)
3. Maybe it's also possible to ship calculix within the bundle. (The package is not very big: https://anaconda.org/conda-forge/calculix/files)
Btw.: I am still using a patch for osx-builds.
1. https://github.com/looooo/freecad-feeds ... /osx.patch
Did building FreeCAD without this patch worked for you? If so I will try to remove it for the next weekly conda-build.
Some thoughts on the creation of the bundle:
1. when you create the environment use an additional constraint: blas=*=openblas
This will make sure openblas is used instead of mkl. (mkl is very big in size)
2. conda ships static libs and shared libs together. For the appimage we remove all the static libs after the env-creation. Maybe this works also for the mac-bundle: https://github.com/FreeCAD/FreeCAD-AppI ... .sh#L33L34 (Also removing unnecessary stuff from bin and include should result in a smaller size)
3. Maybe it's also possible to ship calculix within the bundle. (The package is not very big: https://anaconda.org/conda-forge/calculix/files)
Btw.: I am still using a patch for osx-builds.
1. https://github.com/looooo/freecad-feeds ... /osx.patch
Did building FreeCAD without this patch worked for you? If so I will try to remove it for the next weekly conda-build.
Re: Py3 Mac app for testing
I might add that this does not lead to any further problems.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.