Skip to content

archlinux: Unhandled exception 'Invalid locale for LC_CTYPE' #912

Closed
@rsteube

Description

@rsteube

Error occurs on archlinux/manjaro but works on ubuntu.

FROM archlinux

RUN pacman -Sy --noconfirm base-devel

ARG version=0.8.8
RUN curl https://www.oilshell.org/download/oil-${version}.tar.gz | tar -xvz \
 && cd oil-*/ \
 && ./configure \
 && make \
 && ./install

RUN curl -L "https://github.com/rsteube/carapace/releases/download/v0.4.2/example_0.4.2_Linux_x86_64.tar.gz" | tar --directory /usr/local/bin -xvz

RUN mkdir -p ~/.config/oil \
 && echo 'source <(example _carapace)' >> ~/.config/oil/oshrc

CMD [ "osh" ]
osh$ _example_completion
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 287, in _cpython_main_hook
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 260, in main
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 220, in AppBundleMain
  File "/home/andy/git/oilshell/oil/core/shell.py", line 601, in Main
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 124, in Interactive
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1476, in ExecuteAndCatch
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1323, in _Execute
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 636, in _Dispatch
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand
  File "/home/andy/git/oilshell/oil/core/executor.py", line 224, in RunSimpleCommand
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1621, in RunProc
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1323, in _Execute
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 983, in _Dispatch
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1379, in _ExecuteList
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1323, in _Execute
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 996, in _Dispatch
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1323, in _Execute
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 684, in _Dispatch
  File "/home/andy/git/oilshell/oil/osh/sh_expr_eval.py", line 935, in EvalB
SystemError: Invalid locale for LC_CTYPE
FATAL: couldn't import from app bundle '/usr/local/bin/oil.ovm' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions