Could someone make a .19 conda version with python 3.7 to work with blender3d?

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
bkjernisted
Posts: 17
Joined: Mon Jan 06, 2020 5:38 pm

Could someone make a .19 conda version with python 3.7 to work with blender3d?

Post by bkjernisted »

https://github.com/sgrogan/FreeCAD/rele ... /PY3.7-win This version is an older version and the plugins are not packaged with it. Please see this thread and maybe someone can make a version to work with blender 2.82a, blender 2.83 and blender 2.9. https://blenderartists.org/t/freecad-em ... rs/1218702 Thanks Edit- Qt is 5.9.7 in the py3.7-win release linked above. Python is 3.7.3
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: Could someone make a .19 conda version with python 3.7 to work with blender3d?

Post by looo »

Is there still no blender version with py38 available? Blender gets lots of funding. It's a shame they are behind us in this regard. Would be nice if you can ask them to update.

A freecad py3.7 package is available from conda-forge. So actually there is no excuse.
bkjernisted
Posts: 17
Joined: Mon Jan 06, 2020 5:38 pm

Re: Could someone make a .19 conda version with python 3.7 to work with blender3d?

Post by bkjernisted »

Hi looo. I posted the link to the 3.7 py version of freecad above. Is that the one you are talking about. It does not have some plugins installed and I don't know how to install them. It is only version.18. Thanks
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Could someone make a .19 conda version with python 3.7 to work with blender3d?

Post by sgrogan »

looo wrote: Fri May 08, 2020 6:21 am Is there still no blender version with py38 available?
This is on their roadmap but I think 2.8-alpha is PY3.7. @Syres had a recent post explaining this but I can't find it at the moment.

I asked @bkjernisted to open this thread https://forum.freecadweb.org/viewtopic. ... 10#p396730, but I had a different intention in mind.
With 0.19 release coming I just want to keep in mind Blender compatibility.
I think FreeCAD Conda should continue to be as "bleeding edge" as possible i.e. PY3.8.

Conda also offers the ability to create some custom environments. Maybe it should be the Libpack that supports this. I'm not sure. I'm not asking anybody to do anything but think about it. i.e. PY3.7 for Blender. I think I can make a release build that supports this, that is not frequently updated.
@bkjernisted's link https://blenderartists.org/t/freecad-em ... rs/1218702 hints at mesh to nurbs. That would be pretty interesting.
looo wrote: Fri May 08, 2020 6:21 am A freecad py3.7 package is available from conda-forge.
Is this the 0.19-alpha? And how can I help with this?
"fight the good fight"
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: Could someone make a .19 conda version with python 3.7 to work with blender3d?

Post by looo »

sgrogan wrote: Fri May 08, 2020 9:04 pm Is this the 0.19-alpha? And how can I help with this?
Yes exactly. Simple tell people to use conda directly if such special stuff is needed.... ;) As it is now all on conda-forge installing is as simple as:

1. install miniconda
2. add conda-forge channel: `conda config --add channels conda-forge`
3. create env: `conda create -n freecad37 freecad python=3.7.*
4. activate the env: `conda activate freecad37
5. start freecad: `freecad`


I had a look at packaging blender for conda once. This for sure would be another nice to have, as blender and freecad could be installed in the same environment and therefore compatibility is guaranteed.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Could someone make a .19 conda version with python 3.7 to work with blender3d?

Post by sgrogan »

looo wrote: Sat May 09, 2020 7:37 amYes exactly.
Thanks I was pinning Python improperly.
This build seems to suffer from the NetGen/SMesh problem? https://forum.freecadweb.org/viewtopic. ... 58#p396818
I'll continue this discussion in that thread.
looo wrote: Sat May 09, 2020 7:37 am Simple tell people to use conda directly if such special stuff is needed.... ;)
I am working on something for the wiki. I think I will concentrate on this instead of re-packaging the conda build.
looo wrote: Sat May 09, 2020 7:37 am I had a look at packaging blender for conda once. This for sure would be another nice to have, as blender and freecad could be installed in the same environment and therefore compatibility is guaranteed.
I'm surprised they don't have someone working on this. I think we can leave that part to them ;)
"fight the good fight"
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: Could someone make a .19 conda version with python 3.7 to work with blender3d?

Post by looo »

sgrogan wrote: Sat May 09, 2020 4:45 pm I'm surprised they don't have someone working on this. I think we can leave that part to them ;)
Yes, I think so too. They have quite some special dependencies which are not yet available on conda-forge. I guess packaging blender is as difficult as packaging freecad. So, therefore, be prepared if you want to start such efforts. ;)
bkjernisted
Posts: 17
Joined: Mon Jan 06, 2020 5:38 pm

Re: Could someone make a .19 conda version with python 3.7 to work with blender3d?

Post by bkjernisted »

Thank you sgrogan and looo. I appreciate your looking at this.
Syres
Veteran
Posts: 2891
Joined: Thu Aug 09, 2018 11:14 am

Re: Could someone make a .19 conda version with python 3.7 to work with blender3d?

Post by Syres »

I followed @looo's 5 steps (replacing the asterix in step 3 with a 6) and got a recent 0.19 build with Python 3.7.6 which works happily with Blender 2.90Alpha (Python 3.7.4) to do FreeCAD imports.

OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.20909 (Git)
Build type: Release
Branch: (HEAD detached at 0.19.alpha2)
Hash: 8be2c08141f0275e9da005bd143771953e982a59
Python version: 3.7.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United Kingdom (en_GB)
bkjernisted
Posts: 17
Joined: Mon Jan 06, 2020 5:38 pm

Re: Could someone make a .19 conda version with python 3.7 to work with blender3d?

Post by bkjernisted »

Syres, I am not a programmer. Can you post this version and provide a link. Would it work in 2.82a? Thanks
Post Reply