joelgraff / freecad.trails

Trails is the Transportation Engineering workbench for FreeCAD
GNU Lesser General Public License v2.1
68 stars 12 forks source link

UNTESTED: updated pivy_trackers ref to 89c0280f1… #95

Open lensonp opened 1 year ago

lensonp commented 1 year ago

This is not tested but it at least gets the git clone --recursive to go through. I do not know how to test this thing (new to FreeCAD). If I find any interesting fixes while I try to use it, I will make sure to do another PR.

lensonp commented 1 year ago

Right after FreeCAD startup, selecting this workbench from the View > Workbench menu, this still gives the same error as was already posted in issue #94:

module 'pivy.coin' has no attribute 'SoGeoCoordinate'

So, this PR does not fix anything. It would be appropriate to close it without merging, or leave it open and hope I find a fix.

(running FreeCAD 0.18.4 on Ubuntu 20.04)

lensonp commented 1 year ago

Just saw this from August-- @HakanSeven12 's post from August suggests that pivy 0.6.8 may fix some things. That would be nice-- would just have to update the __init__ where the pivy version is checked. Default on Ubuntu20.04 (python3.8) is pivy 0.6.5.

https://forum.freecadweb.org/viewtopic.php?f=8&t=34371&sid=8c8960f6635a39bbf97b21fa7421bb49&start=630

Would like to test. It seems not trivial to build it but I'll try it soon and report.

HakanSeven12 commented 1 year ago

I recommend to use this one https://github.com/HakanSeven12/Trails

Yes its about your pivy version. You need to update it.

lensonp commented 1 year ago

Just FYI, I had to leave this alone for a few weeks, but I intend to come back to it in the near future. I hope to get to it soon, would still very much like to use this tool.

First, I want to see if I can run this version after updating to pivy 0.6.8 (if so, I will update the pivy version checker, maybe update the README, and it will be yours to merge and/or close).

Second, I would like to see if I can run Hakan's new version, starting from the repository linked above.

Cheers, happy new year!

lensonp commented 1 year ago

Success updating pivy to 0.6.8, but there is a new error:

No module named 'draftguitools'
Traceback (most recent call last):
  File "~/.FreeCAD/Mod/freecad.trails/freecad/trails/init_gui.py", line 228, in Initialize
    from .design.project.commands import edit_alignment_cmd
  File "~/.FreeCAD/Mod/freecad.trails/freecad/trails/design/project/commands/edit_alignment_cmd.py", line 30, in <module>
    from draftguitools.gui_base_original import Modifier

I am new to FreeCAD but I think this is supposed to be a FreeCAD module. Possibly it does not exist, or has been renamed/refactored, in FreeCAD 0.18.4?

So, quick question for anybody who's listening-- on the last working version of trails, what version of FreeCAD was used for development and testing?

lensonp commented 1 year ago

(I just noticed that the screenshots on the front page of the repo are from v0.19 -- I'll see if I can get that installed and try it out).

lensonp commented 1 year ago

(It seems difficult to dig up old versions -- 0.18.4 is available via APT but 0.19 is hard to find. I will come back soon to try this against the latest stable version of FreeCAD, 0.20.2, which is available via snap.)

joelgraff commented 1 year ago

I seem to recall there was a reorganization around v20 regarding that.  I don’t recall the details.  A quick question on the forums will no doubt provide the information.On Jan 11, 2023, at 10:52 AM, lensonp @.***> wrote: (It seems difficult to dig up old versions -- 0.18.4 is available via APT but 0.19 is hard to find. I will come back soon to try this against the latest stable version of FreeCAD, 0.20.2, which is available via snap.)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>