LibPack for Windows "3rd party libraries"

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 "3rd party libraries"

Postby apeltauer » Wed Nov 11, 2020 12:48 pm

hi all,

during the process to update the lib pack for windows we should/could make a list of additional 3rd party libraries used by FC not include in the lib pack....
User avatar
Kunda1
Posts: 9209
Joined: Thu Jan 05, 2017 9:03 pm

Re: LibPack for Windows "3rd party libraries"

Postby Kunda1 » Wed Nov 11, 2020 1:23 pm

apeltauer wrote:
Wed Nov 11, 2020 12:48 pm
during the process to update the lib pack for windows we should/could make a list of additional 3rd party libraries used by FC not include in the lib pack....
Do you mind making a list of what libraries are currently bundled in to the LibPack ?
Alone you go faster. Together we go farther
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
sgrogan
Posts: 6205
Joined: Wed Oct 22, 2014 5:02 pm

Re: LibPack for Windows "3rd party libraries"

Postby sgrogan » Wed Nov 11, 2020 10:26 pm

apeltauer wrote:
Wed Nov 11, 2020 12:48 pm
during the process to update the lib pack for windows we should/could make a list of additional 3rd party libraries used by FC not include in the lib pack....
The CLOUD dependencies are the only thing that comes to mind. They're needed to build the Cloud WB.
"fight the good fight"
User avatar
apeltauer
Posts: 359
Joined: Fri Aug 11, 2017 2:19 pm

Re: LibPack for Windows "3rd party libraries"

Postby apeltauer » Sun Nov 15, 2020 4:20 pm

This is the list which comes from the version info box:

Code: Select all

Boost 1_67
Coin3D 4.0.1
Eigen3 
FreeType 
KDL 
libarea 
Open CASCADE Technology 7.5.0
Point Cloud Library 
PyCXX 
Python 3.8.6+
PySide 
Qt 5.15.1
Salome SMESH 
Shiboken 
vtk 
Xerces-C 
Zipios++ 
zlib 1.2.11
User avatar
HakanSeven12
Posts: 1065
Joined: Wed Feb 06, 2019 10:30 pm

Re: LibPack for Windows "3rd party libraries"

Postby HakanSeven12 » Sun Nov 15, 2020 4:35 pm

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
apeltauer
Posts: 359
Joined: Fri Aug 11, 2017 2:19 pm

Re: LibPack for Windows "3rd party libraries"

Postby apeltauer » Sun Nov 15, 2020 4:59 pm

HakanSeven12 wrote:
Sun Nov 15, 2020 4:35 pm
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.
Can you give me a hint how to solve this?
User avatar
apeltauer
Posts: 359
Joined: Fri Aug 11, 2017 2:19 pm

Re: LibPack for Windows "3rd party libraries"

Postby apeltauer » Sun Nov 15, 2020 5:03 pm

User avatar
sgrogan
Posts: 6205
Joined: Wed Oct 22, 2014 5:02 pm

Re: LibPack for Windows "3rd party libraries"

Postby sgrogan » Sun Nov 15, 2020 5:07 pm

apeltauer wrote:
Sun Nov 15, 2020 4:59 pm
Can you give me a hint how to solve this?
I think you should be able to just use

Code: Select all

https://anaconda.org/conda-forge/pivy/0.6.6.a0/download/win-64/pivy-0.6.6.a0-py38h026d3d0_1.tar.bz2
from here https://anaconda.org/conda-forge/pivy/files
"fight the good fight"
User avatar
HakanSeven12
Posts: 1065
Joined: Wed Feb 06, 2019 10:30 pm

Re: LibPack for Windows "3rd party libraries"

Postby HakanSeven12 » Fri Nov 20, 2020 3:06 pm

Same issue with another user.

balrobs wrote:
Fri Nov 20, 2020 2:33 pm
Hi @HakanSeven12,
Amazing progress :D !
I installed the latest Trails workbench version via the <<git clone --recursive ...>> command. Installation seems ok!
While trying to import points from the below TestPoints.csv file the preview in the import-dialog shows the correct point data (units are meters)
import_dialog.png
... but clicking on the import button gives these error messages

Code: Select all

15:08:25  Traceback (most recent call last):
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geo_origin.py", line 93, in onChanged
    node = self.get_geoorigin()
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geo_origin.py", line 137, in get_geoorigin
    if not isinstance(node, coin.SoGeoOrigin):
