joelgraff / freecad.trails

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

Failure to Install "pivy_trackers" #94

Open Civil-Guy opened 2 years ago

Civil-Guy commented 2 years ago

Hi there! I am having some difficulty correctly installing Trails in FreeCAD 0.19 (Snap version, Debian 11). After running git clone --recursive https://github.com/joelgraff/freecad.trails.git I get the following error message in the terminal:

fatal: remote error: upload-pack: not our ref ab0ec4f2cf99bbfef79ca4800ca527ea4cfb2d8c Fetched in submodule path 'pivy_trackers', but it did not contain ab0ec4f2cf99bbfef79ca4800ca527ea4cfb2d8c. Direct fetching of that commit failed.

It seems that pivy_trackers was not successfully installed. Although the trails workspace is visible in FreeCAD, when I load into it, I get the error message "No module named pivy_trackers.tracker". Although the Trails workspace is selected, I don't see any of the tools that are included. When I go to .FreeCAD/Mod/freecad.trails/pivy_trackers/ I only see a single .git file, which I don't think is correct.

Because I think I'm smarter than I am, I tried installing pivy_trackers manually:

git clone --recursive https://github.com/joelgraff/pivy_trackers.git

However, I now get the error "module 'pivy.coin' has no attribute 'SoGeoCoordinate'. I'm not sure how to fix this one.

I'm new to this whole "Github" thing, but am interested in learning. If anyone has any pointers on how I can get Trails up and running, I would be very grateful.

joelgraff commented 2 years ago

Trails is a bit complicated… I’ll take a closer look in the next few days and see if we can get it installed…

Sent from my iPhone

On Feb 6, 2022, at 4:58 PM, Civil-Guy @.***> wrote:

 Hi there! I am having some difficulty correctly installing Trails in FreeCAD 0.19 (Snap version, Debian 11). After running git clone --recursive https://github.com/joelgraff/freecad.trails.git I get the following error message in the terminal:

fatal: remote error: upload-pack: not our ref ab0ec4f2cf99bbfef79ca4800ca527ea4cfb2d8c Fetched in submodule path 'pivy_trackers', but it did not contain ab0ec4f2cf99bbfef79ca4800ca527ea4cfb2d8c. Direct fetching of that commit failed.

It seems that pivy_trackers was not successfully installed. Although the trails workspace is visible in FreeCAD, when I load into it, I get the error message "No module named pivy_trackers.tracker". Although the Trails workspace is selected, I don't see any of the tools that are included. When I go to .FreeCAD/Mod/freecad.trails/pivy_trackers/ I only see a single .git file, which I don't think is correct.

Because I think I'm smarter than I am, I tried installing pivy_trackers manually:

git clone --recursive https://github.com/joelgraff/pivy_trackers.git

However, I now get the error "module 'pivy.coin' has no attribute 'SoGeoCoordinate'. I'm not sure how to fix this one.

I'm new to this whole "Github" thing, but am interested in learning. If anyone has any pointers on how I can get Trails up and running, I would be very grateful.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.

Civil-Guy commented 2 years ago

Have you had any luck?

I think the problem is that the pivy_tracker submodule links to a version of pivy_tracker that no longer exists for some reason. I created a fork of trails and replaced the missing submodule with the latest version. When I test this version of trails, FreeCAD tells me that "there is no module named 'pivy_trackers.tracker'" I'm guessing something changed between the versions of pivy_tracker that broke trails.

Another thing: In my first post I said I had the Snap version. I'm actually using the Flatpak version. I always get those two mixed up.

joelgraff commented 2 years ago

I have not had a chance to look at it, apart from installing the workbench on an AppImage of the daily build. It seemed to work ok, though I didn’t test much. I’ll put it on my list to see if I can at least reproduce your error.

Sent from my iPhone

On Feb 19, 2022, at 10:47 AM, Civil Guy @.***> wrote:

 Have you had any luck?

I think the problem is that the pivy_tracker submodule links to a version of pivy_tracker that no longer exists for some reason. I created a fork of trails and replaced the missing submodule with the latest version. When I test this version of trails, FreeCAD tells me that "there is no module named 'pivy_trackers.tracker'" I'm guessing something changed between the versions of pivy_tracker that broke trails.

Another thing: In my first post I said I had the Snap version. I'm actually using the Flatpak version. I always get those two mixed up.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.

Civil-Guy commented 2 years ago

I also was able to get the workbench running in the appimage!

I had to remove the flatpak of FreeCAD and delete the .FreeCAD folder. Then I downloaded the appimage. I was able to add the workbench directly from the addon manager with no problems. (I got errors when I tried using the addon manager in the flatpak). Not sure why the flatpak was giving me so many issues.

joelgraff commented 2 years ago

