getappmap / getappmap/appmap-js
`appmap-agent-init` isn't recognized as a command during installation
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 53
- Forks
- 18
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 8
Description
From this bug report it looks like appmap-agent-init gets installed to a location that isn't on PATH and then fails to execute:
WARNING: The scripts appmap-agent-init.exe, appmap-agent-status.exe and appmap-agent-validate.exe are installed in '%AppData%\Local\Packages\PythonSoftwareFoundation.Python.3.10\LocalCache\local-packages\Python310\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Error: An error occurred while running the command: appmap-agent-init
The command exited with code 1
"appmap-agent-init" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
at ChildProcess.<anonymous> (node_modules\@appland\appmap\built\cmds\agentInstaller\commandRunner.js:100:27)
at ChildProcess.emit (node:events:526:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
Error: An error occurred while running the command: poetry run appmap-agent-init
The command exited with code 127
> The virtual environment found in $HOME/.pyenv/versions/3.10.8/envs/appmap seems to be broken.
> Recreating virtualenv py3.10 in $HOME/.cache/pypoetry/virtualenvs/py3.10
> pyenv: appmap-agent-init: command not found
>
> The `appmap-agent-init' command exists in these Python versions:
> 3.10.4/envs/py3.10.4
> py3.10.4
>
> Note: See 'pyenv help global' for tips on allowing both
> python2 and python3 to be found.
at ChildProcess.<anonymous> (node_modules/@appland/appmap/built/cmds/agentInstaller/commandRunner.js:100:27)
at ChildProcess.emit (node:events:513:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the installer entry point at node_modules/@appland/appmap/built/cmds/agentInstaller/commandRunner.js and reproduce the installation flow using the Windows PATH warning and the Poetry/pyenv failure details. Compare behavior across the reported environments; done means appmap-agent-init can be invoked successfully after installation in those environments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, python, typescript
- Domain
- cli, developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100