ana(conda) windows packaging

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
sgrogan
Posts: 3061
Joined: Wed Oct 22, 2014 5:02 pm

Re: ana(conda) windows packaging

Postby sgrogan » Thu Apr 20, 2017 10:51 pm

Thanks everyone who worked on the OCCT7.1 stuff for win!
looo wrote:Code: Select all
conda create -n <name> freecad occt=7.0.0

I get

Code: Select all

# All requested packages already installed.
# packages in environment at C:\Users\Chris\Miniconda3:
#
conda                     4.3.16                   py35_0    conda-canary

(C:\Users\Chris\Miniconda3) C:\Users\Chris>conda create -n fcocc7 freecad occt=7
.0.0
Fetching package metadata .............


PackageNotFoundError: Package missing in current win-64 channels:
  - freecad

Close matches found; did you mean one of these?

    freecad: freetds
looo
Posts: 788
Joined: Mon Nov 11, 2013 5:29 pm

Re: ana(conda) windows packaging

Postby looo » Fri Apr 21, 2017 7:40 am

is the freecad-channel in the config?

Code: Select all

conda config --show-sources


ps.: Currently I can not build with windows. I will upload a new build with occt7.1.0 next week.
User avatar
sgrogan
Posts: 3061
Joined: Wed Oct 22, 2014 5:02 pm

Re: ana(conda) windows packaging

Postby sgrogan » Fri Apr 21, 2017 10:46 pm

looo wrote:is the freecad-channel in the config?

Image
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10700 (Git)
Build type: Release
Branch: py3-25
Hash: 79ecc1689ee4888341425dda3312acdf99b85742
Python version: 3.5.3
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
looo
Posts: 788
Joined: Mon Nov 11, 2013 5:29 pm

Re: ana(conda) windows packaging

Postby looo » Mon Apr 24, 2017 5:41 pm

FreeCAD occt7.1.0 version is uploaded.
User avatar
sgrogan
Posts: 3061
Joined: Wed Oct 22, 2014 5:02 pm

Re: ana(conda) windows packaging

Postby sgrogan » Mon Apr 24, 2017 10:30 pm

looo wrote:FreeCAD occt7.1.0 version is uploaded.

Thanks :D
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11022 (Git)
Build type: Release
Branch: py3-26
Hash: ba81bf9e5b348000f49577f4e67c432c5171c165
Python version: 3.5.3
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0

Installs and runs, but plenty to work on.

1) obvious python stuff (mixed spaces/tabs, missing () in prints), stuff I can fix
2) probably python stuff (i.e.

Code: Select all

  File "C:\Users\Chris\Miniconda3\envs\fcocc71\Library\Mod\Arch\ArchProfile.py", line 65, in readPresets
    for row in beamreader:
_csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)
), more difficult for me to fix.
3) packaging (missing .dll's)

How best can I contribute. For ex. 1) make a pull request against master or your py3 fork? For 3) should I concentrate on learning to do the conda builds, or concentrate on reporting the problems? We'll probably need Peter's help either way.
Like everyone else, time is limited, so I'd like to use it most efficiently for the greater goal.
looo
Posts: 788
Joined: Mon Nov 11, 2013 5:29 pm

Re: ana(conda) windows packaging

Postby looo » Tue Apr 25, 2017 5:52 am

Thanks for testing!
I am quite unsure how to proceed. As you may know I have written a proposal for gsoc (py3 support). So there I have proposed to work on the python3 branch. How I proceed with python3 is up to the decission of gsoc...

This list https://github.com/looooo/FreeCAD/issues/8 gives an overview of the modules without diff. so doing a PR directly on master is the best idea. (for arch). The py3branch gets rebased quite frequently, so the pr should land there soon after it is accepted in master.

I will try to create a seperate python3 repo to have a place for python3 issues. I think it doesn't make much sense to create bug-reports with mantis at the moment?
looo
Posts: 788
Joined: Mon Nov 11, 2013 5:29 pm

Re: ana(conda) windows packaging

Postby looo » Tue Apr 25, 2017 8:23 am

It seems there is no way to have a second fork with github. So maybe the best idea is to create issues in my FreeCAD fork on github and add a "python3" label.
CADennis
Posts: 20
Joined: Tue Apr 18, 2017 10:12 am

Re: ana(conda) windows packaging

Postby CADennis » Tue Apr 25, 2017 4:55 pm

looo wrote:Thanks for testing!
I am quite unsure how to proceed. As you may know I have written a proposal for gsoc (py3 support). So there I have proposed to work on the python3 branch. How I proceed with python3 is up to the decission of gsoc... [...]

:arrow: looo, please have a look there, how we could get Py3+Py2 stabelized, on both Conda and native OS installers: https://forum.freecadweb.org/viewtopic. ... 19#p171319
User avatar
sgrogan
Posts: 3061
Joined: Wed Oct 22, 2014 5:02 pm

Re: ana(conda) windows packaging

Postby sgrogan » Wed Apr 26, 2017 7:20 pm

looo wrote:This list https://github.com/looooo/FreeCAD/issues/8 gives an overview of the modules without diff. so doing a PR directly on master is the best idea. (for arch). The py3branch gets rebased quite frequently, so the pr should land there soon after it is accepted in master.

Thanks looo. Can you load the FEM wb on win?
For those following along. I'm getting a missing dll error. I'm trying to get dependency walker working but the conda version has a conflict with occ7.1.0 and wants to downgrade. When I try to use my system installed dependency walker I get a python35.dll error.
looo
Posts: 788
Joined: Mon Nov 11, 2013 5:29 pm

Re: ana(conda) windows packaging

Postby looo » Wed Apr 26, 2017 8:52 pm

sgrogan wrote:Thanks looo. Can you load the FEM wb on win?

yes works for me. Maybe you have a mismatch of occt-version and netgen-version. There is currently a problem with occt, because I once set the tracking-feature wrong. So occt7.1.0 has a occt7.0.0 feature...
If your internet is fast enough the easiest thing is to:

Code: Select all

conda env remove -n <name>
conda create -n <name> freecad occt=7.1.0


without the occt specification occt7.0.0 will be installed. Maybe this is related to the netgen-occt7.0.0 version. But I am not that sure.