xonsh / xonsh

:shell: Python-powered shell. Full-featured and cross-platform.
http://xon.sh
Other
8.47k stars 643 forks source link

Xonsh from `dnf` consumes too much memory on Fedora #4601

Closed carmenbianca closed 6 months ago

carmenbianca commented 2 years ago

xonfig

``` $ xonfig +------------------+---------------------------------+ | xonsh | 0.11.0 | | Git SHA | 337cf25a | | Commit Date | Nov 17 15:37:41 2021 | | Python | 3.10.0 | | PLY | 3.11 | | have readline | True | | prompt toolkit | 3.0.5 | | shell type | readline | | history backend | json | | pygments | 2.9.0 | | on posix | True | | on linux | True | | distro | fedora | | on wsl | False | | on darwin | False | | on windows | False | | on cygwin | False | | on msys2 | False | | is superuser | False | | default encoding | utf-8 | | xonsh encoding | utf-8 | | encoding errors | surrogateescape | | on jupyter | False | | jupyter kernel | None | | xontrib 1 | vox | | xontrib 2 | voxapi | | RC file 1 | /var/home/carmenbianca/.xonshrc | +------------------+---------------------------------+ ```

Expected Behavior

The xonsh process should consume approximately 20 MB.

Current Behavior

When xonsh from the Fedora xonsh package is launched, it consumes upwards of 100 MB. By comparison, pipx install xonsh; xonsh consumes approximately 20 MB, which I assume is fairly normal.

Steps to Reproduce

  1. Install Fedora
  2. sudo dnf install xonsh
  3. xonsh

Furthermore

The xonsh.spec can be found here.

The build output can be found here.#

There are functionally no differences between upstream xonsh and Fedora's xonsh. Here a super dirty script + output:

cd ~/.local/pipx/venvs/xonsh/lib/python3.10/site-packages/xonsh
for path in gp`**`:
    if "__pycache__" in str(path) or path.is_dir():
        continue
    print(path)
    diff @(path) @(f"/usr/lib/python3.10/site-packages/xonsh/{path}")
