FreeCAD Conda Distribution

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: FreeCAD Conda Distribution

Post by onekk »

adrianinsaval wrote: ...

Code: Select all

conda update -n fcenv-dev freecad
did not update to 0.21 yet.

Following the link you gave me show that packages are build and even in:

https://anaconda.org/freecad/freecad/files

It seems that are present.

Is there some other action to do to update?

TIA and Regards.

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD Conda Distribution

Post by adrianinsaval »

what version of python is your env using? I only see versions for 3.9 and 3.10 on that page, perhaps you are on a 3.8 environment? not sure how that works
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: FreeCAD Conda Distribution

Post by looo »

onekk wrote: Wed Jun 22, 2022 1:27 pm
adrianinsaval wrote: Wed Jun 22, 2022 1:21 pm patience young padawan ...
:D

Sorry I haven't noted the time of the commit!

Will be 0.20 downloadable as stable? so:

Code: Select all

conda create --name fcenv --channel conda-forge freecad
Will install 0.20 ?

TIA and Regards

Carlo D.
0.20 is in conda-folge. So if you want the stable version install it without the freecad/label/dev channel. Normally 0.21-pre builds should be the preferred ones if you do not mention a version. In case you have any problems it's also possible to mention the version like `conda install freecad=0.21`.

it's possible that the stable 0.20 version uses some newer deps and therefore is preferred. I guess this will be resolved in the near future.
Last edited by looo on Fri Jun 24, 2022 9:54 am, edited 1 time in total.
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: FreeCAD Conda Distribution

Post by onekk »

looo wrote: Fri Jun 24, 2022 9:44 am 0.20 is in conda-folge. So if you want the stable version install it without the freecad/label/dev channel. Normally 0.21-pre builds should be the preferred ones if you do not mention a version. In case you have any problems it's also possible to mention the version like `conda install freecad=0.21`.

Thanks, for answering.

OK for 0.20 so the stable ion conda-force now is 0.20

for 0.21 I have set the fcdev-env and at least yesterday it will not update freecad to 0.21 leaving the 0.20 installed.

Ok to force version, but I have a couple of question.

I usually update the fcdev-env with:

Code: Select all

conda update -n fcenv-dev freecad
as said above.

1) If I force the update to 0.21 using the line you kindly supllied me, subsequent updates will refer to 0.21?
2) I have read conda documentation, but I was lost, in particular, "packages recipes" (I don't know if term is correct) in other word what you have modified in the github repo that @adrianinsaval linked (that should be your github repo) are update and taken in account by my conda install with line above or I have to do some other actions?


TIA and Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: FreeCAD Conda Distribution

Post by looo »

as I said in the previous post it's possible that the stable version is using some newer versions. I guess updating the 0.21 feedstock (rendering) should fix this. Lets try it:
https://github.com/looooo/freecad-feeds ... 71307960b9

For now you need to force the 0.21 version. I guess this is also possible with the update command: `conda update --all freecad=0.21`
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: FreeCAD Conda Distribution

Post by onekk »

looo wrote: Fri Jun 24, 2022 10:01 am

Not so very plain transition:

Code: Select all

conda install -n fcenv-dev freecad=0.21
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done
Probably I have to use some flag, but at least it has been installed.

I have to study more miniconda.

Thanks again for your help

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: FreeCAD Conda Distribution

Post by looo »

onekk wrote: Fri Jun 24, 2022 10:23 am
looo wrote: Fri Jun 24, 2022 10:01 am

Not so very plain transition:

Code: Select all

conda install -n fcenv-dev freecad=0.21
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done
Probably I have to use some flag, but at least it has been installed.

I have to study more miniconda.

Thanks again for your help

Regards

Carlo D.
you can also try to use mamba which is a better dependency solver replacement for conda...

Btw.: I guess I found the reason why the environment wasn't updated automatically to 0.21:
https://github.com/looooo/freecad-feeds ... 085bd4b6b9
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: FreeCAD Conda Distribution

Post by onekk »

looo wrote: Fri Jun 24, 2022 10:32 am you can also try to use mamba which is a better dependency solver replacement for conda...
Thanks, I will see how to install it on my miniconda install.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD Conda Distribution

Post by adrianinsaval »

looo wrote: Fri Jun 24, 2022 10:32 am Btw.: I guess I found the reason why the environment wasn't updated automatically to 0.21:
https://github.com/looooo/freecad-feeds ... 085bd4b6b9
isn't tbb needed for multithreading in occt?
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: FreeCAD Conda Distribution

Post by looo »

adrianinsaval wrote: Fri Jun 24, 2022 11:19 pm
looo wrote: Fri Jun 24, 2022 10:32 am Btw.: I guess I found the reason why the environment wasn't updated automatically to 0.21:
https://github.com/looooo/freecad-feeds ... 085bd4b6b9
isn't tbb needed for multithreading in occt?
It's optional. https://github.com/conda-forge/occt-fee ... -981799139
Post Reply