That’s weird. I either run the AppImage or the daily binaries. Never had issues that way.

So do you have any errors then under the flatpak?

Sent from my iPhone

On Feb 19, 2022, at 12:21 PM, Civil Guy @.***> wrote:

 I also was able to get the workbench running in the appimage!

I had to remove the flatpak of FreeCAD and delete the .FreeCAD folder. Then I downloaded the appimage. I was able to add the workbench directly from the addon manager with no problems. (I got errors when I tried using the addon manager in the flatpak). Not sure why the flatpak was giving me so many issues.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.

Civil-Guy commented 2 years ago

So do you have any errors then under the flatpak?

FreeCAD itself usually ran fine. I only ever had problems with trails.

So far the appimage has not given me any errors. I've never used the workbench before so I haven't tested everything. It seems to work well. This is interesting though: In .FreeCAD/Mod/Trails/ there is no folder called pivy_trackers. When I tried installing trails from github in the flatpak version it created a pivy_trackers folder, but it had only one file in it.

Civil-Guy commented 2 years ago

OK; LandXML doesn't work:

`13:54:40 Running the Python command 'LandXML Importer' failed: Traceback (most recent call last): File "/home/jacobbp/.FreeCAD/Mod/Trails/Trails/guitools/gui_landxml_importer.py", line 66, in Activated FreeCADGui.Control.showDialog(panel)

Active task dialog found`

That's the only error I've got.

joelgraff commented 2 years ago

Pivy-trackers is my creation as a way to build engineering tools that give immediate feedback (redrawing lines as you adjust curves, for example). FreeCAD wasn’t designed to do that, so I had to come up with my own.

It works well enough, but it’s no simple thing. Part of the problem is I split out parts of the codebase because I used them elsewhere and reincluded as submodules. Not my best decision…

Sent from my iPhone

On Feb 19, 2022, at 12:47 PM, Civil Guy @.***> wrote:

 So do you have any errors then under the flatpak?

FreeCAD itself usually ran fine. I only ever had problems with trails.

So far the appimage has not given me any errors. I've never used the workbench before so I haven't tested everything. It seems to work well. This is interesting though: In .FreeCAD/Mod/Trails/ there is no folder called pivy_trackers. When I tried installing trails from github in the flatpak version it created a pivy_trackers folder, but it had only one file in it.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.

joelgraff commented 2 years ago

That’s a UI error. I know what it’s related to, at least. I’ll take a look here in the next couple days.

Thanks for letting me know. It’s hard to care about it when no one else uses it. lol

Sent from my iPhone

On Feb 19, 2022, at 1:25 PM, Joel Graff @.***> wrote:

Pivy-trackers is my creation as a way to build engineering tools that give immediate feedback (redrawing lines as you adjust curves, for example). FreeCAD wasn’t designed to do that, so I had to come up with my own.

It works well enough, but it’s no simple thing. Part of the problem is I split out parts of the codebase because I used them elsewhere and reincluded as submodules. Not my best decision…

Sent from my iPhone

On Feb 19, 2022, at 12:47 PM, Civil Guy @.***> wrote:

 So do you have any errors then under the flatpak?

FreeCAD itself usually ran fine. I only ever had problems with trails.

So far the appimage has not given me any errors. I've never used the workbench before so I haven't tested everything. It seems to work well. This is interesting though: In .FreeCAD/Mod/Trails/ there is no folder called pivy_trackers. When I tried installing trails from github in the flatpak version it created a pivy_trackers folder, but it had only one file in it.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.

Civil-Guy commented 2 years ago

Cool. It would be nice to see better 2D tools added to FreeCAD. Maybe that's something I'll work on at a later date.

This is a technically interesting project that I would like to help out with at some point. I have to teach myself a few things about how FreeCAD works under the hood first though. One last question: These are the only tools I have in the trails workspace right now:

image

I see from the wiki that there are GIS tools available as well, but I don't see them in the UI. Is there something I have to do to activate these tools? Thanks.

lensonp commented 1 year ago

+1 on this: git clone --recursive https://github.com/joelgraff/freecad.trails.git (...) everything works fine except: Fetched in submodule path 'pivy_trackers', but it did not contain ab0ec4f2cf99bbfef79ca4800ca527ea4cfb2d8c. Direct fetching of that commit failed.

I think I've created issues like this before when using repos inside repos. I'll see if I can find a solution and will let ya know if I get lucky.

lensonp commented 1 year ago

First thing I tried was to see if I could find a commit tag starting with "ab0ec4f" in any of the pivy_trackers forks. Result was negative: none of the forks remember this commit.

lensonp commented 1 year ago

I'll carry on with this in #95. I would really like to use this thing. If I find a fix I'll put it there.