LibPack for Windows "Python packages"

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
User avatar
apeltauer
Posts: 359
Joined: Fri Aug 11, 2017 2:19 pm

LibPack for Windows "Python packages"

Postby apeltauer » Tue Nov 10, 2020 4:22 pm

Hi all,

i am creating a new lib pacl for windows. This would be a good time to also add the needed python packages.
Please add the python packaes needed, i will then add them. Best would be if the packages could be added with pip...
User avatar
uwestoehr
Posts: 2143
Joined: Sun Jan 27, 2019 3:21 am

Re: LibPack for Windows "Python packages"

Postby uwestoehr » Wed Nov 11, 2020 12:33 pm

apeltauer wrote:
Tue Nov 10, 2020 4:22 pm
Please add the python packaes needed,
Yorik, bernd, vocx-fc, maybe you have a list of Python packages used by Arch, Draft and FEM?

yorik wrote: .
bernd wrote: .
vocx wrote: .
User avatar
sgrogan
Posts: 6205
Joined: Wed Oct 22, 2014 5:02 pm

Re: LibPack for Windows "Python packages"

Postby sgrogan » Wed Nov 11, 2020 9:23 pm

Based on your https://github.com/apeltauer/FreeCAD/re ... estLibPack
1) Upgrade pip:

Code: Select all

./python -m pip install --upgrade pip
2) Packages available with pip that FreeCAD core will use if available:

Code: Select all

./python -m pip install GitPython matplotlib ply pycollada
I think unit tests fail without matplotlib.
3) Packages that FreeCAD will use, not available from pip:
opencamlib, I can provide a package from Conda.
IfcOpenShell, I can provide a package from their build bot.
4) Packages used by modules in Addons manager:
a) install-able with pip
b) not install-able with pip

I'll work on a list for 4, but this is an oppurtunity for Addon WB authors to get their dependencies in the Win bundle, making it easier for their users.
"fight the good fight"
User avatar
sgrogan
Posts: 6205
Joined: Wed Oct 22, 2014 5:02 pm

Re: LibPack for Windows "Python packages"

Postby sgrogan » Wed Nov 11, 2020 11:02 pm

sgrogan wrote:
Wed Nov 11, 2020 9:23 pm
opencamlib, I can provide a package from Conda.
For PY3.8
ocl.txt
(844 KiB) Downloaded 13 times
It needs to be renamed .pyd and placed in site-packages
"fight the good fight"
User avatar
sgrogan
Posts: 6205
Joined: Wed Oct 22, 2014 5:02 pm

Re: LibPack for Windows "Python packages"

Postby sgrogan » Wed Nov 11, 2020 11:27 pm

sgrogan wrote:
Wed Nov 11, 2020 9:23 pm
IfcOpenShell, I can provide a package from their build bot.
WARNING: Direct downlod
https://s3.amazonaws.com/ifcopenshell-b ... -win64.zip
"fight the good fight"
User avatar
HakanSeven12
Posts: 1065
Joined: Wed Feb 06, 2019 10:30 pm

Re: LibPack for Windows "Python packages"

Postby HakanSeven12 » Thu Nov 12, 2020 7:16 am

Cross post

HakanSeven12 wrote:
Tue Jun 23, 2020 7:36 am
Can someone update pivy for LP? With Conda build SoGeo classes working fine. But LP build gives error.

Code: Select all

During initialization the error "module 'pivy.coin' has no attribute 'SoGeoCoordinate'" occurred in freecad.trails
--------------------------------------------------------------------------------
Traceback (most recent call last):
  File "<string>", line 148, in InitApplications
  File "importlib\__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  ...
  File "C:\Users\thomas.schrader\AppData\Roaming\FreeCAD\Mod\Trails\pivy_trackers\pivy_trackers\coin\coin_enums.py", line 342, in NodeTypes
    GEO_COORDINATE = coin.SoGeoCoordinate
AttributeError: module 'pivy.coin' has no attribute 'SoGeoCoordinate'
--------------------------------------------------------------------------------
I noticed this issue months ago. LP versions doesn't support SoGeo nodes. This nodes are my workbench dependences. If someone can fix it that would be great. Conda versions doesn't have this issue.
User avatar
sgrogan
Posts: 6205
Joined: Wed Oct 22, 2014 5:02 pm

Re: LibPack for Windows "Python packages"

Postby sgrogan » Mon Nov 16, 2020 9:44 pm

Code: Select all