```diff __amalgam__.py 11380c11380 < from xonsh.ply.ply.lex import LexToken --- > from ply.lex import LexToken 15533,15534c15533 < from xonsh.ply import ply < --- > ply = _LazyModule.load('ply', 'ply') __init__.py __main__.py aliases.py ansi_colors.py ast.py base_shell.py built_ins.py cli_utils.py codecache.py color_tools.py commands_cache.py completer.py completers/__amalgam__.py completers/__init__.py completers/_aliases.py completers/argparser.py completers/base.py completers/bash.py completers/bash_completion.py completers/commands.py completers/completer.py completers/dirs.py completers/environment.py completers/imports.py completers/init.py completers/man.py completers/path.py completers/pip.py completers/python.py completers/tools.py completion_parser_table.py 9c9 < _lr_signature = 'AND ANY ATDOLLAR_LPAREN AT_LPAREN BANG_LBRACKET BANG_LPAREN DOLLAR_LBRACKET DOLLAR_LPAREN NEWLINE OR PIPE RBRACKET RPAREN SEMI STRINGcontext : command\n | commands\n command : args\n |\n commands : commandcommands : commands SEMI command\n\t| commands PIPE command\n\t| commands OR command\n\t| commands AND command\n\t| commands NEWLINE commandsub_expression : DOLLAR_LPAREN commands RPAREN\n\t| BANG_LPAREN commands RPAREN\n\t| ATDOLLAR_LPAREN commands RPAREN\n\t| DOLLAR_LBRACKET commands RBRACKET\n\t| BANG_LBRACKET commands RBRACKET\n\t| AT_LPAREN commands RPAREN\n | DOLLAR_LPAREN commands\n\t| BANG_LPAREN commands\n\t| ATDOLLAR_LPAREN commands\n\t| DOLLAR_LBRACKET commands\n\t| BANG_LBRACKET commands\n\t| AT_LPAREN commands\n arg : sub_expressionarg : DOLLAR_LPAREN\n\t| ATDOLLAR_LPAREN\n\t| BANG_LPAREN\n\t| DOLLAR_LBRACKET\n\t| STRING\n\t| ANY\n\t| BANG_LBRACKET\n\t| AT_LPARENargs : argargs : args arg' --- > _lr_signature = 'AND ANY ATDOLLAR_LPAREN AT_LPAREN BANG_LBRACKET BANG_LPAREN DOLLAR_LBRACKET DOLLAR_LPAREN NEWLINE OR PIPE RBRACKET RPAREN SEMI STRINGcontext : command\n | commands\n command : args\n |\n commands : commandcommands : commands OR command\n\t| commands AND command\n\t| commands SEMI command\n\t| commands NEWLINE command\n\t| commands PIPE commandsub_expression : DOLLAR_LPAREN commands RPAREN\n\t| BANG_LPAREN commands RPAREN\n\t| ATDOLLAR_LPAREN commands RPAREN\n\t| DOLLAR_LBRACKET commands RBRACKET\n\t| BANG_LBRACKET commands RBRACKET\n\t| AT_LPAREN commands RPAREN\n | DOLLAR_LPAREN commands\n\t| BANG_LPAREN commands\n\t| ATDOLLAR_LPAREN commands\n\t| DOLLAR_LBRACKET commands\n\t| BANG_LBRACKET commands\n\t| AT_LPAREN commands\n arg : sub_expressionarg : ATDOLLAR_LPAREN\n\t| STRING\n\t| BANG_LPAREN\n\t| DOLLAR_LBRACKET\n\t| AT_LPAREN\n\t| DOLLAR_LPAREN\n\t| ANY\n\t| BANG_LBRACKETargs : argargs : args arg' 11c11 < _lr_action_items = {'$end':([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[-4,0,-1,-2,-3,-32,-23,-4,-4,-4,-4,-28,-29,-4,-4,-4,-4,-4,-4,-4,-33,-17,-5,-19,-18,-20,-21,-22,-6,-7,-8,-9,-10,-11,-13,-12,-14,-15,-16,]),'SEMI':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[-4,-5,15,-3,-32,-23,-4,-4,-4,-4,-28,-29,-4,-4,-4,-4,-4,-4,-4,-33,15,-5,15,15,15,15,15,-6,-7,-8,-9,-10,-11,-13,-12,-14,-15,-16,]),'PIPE':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[-4,-5,16,-3,-32,-23,-4,-4,-4,-4,-28,-29,-4,-4,-4,-4,-4,-4,-4,-33,16,-5,16,16,16,16,16,-6,-7,-8,-9,-10,-11,-13,-12,-14,-15,-16,]),'OR':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[-4,-5,17,-3,-32,-23,-4,-4,-4,-4,-28,-29,-4,-4,-4,-4,-4,-4,-4,-33,17,-5,17,17,17,17,17,-6,-7,-8,-9,-10,-11,-13,-12,-14,-15,-16,]),'AND':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[-4,-5,18,-3,-32,-23,-4,-4,-4,-4,-28,-29,-4,-4,-4,-4,-4,-4,-4,-33,18,-5,18,18,18,18,18,-6,-7,-8,-9,-10,-11,-13,-12,-14,-15,-16,]),'NEWLINE':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[-4,-5,19,-3,-32,-23,-4,-4,-4,-4,-28,-29,-4,-4,-4,-4,-4,-4,-4,-33,19,-5,19,19,19,19,19,-6,-7,-8,-9,-10,-11,-13,-12,-14,-15,-16,]),'DOLLAR_LPAREN':([0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[7,7,-32,-23,7,7,7,7,-28,-29,7,7,7,7,7,7,7,-33,-17,-5,-19,-18,-20,-21,-22,-6,-7,-8,-9,-10,-11,-13,-12,-14,-15,-16,]),'ATDOLLAR_LPAREN':([0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[8,8,-32,-23,8,8,8,8,-28,-29,8,8,8,8,8,8,8,-33,-17,-5,-19,-18,-20,-21,-22,-6,-7,-8,-9,-10,-11,-13,-12,-14,-15,-16,]),'BANG_LPAREN':([0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[9,9,-32,-23,9,9,9,9,-28,-29,9,9,9,9,9,9,9,-33,-17,-5,-19,-18,-20,-21,-22,-6,-7,-8,-9,-10,-11,-13,-12,-14,-15,-16,]),'DOLLAR_LBRACKET':([0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[10,10,-32,-23,10,10,10,10,-28,-29,10,10,10,10,10,10,10,-33,-17,-5,-19,-18,-20,-21,-22,-6,-7,-8,-9,-10,-11,-13,-12,-14,-15,-16,]),'STRING':([0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[11,11,-32,-23,11,11,11,11,-28,-29,11,11,11,11,11,11,11,-33,-17,-5,-19,-18,-20,-21,-22,-6,-7,-8,-9,-10,-11,-13,-12,-14,-15,-16,]),'ANY':([0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[12,12,-32,-23,12,12,12,12,-28,-29,12,12,12,12,12,12,12,-33,-17,-5,-19,-18,-20,-21,-22,-6,-7,-8,-9,-10,-11,-13,-12,-14,-15,-16,]),'BANG_LBRACKET':([0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[13,13,-32,-23,13,13,13,13,-28,-29,13,13,13,13,13,13,13,-33,-17,-5,-19,-18,-20,-21,-22,-6,-7,-8,-9,-10,-11,-13,-12,-14,-15,-16,]),'AT_LPAREN':([0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[14,14,-32,-23,14,14,14,14,-28,-29,14,14,14,14,14,14,14,-33,-17,-5,-19,-18,-20,-21,-22,-6,-7,-8,-9,-10,-11,-13,-12,-14,-15,-16,]),'RPAREN':([4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[-3,-32,-23,-4,-4,-4,-4,-28,-29,-4,-4,-4,-4,-4,-4,-4,-33,33,-5,34,35,-20,-21,38,-6,-7,-8,-9,-10,-11,-13,-12,-14,-15,-16,]),'RBRACKET':([4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[-3,-32,-23,-4,-4,-4,-4,-28,-29,-4,-4,-4,-4,-4,-4,-4,-33,-17,-5,-19,-18,36,37,-22,-6,-7,-8,-9,-10,-11,-13,-12,-14,-15,-16,]),} --- > _lr_action_items = {'$end':([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[-4,0,-1,-2,-3,-32,-23,-4,-25,-4,-4,-4,-4,-30,-4,-4,-4,-4,-4,-4,-33,-19,-5,-18,-20,-22,-17,-21,-6,-7,-8,-9,-10,-13,-12,-14,-16,-11,-15,]),'OR':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[-4,-5,15,-3,-32,-23,-4,-25,-4,-4,-4,-4,-30,-4,-4,-4,-4,-4,-4,-33,15,-5,15,15,15,15,15,-6,-7,-8,-9,-10,-13,-12,-14,-16,-11,-15,]),'AND':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[-4,-5,16,-3,-32,-23,-4,-25,-4,-4,-4,-4,-30,-4,-4,-4,-4,-4,-4,-33,16,-5,16,16,16,16,16,-6,-7,-8,-9,-10,-13,-12,-14,-16,-11,-15,]),'SEMI':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[-4,-5,17,-3,-32,-23,-4,-25,-4,-4,-4,-4,-30,-4,-4,-4,-4,-4,-4,-33,17,-5,17,17,17,17,17,-6,-7,-8,-9,-10,-13,-12,-14,-16,-11,-15,]),'NEWLINE':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[-4,-5,18,-3,-32,-23,-4,-25,-4,-4,-4,-4,-30,-4,-4,-4,-4,-4,-4,-33,18,-5,18,18,18,18,18,-6,-7,-8,-9,-10,-13,-12,-14,-16,-11,-15,]),'PIPE':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[-4,-5,19,-3,-32,-23,-4,-25,-4,-4,-4,-4,-30,-4,-4,-4,-4,-4,-4,-33,19,-5,19,19,19,19,19,-6,-7,-8,-9,-10,-13,-12,-14,-16,-11,-15,]),'ATDOLLAR_LPAREN':([0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[7,7,-32,-23,7,-25,7,7,7,7,-30,7,7,7,7,7,7,-33,-19,-5,-18,-20,-22,-17,-21,-6,-7,-8,-9,-10,-13,-12,-14,-16,-11,-15,]),'STRING':([0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[8,8,-32,-23,8,-25,8,8,8,8,-30,8,8,8,8,8,8,-33,-19,-5,-18,-20,-22,-17,-21,-6,-7,-8,-9,-10,-13,-12,-14,-16,-11,-15,]),'BANG_LPAREN':([0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[9,9,-32,-23,9,-25,9,9,9,9,-30,9,9,9,9,9,9,-33,-19,-5,-18,-20,-22,-17,-21,-6,-7,-8,-9,-10,-13,-12,-14,-16,-11,-15,]),'DOLLAR_LBRACKET':([0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[10,10,-32,-23,10,-25,10,10,10,10,-30,10,10,10,10,10,10,-33,-19,-5,-18,-20,-22,-17,-21,-6,-7,-8,-9,-10,-13,-12,-14,-16,-11,-15,]),'AT_LPAREN':([0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[11,11,-32,-23,11,-25,11,11,11,11,-30,11,11,11,11,11,11,-33,-19,-5,-18,-20,-22,-17,-21,-6,-7,-8,-9,-10,-13,-12,-14,-16,-11,-15,]),'DOLLAR_LPAREN':([0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[12,12,-32,-23,12,-25,12,12,12,12,-30,12,12,12,12,12,12,-33,-19,-5,-18,-20,-22,-17,-21,-6,-7,-8,-9,-10,-13,-12,-14,-16,-11,-15,]),'ANY':([0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[13,13,-32,-23,13,-25,13,13,13,13,-30,13,13,13,13,13,13,-33,-19,-5,-18,-20,-22,-17,-21,-6,-7,-8,-9,-10,-13,-12,-14,-16,-11,-15,]),'BANG_LBRACKET':([0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[14,14,-32,-23,14,-25,14,14,14,14,-30,14,14,14,14,14,14,-33,-19,-5,-18,-20,-22,-17,-21,-6,-7,-8,-9,-10,-13,-12,-14,-16,-11,-15,]),'RPAREN':([4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[-3,-32,-23,-4,-25,-4,-4,-4,-4,-30,-4,-4,-4,-4,-4,-4,-33,33,-5,34,-20,36,37,-21,-6,-7,-8,-9,-10,-13,-12,-14,-16,-11,-15,]),'RBRACKET':([4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,],[-3,-32,-23,-4,-25,-4,-4,-4,-4,-30,-4,-4,-4,-4,-4,-4,-33,-19,-5,-18,35,-22,-17,38,-6,-7,-8,-9,-10,-13,-12,-14,-16,-11,-15,]),} 20c20 < _lr_goto_items = {'context':([0,],[1,]),'command':([0,7,8,9,10,13,14,15,16,17,18,19,],[2,22,22,22,22,22,22,28,29,30,31,32,]),'commands':([0,7,8,9,10,13,14,],[3,21,23,24,25,26,27,]),'args':([0,7,8,9,10,13,14,15,16,17,18,19,],[4,4,4,4,4,4,4,4,4,4,4,4,]),'arg':([0,4,7,8,9,10,13,14,15,16,17,18,19,],[5,20,5,5,5,5,5,5,5,5,5,5,5,]),'sub_expression':([0,4,7,8,9,10,13,14,15,16,17,18,19,],[6,6,6,6,6,6,6,6,6,6,6,6,6,]),} --- > _lr_goto_items = {'context':([0,],[1,]),'command':([0,7,9,10,11,12,14,15,16,17,18,19,],[2,22,22,22,22,22,22,28,29,30,31,32,]),'commands':([0,7,9,10,11,12,14,],[3,21,23,24,25,26,27,]),'args':([0,7,9,10,11,12,14,15,16,17,18,19,],[4,4,4,4,4,4,4,4,4,4,4,4,]),'arg':([0,4,7,9,10,11,12,14,15,16,17,18,19,],[5,20,5,5,5,5,5,5,5,5,5,5,5,]),'sub_expression':([0,4,7,9,10,11,12,14,15,16,17,18,19,],[6,6,6,6,6,6,6,6,6,6,6,6,6,]),} 35,39c35,39 < ('commands -> commands SEMI command','commands',3,'p_multiple_commands_many','completion_context.py',553), < ('commands -> commands PIPE command','commands',3,'p_multiple_commands_many','completion_context.py',554), < ('commands -> commands OR command','commands',3,'p_multiple_commands_many','completion_context.py',555), < ('commands -> commands AND command','commands',3,'p_multiple_commands_many','completion_context.py',556), < ('commands -> commands NEWLINE command','commands',3,'p_multiple_commands_many','completion_context.py',557), --- > ('commands -> commands OR command','commands',3,'p_multiple_commands_many','completion_context.py',553), > ('commands -> commands AND command','commands',3,'p_multiple_commands_many','completion_context.py',554), > ('commands -> commands SEMI command','commands',3,'p_multiple_commands_many','completion_context.py',555), > ('commands -> commands NEWLINE command','commands',3,'p_multiple_commands_many','completion_context.py',556), > ('commands -> commands PIPE command','commands',3,'p_multiple_commands_many','completion_context.py',557), 53,54c53,54 < ('arg -> DOLLAR_LPAREN','arg',1,'p_any_token_arg','completion_context.py',670), < ('arg -> ATDOLLAR_LPAREN','arg',1,'p_any_token_arg','completion_context.py',671), --- > ('arg -> ATDOLLAR_LPAREN','arg',1,'p_any_token_arg','completion_context.py',670), > ('arg -> STRING','arg',1,'p_any_token_arg','completion_context.py',671), 57,60c57,60 < ('arg -> STRING','arg',1,'p_any_token_arg','completion_context.py',674), < ('arg -> ANY','arg',1,'p_any_token_arg','completion_context.py',675), < ('arg -> BANG_LBRACKET','arg',1,'p_any_token_arg','completion_context.py',676), < ('arg -> AT_LPAREN','arg',1,'p_any_token_arg','completion_context.py',677), --- > ('arg -> AT_LPAREN','arg',1,'p_any_token_arg','completion_context.py',674), > ('arg -> DOLLAR_LPAREN','arg',1,'p_any_token_arg','completion_context.py',675), > ('arg -> ANY','arg',1,'p_any_token_arg','completion_context.py',676), > ('arg -> BANG_LBRACKET','arg',1,'p_any_token_arg','completion_context.py',677), contexts.py dev.githash diff_history.py dirstack.py dumb_shell.py environ.py events.py execer.py foreign_shells.py history/__amalgam__.py history/__init__.py history/base.py history/dummy.py history/json.py history/main.py history/sqlite.py imphooks.py inspectors.py jobs.py jsonutils.py jupyter_kernel.py jupyter_shell.py lazyasd.py lazyimps.py lazyjson.py lexer.py 13c13 < from xonsh.ply.ply.lex import LexToken --- > from ply.lex import LexToken lib/__init__.py lib/collections.py lib/itertools.py lib/os.xsh lib/subprocess.xsh macutils.py main.py openpy.py parser.py parser_table.py parsers/__init__.py parsers/base.py 12c12 < from xonsh.ply.ply import yacc --- > from ply import yacc parsers/completion_context.py 25c25 < from xonsh.ply.ply import yacc --- > from ply import yacc parsers/context_check.py parsers/fstring_adaptor.py parsers/v310.py 10c10 < from xonsh.ply.ply import yacc --- > from ply import yacc parsers/v36.py parsers/v38.py parsers/v39.py platform.py ply/ply/__init__.py diff: /usr/lib/python3.10/site-packages/xonsh/ply/ply/__init__.py: Dosiero aŭ dosierujo ne ekzistas ply/ply/cpp.py diff: /usr/lib/python3.10/site-packages/xonsh/ply/ply/cpp.py: Dosiero aŭ dosierujo ne ekzistas ply/ply/ctokens.py diff: /usr/lib/python3.10/site-packages/xonsh/ply/ply/ctokens.py: Dosiero aŭ dosierujo ne ekzistas ply/ply/lex.py diff: /usr/lib/python3.10/site-packages/xonsh/ply/ply/lex.py: Dosiero aŭ dosierujo ne ekzistas ply/ply/yacc.py diff: /usr/lib/python3.10/site-packages/xonsh/ply/ply/yacc.py: Dosiero aŭ dosierujo ne ekzistas ply/ply/ygen.py diff: /usr/lib/python3.10/site-packages/xonsh/ply/ply/ygen.py: Dosiero aŭ dosierujo ne ekzistas pretty.py proc.py procs/__amalgam__.py procs/__init__.py procs/pipelines.py procs/posix.py procs/proxies.py procs/readers.py procs/specs.py prompt/__amalgam__.py prompt/__init__.py prompt/base.py prompt/cwd.py prompt/env.py prompt/gitstatus.py prompt/job.py prompt/times.py prompt/vc.py ptk2/__init__.py ptk2/completer.py ptk2/history.py ptk2/key_bindings.py ptk2/shell.py ptk_shell/__init__.py ptk_shell/completer.py ptk_shell/formatter.py ptk_shell/history.py ptk_shell/key_bindings.py ptk_shell/shell.py ptk_shell/updator.py pyghooks.py pygments_cache.py pytest_plugin.py readline_shell.py shell.py style_tools.py timings.py tokenize.py tools.py tracer.py webconfig/__init__.py webconfig/__main__.py webconfig/index.html webconfig/js/LICENSE-bootstrap webconfig/js/app.min.js webconfig/js/bootstrap.min.css webconfig/main.py 1c1 < #!/usr/bin/env python3 --- > winutils.py wizard.py xonfig.py 17c17 < from xonsh.ply import ply --- > import ply xontribs.py xontribs_meta.py xoreutils/__init__.py xoreutils/_which.py 1c1 < #!/usr/bin/env python --- > xoreutils/cat.py xoreutils/echo.py xoreutils/pwd.py xoreutils/tee.py xoreutils/tty.py xoreutils/ulimit.py xoreutils/umask.py xoreutils/uptime.py xoreutils/util.py xoreutils/which.py xoreutils/yes.py ```

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

anki-code commented 2 years ago

Can you repeat this in docker? i.e.

docker run --rm -it fedora /bin/bash \
    -c "yum install -y pip && pip install xonsh && xonsh"
carmenbianca commented 2 years ago

Xonsh installed through pip is not affected. Only xonsh installed through dnf is. You might need to use the fedora:rawhide image to get the latest xonsh.

Disclaimer: I maintain Fedora's xonsh package.

carmenbianca commented 2 years ago

Update: Can't replicate this in Docker/Podman:

podman run --rm -it fedora /bin/bash \
    -c "dnf install -y xonsh /usr/bin/free && xonsh"
free -m
# current memory usage is printed here
xonsh
free -m
# 20 MB less is used
anki-code commented 6 months ago

I'm going to close this until getting new info. I recommend to try to trace this by using xunter.