<class 'AttributeError'>: module 'pivy.coin' has no attribute 'SoGeoOrigin'
15:08:25  Traceback (most recent call last):
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geo_origin.py", line 93, in onChanged
    node = self.get_geoorigin()
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geo_origin.py", line 137, in get_geoorigin
    if not isinstance(node, coin.SoGeoOrigin):
<class 'AttributeError'>: module 'pivy.coin' has no attribute 'SoGeoOrigin'
15:08:27  Traceback (most recent call last):
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geo_origin.py", line 93, in onChanged
    node = self.get_geoorigin()
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geo_origin.py", line 137, in get_geoorigin
    if not isinstance(node, coin.SoGeoOrigin):
<class 'AttributeError'>: module 'pivy.coin' has no attribute 'SoGeoOrigin'
15:08:27  Traceback (most recent call last):
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geo_origin.py", line 93, in onChanged
    node = self.get_geoorigin()
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geo_origin.py", line 137, in get_geoorigin
    if not isinstance(node, coin.SoGeoOrigin):
<class 'AttributeError'>: module 'pivy.coin' has no attribute 'SoGeoOrigin'
15:08:27  Traceback (most recent call last):
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geo_origin.py", line 93, in onChanged
    node = self.get_geoorigin()
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geo_origin.py", line 137, in get_geoorigin
    if not isinstance(node, coin.SoGeoOrigin):
<class 'AttributeError'>: module 'pivy.coin' has no attribute 'SoGeoOrigin'
15:08:27  Traceback (most recent call last):
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geo_origin.py", line 93, in onChanged
    node = self.get_geoorigin()
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geo_origin.py", line 137, in get_geoorigin
    if not isinstance(node, coin.SoGeoOrigin):
<class 'AttributeError'>: module 'pivy.coin' has no attribute 'SoGeoOrigin'
15:08:27  Traceback (most recent call last):
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geo_origin.py", line 93, in onChanged
    node = self.get_geoorigin()
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geo_origin.py", line 137, in get_geoorigin
    if not isinstance(node, coin.SoGeoOrigin):
<class 'AttributeError'>: module 'pivy.coin' has no attribute 'SoGeoOrigin'
15:08:27  Traceback (most recent call last):
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geomatics/point/point_group.py", line 143, in attach
    self.geo_coords = coin.SoGeoCoordinate()
<class 'AttributeError'>: module 'pivy.coin' has no attribute 'SoGeoCoordinate'
15:08:27  Traceback (most recent call last):
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geomatics/point/point_group.py", line 208, in updateData
    self.markers.markerIndex = marker_dict[marker]
<class 'AttributeError'>: 'ViewProviderPointGroup' object has no attribute 'markers'
15:08:27  Traceback (most recent call last):
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geomatics/point/point_group.py", line 182, in onChanged
    self.point_style.pointSize = size
<class 'AttributeError'>: 'ViewProviderPointGroup' object has no attribute 'point_style'
15:08:42  Traceback (most recent call last):
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geo_origin.py", line 93, in onChanged
    node = self.get_geoorigin()
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geo_origin.py", line 137, in get_geoorigin
    if not isinstance(node, coin.SoGeoOrigin):
<class 'AttributeError'>: module 'pivy.coin' has no attribute 'SoGeoOrigin'
15:08:42  Traceback (most recent call last):
  File "/home/balrobs/.FreeCAD/Mod/freecad.trails/freecad/trails/geomatics/point/point_group.py", line 199, in updateData
    self.geo_coords.geoSystem.setValues(geo_system)
<class 'AttributeError'>: 'ViewProviderPointGroup' object has no attribute 'geo_coords'
and I noticed two things:
- no points are shown in the 3d-view
- the point-table shows the imported points with mm units even if I set my preferences to use unit system MKS (m,kg,s,degree)
point_table.png
Can you tell me what is going wrong? Thanks for your assistence.
@balrobs
TestPoints.csv
Here my system info:

Code: Select all

OS: Ubuntu 20.04.1 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: aabff60388a4434388c267390b6fb7c9212d5091
Python version: 3.8.5
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.3.0
Locale: English/United States (en_US)
sinfee
Posts: 3
Joined: Thu Oct 08, 2020 1:16 pm

Re: LibPack for Windows "3rd party libraries"

Postby sinfee » Sat Nov 21, 2020 7:05 am

apeltauer wrote:
Sun Nov 15, 2020 5:03 pm
New version uploaded:
https://github.com/apeltauer/FreeCAD/re ... ack_12.4.1
Thanks a lot. but Can you tell me: why use boost 1.67 ,not 1.74 ?