./python -m pip install PyYAML
is also needed to pass the FEM unit tests
"fight the good fight"
User avatar
apeltauer
Posts: 359
Joined: Fri Aug 11, 2017 2:19 pm

Re: LibPack for Windows "Python packages"

Postby apeltauer » Thu Dec 03, 2020 2:23 pm

User avatar
uwestoehr
Posts: 2143
Joined: Sun Jan 27, 2019 3:21 am

Re: LibPack for Windows "Python packages"

Postby uwestoehr » Fri Dec 04, 2020 2:14 am

apeltauer wrote:
Thu Dec 03, 2020 2:23 pm
new libpack is available...
https://github.com/apeltauer/FreeCAD/re ... ack_12.4.2
Many thanks! I will try out out ASAP.
User avatar
uwestoehr
Posts: 2143
Joined: Sun Jan 27, 2019 3:21 am

Re: LibPack for Windows "Python packages"

Postby uwestoehr » Sat Dec 05, 2020 11:37 pm

I tested it out - just to compile. It compiles fine, many thanks!

I get now only many warnings but in principles there are only 2 issues:

A: redefinition of HAVE_UINT8_T:

Code: Select all

60>D:\FreeCAD-build\FreeCADLibs_12.4.2_x64_VC17\include\Inventor/system/inttypes.h(90,1): warning C4005: 'HAVE_INT8_T': macro redefinition
60>D:\FreeCADGit\src\FCConfig.h(134): message : see previous definition of 'HAVE_INT8_T'
60>D:\FreeCAD-build\FreeCADLibs_12.4.2_x64_VC17\include\Inventor/system/inttypes.h(91,1): warning C4005: 'HAVE_UINT8_T': macro redefinition
60>D:\FreeCADGit\src\FCConfig.h(139): message : see previous definition of 'HAVE_UINT8_T'
60>D:\FreeCAD-build\FreeCADLibs_12.4.2_x64_VC17\include\Inventor/system/inttypes.h(92,1): warning C4005: 'HAVE_INT16_T': macro redefinition
60>D:\FreeCADGit\src\FCConfig.h(144): message : see previous definition of 'HAVE_INT16_T'
60>D:\FreeCAD-build\FreeCADLibs_12.4.2_x64_VC17\include\Inventor/system/inttypes.h(93,1): warning C4005: 'HAVE_UINT16_T': macro redefinition
60>D:\FreeCADGit\src\FCConfig.h(149): message : see previous definition of 'HAVE_UINT16_T'
60>D:\FreeCAD-build\FreeCADLibs_12.4.2_x64_VC17\include\Inventor/system/inttypes.h(94,1): warning C4005: 'HAVE_INT32_T': macro redefinition
60>D:\FreeCADGit\src\FCConfig.h(154): message : see previous definition of 'HAVE_INT32_T'
60>D:\FreeCAD-build\FreeCADLibs_12.4.2_x64_VC17\include\Inventor/system/inttypes.h(95,1): warning C4005: 'HAVE_UINT32_T': macro redefinition
60>D:\FreeCADGit\src\FCConfig.h(159): message : see previous definition of 'HAVE_UINT32_T'
60>D:\FreeCAD-build\FreeCADLibs_12.4.2_x64_VC17\include\Inventor/system/inttypes.h(96,1): warning C4005: 'HAVE_INT64_T': macro redefinition
60>D:\FreeCADGit\src\FCConfig.h(164): message : see previous definition of 'HAVE_INT64_T'
60>D:\FreeCAD-build\FreeCADLibs_12.4.2_x64_VC17\include\Inventor/system/inttypes.h(97,1): warning C4005: 'HAVE_UINT64_T': macro redefinition
60>D:\FreeCADGit\src\FCConfig.h(169): message : see previous definition of 'HAVE_UINT64_T'

B: redefinition of GL_GLEXT_LEGACY:

Code: Select all

60>D:\FreeCAD-build\FreeCADLibs_12.4.2_x64_VC17\include\QtGui/qopengl.h(136,1): warning C4005: 'GL_GLEXT_LEGACY': macro redefinition
60>D:\FreeCADGit\src\Gui\PreCompiled.cpp : message : see previous definition of 'GL_GLEXT_LEGACY'
I have:
OS: Windows 10 Version 2004
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23252 (Git)
Build type: Release
Branch: master
Hash: 983e513704a659c1008fbaf95da6a34975cc37ac
Python version: 3.8.6
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: German/Germany (de_DE)