error "LineGroup.csv is not readable" after freecad upgrade

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
zetka
Posts: 22
Joined: Thu Oct 29, 2020 10:24 pm

error "LineGroup.csv is not readable" after freecad upgrade

Post by zetka »

I have upgraded yesterday Freecad with chocolatey to version 24054. After that when I use any file with Techdraw, I am getting this error (multiple time) in the reporter:
21:51:40 Line Group File: C:/ProgramData/chocolatey/lib/freecad/tools/FreeCAD_0.19.24054-Win-Conda_vc14.x-x86_64/data/Mod/TechDraw/LineGroup/LineGroup.csv is not readable


When I open the abovementioned file in Excel, it could be opened without problems.
I tried to delete the whole drawing in Techdraw, open the new window and starting to work on a new view, but immediatelly after using Techdraw the errors above appeared multiple times.
Where is the problem?
peterpan
Posts: 1
Joined: Fri Feb 26, 2021 7:09 pm

Re: error "LineGroup.csv is not readable" after freecad upgrade

Post by peterpan »

Similar problem here after moving from 19.24054 to 19.24212
Syres
Veteran
Posts: 2899
Joined: Thu Aug 09, 2018 11:14 am

Re: error "LineGroup.csv is not readable" after freecad upgrade

Post by Syres »

My guess would be you haven't got the preferences field completed as per screenshot:


FCTDPref.jpg
FCTDPref.jpg (112.76 KiB) Viewed 5502 times
zetka
Posts: 22
Joined: Thu Oct 29, 2020 10:24 pm

Re: error "LineGroup.csv is not readable" after freecad upgrade

Post by zetka »

Thanks, the directories were mixed up by the installation. After pointing to right ones (with absolute link to directory of pre version of freecad )the errors disappeared. The only question is, after updating the version, if the links will change too.
LSoltmann
Posts: 12
Joined: Sun Jul 19, 2020 3:19 pm

Re: error "LineGroup.csv is not readable" after freecad upgrade

Post by LSoltmann »

I'm having the same issues as OP after moving to 24789.

Line Group File: /tmp/.mount_FreeCA2mSmcl/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv is not readable

I can navigate to the file and it opens just fine. I checked the preference pane as suggested by Syres and the path listed for the line group file is

/tmp/.mount_FreeCADB3Olj/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv

The default template path listed has the same '.mount_FreeCADB3Olj' in it and it shows the same warning that the .SVG is not readable, but then it loads the default template in FreeCAD anyway. It appears that the paths are dynamic as the '.mount_xxxxxx' changes in the /tmp folder on every new instance of FreeCAD and the line group error shows the correct '.mount_xxxxxx' location for the current FreeCAD instance. I tried copying and pasting the actual path to the linegroup file into the preference pane path line, but it still throws the same warning.

OS: Ubuntu 20.04.2 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.24789 (Git) AppImage
Build type: Release
Branch: master
Hash: 31b0f25b6df1d1707fdf74135093831eec4f0281
Python version: 3.9.2
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.1
Locale: English/United States (en_US)
SIXe
Posts: 157
Joined: Sat Mar 16, 2019 3:10 pm

Re: error "LineGroup.csv is not readable" after freecad upgrade

Post by SIXe »

I'm having the same issue as LSoltmann. I'm getting:

Code: Select all

Line Group File: /tmp/.mount_FreeCAaavKVN/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv is not readable
However, the file is readable:

Code: Select all

ls -l /tmp/.mount_FreeCAaavKVN/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv                                               ~ 
-rw-rw-r-- 1 root root 1.1K 2021-09-05 11:33 /tmp/.mount_FreeCAaavKVN/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv
In the preferences, the following path is used for “Line Group File”:

Code: Select all

/tmp/.mount_FreeCA5fokHj/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv
The ..mount_FreeCA… part seems to be auto-generated and incorrect. Is there a solution?

OS: Debian GNU/Linux 11 (bullseye) (X-Cinnamon/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.20.25645 (Git) AppImage
Build type: Release
Branch: master
Hash: 37d9757399b4c2ec30318eb88d7cd7c508246345
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United Kingdom (en_GB)
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Re: error "LineGroup.csv is not readable" after freecad upgrade

Post by Evgeniy »

I think this problem only on Linux.

Im not have linux now but what is your path to Welding directory in Linux for example? Or template directory or hatch pattern directory?
Thats paths are work normal?

This string must be set initially automatically, but although it can be changed by user if desired.

I think needs a wide screenshot of this window in Linux so that all the paths can be seen. Perhaps this will somehow clarify the problem.
SIXe
Posts: 157
Joined: Sat Mar 16, 2019 3:10 pm

Re: error "LineGroup.csv is not readable" after freecad upgrade

Post by SIXe »

Sure, the path is editable. But since it changes every time FC is launched, that's not a solution. The path is dynamically adjusted and there seems to be something wrong with that. Here's the screenshot:
LineGroup_is_not_readable.png
LineGroup_is_not_readable.png (170.89 KiB) Viewed 4451 times
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Re: error "LineGroup.csv is not readable" after freecad upgrade

Post by Evgeniy »

The beginning of the path for all folders is the same, which is good.
But yes i look paths is different in dialog and in console. This is strange.
Something method recreate temp folder, on FCPAT reading stage...
tdraw.png
tdraw.png (54.72 KiB) Viewed 4328 times
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Re: error "LineGroup.csv is not readable" after freecad upgrade

Post by Evgeniy »

SIXe wrote: Mon Sep 27, 2021 7:20 pm Is there a solution?
Maybe create request on Bug tracker? With link to this disscusion.
Post Reply