Updated w/ screenshots Gramps does not recognize fontconfig is installed

That’s weird. Maybe they are doing something unusual with permissions?

Open up a terminal and type
ls -l /

then try
ls -l /usr

If you still get nothing, put sudo in the front of them.

me@me-Latitude-E5510:~/Desktop$ ls -l /
total 2097232
lrwxrwxrwx 1 root root 7 Sep 10 21:43 bin -> usr/bin
drwxr-xr-x 4 root root 4096 Sep 11 00:38 boot
drwxrwxr-x 2 root root 4096 Sep 10 21:47 cdrom
drwxr-xr-x 20 root root 4460 Sep 11 03:10 dev
drwxr-xr-x 131 root root 12288 Sep 11 00:33 etc
drwxr-xr-x 3 root root 4096 Sep 10 21:47 home
lrwxrwxrwx 1 root root 7 Sep 10 21:43 lib -> usr/lib
lrwxrwxrwx 1 root root 9 Sep 10 21:43 lib32 -> usr/lib32
lrwxrwxrwx 1 root root 9 Sep 10 21:43 lib64 -> usr/lib64
lrwxrwxrwx 1 root root 10 Sep 10 21:43 libx32 -> usr/libx32
drwx------ 2 root root 16384 Sep 10 21:43 lost+found
drwxr-xr-x 3 root root 4096 Sep 10 22:02 media
drwxr-xr-x 2 root root 4096 Apr 23 03:32 mnt
drwxr-xr-x 3 root root 4096 Sep 10 22:11 opt
dr-xr-xr-x 236 root root 0 Sep 11 01:46 proc
drwx------ 4 root root 4096 Sep 11 01:01 root
drwxr-xr-x 35 root root 900 Sep 11 02:10 run
lrwxrwxrwx 1 root root 8 Sep 10 21:43 sbin -> usr/sbin
drwxr-xr-x 10 root root 4096 Sep 11 01:00 snap
drwxr-xr-x 2 root root 4096 Apr 23 03:32 srv
-rw------- 1 root root 2147483648 Sep 10 21:43 swapfile
dr-xr-xr-x 13 root root 0 Sep 11 01:46 sys
drwxrwxrwt 21 root root 4096 Sep 11 03:34 tmp
drwxr-xr-x 14 root root 4096 Apr 23 03:34 usr
drwxr-xr-x 14 root root 4096 Apr 23 03:42 var

and then

me@me-Latitude-E5510:~/Desktop$ ls -l /usr
total 120
drwxr-xr-x 2 root root 45056 Sep 11 00:21 bin
drwxr-xr-x 2 root root 4096 Apr 23 03:35 games
drwxr-xr-x 40 root root 4096 Sep 11 00:14 include
drwxr-xr-x 123 root root 4096 Sep 11 00:17 lib
drwxr-xr-x 2 root root 4096 Apr 23 03:32 lib32
drwxr-xr-x 2 root root 4096 Apr 23 03:32 lib64
drwxr-xr-x 12 root root 12288 Sep 11 00:21 libexec
drwxr-xr-x 2 root root 4096 Apr 23 03:32 libx32
drwxr-xr-x 10 root root 4096 Apr 23 03:32 local
drwxr-xr-x 2 root root 20480 Sep 11 00:20 sbin
drwxr-xr-x 256 root root 12288 Sep 10 22:41 share
drwxr-xr-x 7 root root 4096 Sep 11 00:20 src

so, using that I hunted again, still can’t find my symbols.py file

Okay /usr exists

What’s the file you are looking for?

Something in …
/usr/lib/python3/dist-packages/gramps/gen/utils
?

symbols.py file is the one

I can’t find symbols.py on https://packages.ubuntu.com

so what supplies symbols.py
What’s it used for?
Do you have a backup copy of it?

it is a file specific to gramps, and yes I have multiple copies of it, including the one I have modified, but I can not figure out where to put it :slightly_frowning_face:

this is the thread where I learned how to change the file

Gramps configuration: genealogical symbols

Scrolling back in this thread you mention that it belongs in utils.
Can you navigate to that folder - ie; does it exist ?
If so, can you place one of your copies into utils ?

no, that doesn’t exist either as it is in the usr file that is either not there or not accessible (I’m not sure which)

In your terminal…

gramps -v

me@me-Latitude-E5510:~/Desktop$ gramps -v
.gramps.gen.utils.grampslocale.WARNING: ICU not loaded because No module named ‘PyICU’. Localization will be impaired. Use your package manager to install PyICU
Gramps Settings:

python : 3.8.2
gramps : 5.1.2
gtk++ : 3.24.20
pygobject : 3.36.0
pango : 1.44.7
cairo : 1.16.0
pycairo : 1.16.2
osmgpsmap : not found
GExiv2 : not found
ICU : not found
PyICU : not found
o.s. : linux
kernel : 5.4.0-47-generic

Environment settings:

LANG : en_US.UTF-8
LANGUAGE : en
GRAMPSI18N: not set
GRAMPSHOME: not set
GRAMPSDIR : not set
PYTHONPATH:
/usr/lib/python3/dist-packages/gramps
/usr/bin
/usr/lib/python38.zip
/usr/lib/python3.8
/usr/lib/python3.8/lib-dynload
/usr/local/lib/python3.8/dist-packages
/usr/lib/python3/dist-packages

Non-python dependencies:

Graphviz : Graphviz not in system PATH
Ghostscr. : 9.50

System PATH env variable:

 /usr/local/sbin
 /usr/local/bin
 /usr/sbin
 /usr/bin
 /sbin
 /bin
 /usr/games
 /usr/local/games
 /snap/bin

Databases:

bsddb :
version : 6.2.7
db version : 5.3.28
location : /usr/lib/python3/dist-packages/bsddb3/init.py
sqlite3 :
version : 3.31.1
py version : 2.6.0
location : /usr/lib/python3.8/sqlite3/init.py

ls -l /usr/lib/python3/dist-packages/gramps/gen/utils

you should find symbols.py in the output.

I assume that’s the file you want to replace with your copy ?

yes, and I do see it in the terminal, but I have no idea how to get to it :anguished:

me@me-Latitude-E5510:~/Desktop$ ls -l /usr/lib/python3/dist-packages/gramps/gen/utils
total 344
-rw-r–r-- 1 root root 28472 Jan 10 2020 alive.py
-rw-r–r-- 1 root root 16859 Jan 10 2020 callback.py
-rw-r–r-- 1 root root 12393 Jan 10 2020 callman.py
-rw-r–r-- 1 root root 2742 Jan 10 2020 cast.py
-rw-r–r-- 1 root root 22507 Jan 10 2020 configmanager.py
-rw-r–r-- 1 root root 2263 Jan 10 2020 config.py
-rw-r–r-- 1 root root 24735 Jan 10 2020 db.py
-rw-r–r-- 1 root root 3063 Jan 10 2020 debug.py
drwxr-xr-x 3 root root 4096 Sep 11 00:29 docgen
-rw-r–r-- 1 root root 9034 Jan 10 2020 file.py
-rw-r–r-- 1 root root 48797 Jan 10 2020 grampslocale.py
-rw-r–r-- 1 root root 2166 Jan 10 2020 id.py
-rw-r–r-- 1 root root 9871 Jan 10 2020 image.py
-rw-r–r-- 1 root root 894 Jan 10 2020 init.py
-rw-r–r-- 1 root root 4656 Jan 10 2020 keyword.py
-rw-r–r-- 1 root root 3753 Jan 10 2020 lds.py
-rw-r–r-- 1 root root 9877 Jan 10 2020 libformatting.py
-rw-r–r-- 1 root root 5521 Jan 10 2020 location.py
-rw-r–r-- 1 root root 5088 Jan 10 2020 lru.py
-rw-r–r-- 1 root root 12266 Jan 10 2020 maclocale.py
-rw-r–r-- 1 root root 31035 Jan 10 2020 place.py
drwxr-xr-x 2 root root 4096 Sep 11 00:29 pycache
-rw-r–r-- 1 root root 10 Jan 15 2020 resource-path
-rw-r–r-- 1 root root 3959 Jan 10 2020 resourcepath.py
-rw-r–r-- 1 root root 3017 Jan 10 2020 string.py
-rw-r–r-- 1 root root 7687 Jan 10 2020 symbols.py
-rw-r–r-- 1 root root 13020 Jan 10 2020 thumbnails.py
-rw-r–r-- 1 root root 8079 Jan 10 2020 unknown.py

I assume you’ve done this once before?

Again, via the terminal…

sudo cd /usr/lib/python3/dist-packages/gramps/gen/utils

use pwd to confirm that you are indeed now in that directory.

pwd

If you are where you’re meant to be then preserve your existing symbols.py file.

sudo cp symbols.py symbols.bup.py

then copy your modified file over to the directory

sudo mv <full_path_to_your_modified_copy>/symbols.py symbols.modified.py

ls sym*

should show the 3 files symbols.py , symbols.bup.py and symbols.modified.py

Finally replace the existing with the new…

sudo cp symbols.modified.py symbols.py

1 Like

ok, I found out how to open a file as an admin Using nautilus admin tool. Got that installed, but still can’t figure out where the stupid file is

oh,edit/…you were typing as I was, I’ll go do that and be right back

OMG! that worked! I can never thank you enough. I have been up for almost 22 hours trying to fix this since m y computer crashed, I am SO HAPPY right now. THANK YOU!!!

1 Like

Good to hear. :smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.