Search found 3104 matches

Go to advanced search

by looo
Sat Dec 24, 2016 11:32 am
Forum: Developers corner
Topic: Porting to python3
Replies: 943
Views: 97131

Re: Porting to python3

@ickby the extension added a new python3 error. Maybe you can have a look at this file: https://github.com/FreeCAD/FreeCAD/blob/master/src/App/ExtensionContainerPyImp.cpp#L126 The Py_FindMethod isn't available for python3. I couldn't figure out how to solve this. Maybe this can be of any help: https...
by looo
Sat Dec 24, 2016 10:57 am
Forum: Developers corner
Topic: Packaging solution: (ana)conda
Replies: 233
Views: 26579

Re: Packaging solution: (ana)conda

Finally I have found a workaround to reuse builds. It needs the conda-build flag --dirty + specifying the source dir only in the build.sh file. With this I can hopefully build and test the python3 branch. The --dirty flag isn't working with the current conda_build, but I think they already solved th...
by looo
Thu Dec 22, 2016 10:08 pm
Forum: Developers corner
Topic: Porting to python3
Replies: 943
Views: 97131

Re: Porting to python3

ah thanks for the information. Python3 needs for sure some more love. The problem for me at the moment is, that conda doesn't allow to reuse a build. So I have to build the full tree all the time to test with python3. With the std. ubuntu python3 librariues I get this error: make[2]: *** Keine Regel...
by looo
Thu Dec 22, 2016 7:52 pm
Forum: Developers corner
Topic: Porting to python3
Replies: 943
Views: 97131

Re: Porting to python3

btw.': shouldn't travis build with python2 and python3? https://github.com/looooo/FreeCAD/blob/ ... is.yml#L32
by looo
Thu Dec 22, 2016 4:35 pm
Forum: Developers corner
Topic: Porting to python3
Replies: 943
Views: 97131

Re: Porting to python3

no, that shouldn't be a problem. The branch should work with both (python2 and 3). I am also trying to compile with python2.
by looo
Thu Dec 22, 2016 3:09 pm
Forum: Developers corner
Topic: Porting to python3
Replies: 943
Views: 97131

Re: Porting to python3

The error is something about a missing spreadsheet-file. I think I had this error with the last rebased branch from yorik (py3_20) too. But this was solved in master. So after rebasing on master again, my py3-21 branch should have the fix. No idea what is wrong here. Maybe the ci's started before I ...
by looo
Thu Dec 22, 2016 2:31 pm
Forum: Developers corner
Topic: Porting to python3
Replies: 943
Views: 97131

Re: Porting to python3

thanks for setting this up.
The error reported by windows/linux ci's can be found in this thread. I think it was a bug, but was solved some time ago.
The mac-builds fail with the file I have mentioned aboth. I have tried to repair this. It does work now on my local machine.
by looo
Thu Dec 22, 2016 1:24 pm
Forum: Developers corner
Topic: Porting to python3
Replies: 943
Views: 97131

Re: Porting to python3

I tried rebasing again, and this time it worked much better. This time I tried the other way: git checkout py3_20 git checkout -b py3_21 git rebase FreeCAD/master I couldn't resolve one mergeconflict in src/App/FeaturePythonPyImp.inl which had quite some differences. I simple used the current master...
by looo
Sat Dec 17, 2016 8:17 am
Forum: Developers corner
Topic: Porting to python3
Replies: 943
Views: 97131

Re: Porting to python3

ok the rebase has finished. But I have encountered some problems: I used this: git checkout FreeCAD/master git checkout -b py3_21 git rebase yorik/py3-20 There were many merge-conflicts to resolve. I maybe have destroyed some things, but with the kdiff3-tool solving merge conflicts is really a lot e...
by looo
Fri Dec 16, 2016 3:33 pm
Forum: Developers corner
Topic: Porting to python3
Replies: 943
Views: 97131

Re: Porting to python3

I am trying hard to rebase :D but I have some difficult conflicts: this line: https://github.com/FreeCAD/FreeCAD/blob/master/src/App/FeaturePythonPyImp.inl#L145 is renamed from getattr to getattro. What is the reason? This is done for python2 and 3... A_B_or_C.png why was the change from char to Pyo...

Go to advanced search