"experimental" solver and py3/ Qt5

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

"experimental" solver and py3/ Qt5

Post by Jee-Bee »

Hello i have downloaded the windows conda py3Qt5 build. Since these don't have GMSH or calculix i use the calculix from other version(py2).
This works well with default ccx solver. but not with the "experimental" one. I get this error. I guess it has something to do with py3 or Qt5? can somebody confirm?

Code: Select all

Exception in thread Thread-22:
Traceback (most recent call last):
  File "C:\Users\USER\Downloads\FreeCAD_0.18.15399_Conda_Py3QT5-WinVS2015_x64\bin\lib\threading.py", line 916, in _bootstrap_inner
    self.run()
  File "C:\Users\USER\Downloads\FreeCAD_0.18.15399_Conda_Py3QT5-WinVS2015_x64\bin\lib\threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\USER\Downloads\FreeCAD_0.18.15399_Conda_Py3QT5-WinVS2015_x64\Mod\Fem\femsolver\task.py", line 115, in protector
    self.run()
  File "C:\Users\USER\Downloads\FreeCAD_0.18.15399_Conda_Py3QT5-WinVS2015_x64\Mod\Fem\femsolver\calculix\tasks.py", line 89, in run
    stderr=subprocess.PIPE)
  File "C:\Users\USER\Downloads\FreeCAD_0.18.15399_Conda_Py3QT5-WinVS2015_x64\bin\lib\subprocess.py", line 667, in __init__
    errread, errwrite) = self._get_handles(stdin, stdout, stderr)
  File "C:\Users\USER\Downloads\FreeCAD_0.18.15399_Conda_Py3QT5-WinVS2015_x64\bin\lib\subprocess.py", line 905, in _get_handles
    p2cread = self._make_inheritable(p2cread)
  File "C:\Users\USER\Downloads\FreeCAD_0.18.15399_Conda_Py3QT5-WinVS2015_x64\bin\lib\subprocess.py", line 955, in _make_inheritable
    _winapi.DUPLICATE_SAME_ACCESS)
OSError: [WinError 6] The handle is invalid
[\code]
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: "experimental" solver and py3/ Qt5

Post by bernd »

It is not the experimental solver you are talking about (this is just the mune entry). It is about the solver framework solver ccx. Just gave it a try too on

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15396 (Git)
Build type: Release
Branch: master
Hash: 5dee2fdfb38881a881493b2b610640bb7f3347c3
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Switzerland (de_CH)


I can confirm the following problem:

Code: Select all

Exception in thread Thread-7:
Traceback (most recent call last):
  File "C:\0_BHA_privat\progr\FreeCAD_0.18.xxxxx_x64_dev_py3Qt5\bin\lib\threading.py", line 916, in _bootstrap_inner
    self.run()
  File "C:\0_BHA_privat\progr\FreeCAD_0.18.xxxxx_x64_dev_py3Qt5\bin\lib\threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "C:\0_BHA_privat\progr\FreeCAD_0.18.xxxxx_x64_dev_py3Qt5\Mod\Fem\femsolver\task.py", line 115, in protector
    self.run()
  File "C:\0_BHA_privat\progr\FreeCAD_0.18.xxxxx_x64_dev_py3Qt5\Mod\Fem\femsolver\calculix\tasks.py", line 91, in run
    output = self._observeSolver(self._process)
  File "C:\0_BHA_privat\progr\FreeCAD_0.18.xxxxx_x64_dev_py3Qt5\Mod\Fem\femsolver\calculix\tasks.py", line 102, in _observeSolver
    output += line
TypeError: must be str, not bytes
If you try in Task Panel you will see file writing works well, but ccx can not be run. Z88 and Elmer solver framework solver have similar problems.

Seams noone has ever used the solver framework solver on Py3.

cheers bernd
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: "experimental" solver and py3/ Qt5

Post by Jee-Bee »

thanks
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: "experimental" solver and py3/ Qt5

Post by bernd »

User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: "experimental" solver and py3/ Qt5

Post by bernd »

Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: "experimental" solver and py3/ Qt5

Post by Jee-Bee »

great Thanks Bernd
Post Reply