Skip to content

No such file or directory: 'clip.exe' #63

Description

@lucaspottersky

Describe the bug
emerge throws "No such file or directory: 'clip.exe'"

Describe your environment

  • WSL and Docker Container
  • Python 3.14.4

To Reproduce

  1. Inside WSL or devcontainer.
  2. Create a config with (emerge -a TYPESCRIPT) and edit source_directory and export config.
  3. Run the tool (emerge -c typescript-template.yaml)

Additional context
Dockerfile:

FROM mcr.microsoft.com/devcontainers/python:3-3.14-trixie

RUN apt-get update \
    && apt-get install -y --no-install-recommends python3-pip graphviz graphviz-dev\
    && rm -rf /var/lib/apt/lists/*

Error log:

Traceback (most recent call last):

  File "/home/vscode/.local/bin/emerge", line 6, in <module>
    sys.exit(run())
             ~~~^^
  File "/home/vscode/.local/lib/python3.14/site-packages/emerge/main.py", line 13, in run
    emerge.start()
    ~~~~~~~~~~~~^^
  File "/home/vscode/.local/lib/python3.14/site-packages/emerge/appear.py", line 91, in start
    self.start_analyzing()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "/home/vscode/.local/lib/python3.14/site-packages/emerge/appear.py", line 112, in start_analyzing
    analyzer.start_analyzing()
    ~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/vscode/.local/lib/python3.14/site-packages/emerge/analyzer.py", line 51, in start_analyzing
    self.start_scanning(analysis)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/home/vscode/.local/lib/python3.14/site-packages/emerge/analyzer.py", line 103, in start_scanning
    analysis.export()
    ~~~~~~~~~~~~~~~^^
  File "/home/vscode/.local/lib/python3.14/site-packages/emerge/analysis.py", line 324, in export
    pyperclip.copy(f'file://{resolved_export_path}/html/emerge.html')
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vscode/.local/lib/python3.14/site-packages/pyperclip/__init__.py", line 622, in lazy_load_stub_copy
    return copy(text)
  File "/home/vscode/.local/lib/python3.14/site-packages/pyperclip/__init__.py", line 469, in copy_wsl
    p = subprocess.Popen(['clip.exe'],
                         stdin=subprocess.PIPE, close_fds=True)
  File "/usr/local/lib/python3.14/subprocess.py", line 1039, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                        pass_fds, cwd, env,
                        ^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
                        gid, gids, uid, umask,
                        ^^^^^^^^^^^^^^^^^^^^^^
                        start_new_session, process_group)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/subprocess.py", line 1990, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'clip.exe'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions