Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pnpm test failed because of missing main.py file #1822

Open
JamesLloydPartingtonSerendipityai opened this issue Jan 29, 2025 · 0 comments
Open
Labels
bug Something isn't working dev-tooling Relating to developer/contributor toolings. needs-triage

Comments

@JamesLloydPartingtonSerendipityai
Copy link
Contributor

Describe the bug

jamespartington@Jamess-MacBook-Pro-4 chainlit-command % pnpm test

> @ test /Users/jamespartington/github/chainlit-command
> pnpm exec ts-node ./cypress/support/e2e.ts

Could not kill process on port 8000. No process running on port 8000.
stdout: 2025-01-29 09:51:02 - Running in CI mode

stderr: Usage: chainlit run [OPTIONS] TARGET
Try 'chainlit run --help' for help.


stderr: Error: Invalid value: File does not exist: main.py

child process exited with code 2
Error: Command failed: pnpm exec ts-node ./cypress/support/run.ts action
    at checkExecSyncError (node:child_process:890:11)
    at execSync (node:child_process:962:15)
    at runCommand (/Users/jamespartington/github/chainlit-command/cypress/support/utils.ts:29:18)
    at /Users/jamespartington/github/chainlit-command/cypress/support/utils.ts:17:3
    at step (/Users/jamespartington/github/chainlit-command/cypress/support/utils.ts:33:23)
    at Object.next (/Users/jamespartington/github/chainlit-command/cypress/support/utils.ts:14:53)
    at /Users/jamespartington/github/chainlit-command/cypress/support/utils.ts:8:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/jamespartington/github/chainlit-command/cypress/support/utils.ts:4:12) {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 89343,
  stdout: null,
  stderr: null
}
 ELIFECYCLE  Test failed. See above for more details.

To Reproduce
Following instruction on https://github.com/Chainlit/chainlit/blob/main/CONTRIBUTING.md

Versions

ls -l $(command -v poetry)
lrwxr-xr-x@ 1 jamespartington  staff  58 29 Jan 08:54 /Users/jamespartington/.local/bin/poetry -> /Users/jamespartington/.local/pipx/venvs/poetry/bin/poetry
jamespartington@Jamess-MacBook-Pro-4 backend % poetry -V
Poetry (version 2.0.1)

ls -l $(command -v node)
-rwxr-xr-x  1 root  wheel  192371136  9 Jan  2024 /usr/local/bin/node
jamespartington@Jamess-MacBook-Pro-4 backend % node -v
v20.11.0

ls -l $(command -v pnpm)
-rwxr-xr-x@ 1 jamespartington  staff  63931808 29 Jan 08:55 /Users/jamespartington/Library/pnpm/pnpm
jamespartington@Jamess-MacBook-Pro-4 backend % pnpm -v
10.0.0

ls -l $(command -v python)
-rwxr-xr-x@ 1 jamespartington  staff  192  4 Sep  2023 /Users/jamespartington/.pyenv/shims/python
jamespartington@Jamess-MacBook-Pro-4 backend % python -V
Python 3.11.4

Git hash
git rev-parse HEAD
de1636eb0cf285e771eb539c95c72174fc31d7df

Desktop (please complete the following information):

Chip Apple M2 Pro
MacOS Sequoia 15.1.1

@dosubot dosubot bot added bug Something isn't working dev-tooling Relating to developer/contributor toolings. labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dev-tooling Relating to developer/contributor toolings. needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant