#1052125 nala cannot install the debreate package

Package:
nala
Source:
nala
Submitter:
Nikolay Sabelnikov
Date:
2023-09-18 10:33:03 UTC
Severity:
normal
#1052125#5
Date:
2023-09-17 17:51:03 UTC
From:
To:
Version: 0.12.2
#1052125#10
Date:
2023-09-18 02:31:47 UTC
From:
To:
I was able to reproduce this on my system. First this is the error that happens when installing. This is what crashes Nala because of the formatter.

```
Traceback (most recent call last):
 File "/usr/bin/debreate", line 230, in <module>
   main()
 File "/usr/bin/debreate", line 27, in main
   import globals.paths
 File "/usr/share/debreate/globals/paths.py", line 16, in <module>
   import libdbr.paths
 File "/usr/share/debreate/lib/libdbr/paths.py", line 18, in <module>
   from . import sysinfo
 File "/usr/share/debreate/lib/libdbr/sysinfo.py", line 37, in <module>
   if not __os_name:
          ^^^^^^^^^
NameError: name '__os_name' is not defined
```

This portion happens with apt as well, although apt doesn't crash. If you use --raw-dpkg switch with Nala it will complete. I have already fixed this crash upstream but haven't released yet.

I would say you should likely report this to the debreate devs, even getting the install to complete with apt, the same error is thrown when I try to run the program.

#1052125#15
Date:
2023-09-18 10:24:22 UTC
From:
To:
hello. thank you for responding quickly. Then with your permission, I will create a bug in their Git with a reference to this bug.

18 сентября 2023 г. 05:31:47 GMT+03:00, Blake Lee <volian-devel@volian.org> пишет: