Geotechnical Work Addon

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
Joel_graff
Posts: 1818
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Geotechnical Work Addon

Postby Joel_graff » Fri Aug 07, 2020 2:20 pm

bernd wrote:
Fri Aug 07, 2020 2:15 pm
Ahh pivy_trackers is part of trails workbench but It will not installed because it is a different repository ...

https://github.com/joelgraff/freecad.trails

Ahh it needs to be installed with the AddOn manager too. I installed pivy_trackes with AddOn manager but still
The reason for that is a name collision. The pivy_trackers repo is incorporated into Trails as a submodule. As a result, the code is not cloned unless it's called with the --recursive switch when calling git clone. I did it because it really helped me during development, but now that geotechnical has been merged, it's creating headaches for everyone.

If the Addon Manager can add the --recursive switch that would be the easiest fix. Otherwise, I guess I can remove the submodule this week. The problem is, I have another submodule I use too...
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
thschrader
Posts: 1851
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Geotechnical Work Addon

Postby thschrader » Fri Aug 07, 2020 2:26 pm

some more info on using trails-wb...
https://forum.freecadweb.org/viewtopic. ... 63#p410963
vocx
Posts: 5206
Joined: Thu Oct 18, 2018 9:18 pm

Re: Geotechnical Work Addon

Postby vocx » Fri Aug 07, 2020 2:50 pm

bernd wrote:
Fri Aug 07, 2020 2:15 pm
Ahh pivy_trackers is part of trails workbench but It will not installed because it is a different repository ...

...
Yes, Trails is a bit special because it requires various sub-packages that Joel is developing. So you need to have them all installed.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
User avatar
bernd
Posts: 10828
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Geotechnical Work Addon

Postby bernd » Fri Aug 07, 2020 7:32 pm

@joel:
got the point


Joel_graff wrote:
Fri Aug 07, 2020 2:20 pm
If the Addon Manager can add the --recursive switch that would be the easiest fix.
That should be doable, and would be the best IMHO too.
User avatar
bernd
Posts: 10828
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Geotechnical Work Addon

Postby bernd » Fri Aug 07, 2020 7:34 pm

next error ...

Code: Select all

ModuleNotFoundError: No module named 'freecad_python_support.tuple_math'
where do I get this, and where do I have to install this.
User avatar
bernd
Posts: 10828
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Geotechnical Work Addon

Postby bernd » Fri Aug 07, 2020 7:35 pm

bernd wrote:
Fri Aug 07, 2020 7:34 pm
next error ...

Code: Select all

ModuleNotFoundError: No module named 'freecad_python_support.tuple_math'
where do I get this, and where do I have to install this.
https://github.com/joelgraff/freecad_python_support installed to /freecad_python_support
User avatar
Joel_graff
Posts: 1818
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Geotechnical Work Addon

Postby Joel_graff » Fri Aug 07, 2020 7:41 pm

bernd wrote:
Fri Aug 07, 2020 7:34 pm
where do I get this, and where do I have to install this.
Delete FreeCAD Trails from /Mod and install from the command line by calling:

Code: Select all

git clone --recursive https://github.com/joelgraff/freecad.trails
This will make sure the code for both submodules is automatically installed.
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
bernd
Posts: 10828
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Geotechnical Work Addon

Postby bernd » Fri Aug 07, 2020 7:46 pm

Joel_graff wrote:
Fri Aug 07, 2020 7:41 pm
bernd wrote:
Fri Aug 07, 2020 7:34 pm
where do I get this, and where do I have to install this.
Delete FreeCAD Trails from /Mod and install from the command line by calling:

Code: Select all

git clone --recursive https://github.com/joelgraff/freecad.trails
This will make sure the code for both submodules is automatically installed.
yeah, simple and works great but new errors ...

Code: Select all

AttributeError: module 'pivy.coin' has no attribute 'SoGeoCoordinate'
User avatar
Joel_graff
Posts: 1818
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Geotechnical Work Addon

Postby Joel_graff » Fri Aug 07, 2020 7:52 pm

bernd wrote:
Fri Aug 07, 2020 7:46 pm
yeah, simple and works great but new errors ...
You may have an outdated version of coin. Support for SoGeoCoordinate (among others) was added in March:

https://github.com/coin3d/pivy/commit/3 ... 5f1969c556
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
bernd
Posts: 10828
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Geotechnical Work Addon

Postby bernd » Fri Aug 07, 2020 7:52 pm

Code: Select all

>>> 
>>> from pivy import coin
>>> 
>>> len(sorted(coin.__dir__()))
4984
>>> 
>>> for e in sorted(coin.__dir__()):
...     print(e)
... 
COIN_MAJOR_VERSION
COIN_MICRO_VERSION
COIN_MINOR_VERSION
COIN_NAVIGATION_EVENT_PREFIX
...
SoFullPath_fromSoPath
SoFullPath_swigregister
SoGLBigImage
SoGLBigImage_getClassTypeId
...
>>>