Bug#1052125: nala cannot install the debreate package

2023-09-18 Thread Nikolay Sabelnikov
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  
пишет:
>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  
>   main() 
> File "/usr/bin/debreate", line 27, in main 
>   import globals.paths 
> File "/usr/share/debreate/globals/paths.py", line 16, in  
>   import libdbr.paths 
> File "/usr/share/debreate/lib/libdbr/paths.py", line 18, in  
>   from . import sysinfo 
> File "/usr/share/debreate/lib/libdbr/sysinfo.py", line 37, in  
>   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.



Bug#1052125: nala cannot install the debreate package

2023-09-17 Thread Blake Lee
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  
   main() 
 File "/usr/bin/debreate", line 27, in main 
   import globals.paths 
 File "/usr/share/debreate/globals/paths.py", line 16, in  
   import libdbr.paths 
 File "/usr/share/debreate/lib/libdbr/paths.py", line 18, in  
   from . import sysinfo 
 File "/usr/share/debreate/lib/libdbr/sysinfo.py", line 37, in  
   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.


Bug#1052125: nala cannot install the debreate package

2023-09-17 Thread Nikolay Sabelnikov
Package: nala

Version: 0.12.2

saber716rus@BOM-WXX9 ~/Загрузки> sudo nala install 
debreate_0.8-dev9_all.deb
Уведломение: The following will be installed to satisfy debreate:
  python3-pip

 Installing 

  Пакет:Версия:  
  Размер:  
  debreate  0.8-dev9  2 KB  
  python3-pip   23.0.1+dfsg-1   1.3 MB  
  python3-wheel 0.38.4-2 31 KB  


 Summary

 Install 3 Пакеты 
  

 Disk space required  7.0 MB   
   
Do you want to continue? [Д/н] y
╭─ Установка пакетов 
──────────────────────────────────────────────────────────╮
│Unpacking:  python3-wheel (0.38.4-2) 
 │
│Unpacking:  python3-pip (23.0.1+dfsg-1)  
 │
│Setting up: python3-wheel (0.38.4-2) 
 │
│Setting up: python3-pip (23.0.1+dfsg-1)  
 │
│Processing: triggers for man-db (2.11.2-2)   
 │
│Unpacking:  debreate (0.8-dev9)  
 │
│Setting up: debreate (0.8-dev9)  
 │
│An unhandled exception occurred and Debreate shut down:  
 │
│Traceback (most recent call last):   
 │
│File "/usr/bin/debreate", line 230, in   
 │
│╭────────────────────────────────────────────────────────────────────────────╮│
││⠦ Running dpkg … 
━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━
 75.0% • 0:00:02 • 6/8││
│╰────────────────────────────────────────────────────────────────────────────╯│
╰──────────────────────────────────────────────────────────────────────────────╯
╭───────────────────── Traceback 
(most recent call last) 
──────────────────────╮
│ /usr/lib/python3/dist-packages/nala/nala.py:364 in install  
 │
│ 
 │
│   361 │   man_help: bool = MAN_HELP,  
   │
│   362 ) -> None:
 │
│   363 │   """Install packages.""" 
   │
│ ❱ 364 │   _install(pkg_names, ctx)  
 │
│   365   
 │
│   366   
 │
│   367 @nala.command(help=_("Remove packages.")) 
 │
│ 
 │
│ 
╭──────────────────────────────
 locals 
──────────────────────────────╮
   │
│ │ assume_yes = None  │  
 │
│ │auto_remove = None  │  
 │
│ │ctx =  │  
 │
│ │  debug = None  │  
 │
│ │  download_only = None