R
RunPod9mo ago
fanbing

Dockerless CLI can not sync local files to runpod server

when i try use dockerless following runpod blog feb 2 2024, i config and create project sucess on local ,but when i start a development session useing "runpodctl project dev", ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'builder/requirements.txt' . cmd file is "C:\Users\Administrator\test-project>" .please tell why . log info : Waiting for Pod to come online... Project test-project Pod (npia2rx81eq4wp) created. Checking remote project folder: /runpod-volume/68b7482a/dev/test-project on Pod npia2rx81eq4wp Syncing files to Pod npia2rx81eq4wp Activating Python virtual environment /68b7482a/venv on Pod npia2rx81eq4wp [npia2rx81eq4wp] Retrieving existing venv from network volume... [npia2rx81eq4wp] Requirement already satisfied: pip in /68b7482a/venv/lib/python3.10/site-packages (24.0) [npia2rx81eq4wp] Using pip 24.0 from /68b7482a/venv/lib/python3.10/site-packages/pip (python 3.10) [npia2rx81eq4wp] ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'builder/requirements.txt' Creating Project watcher... Starting project endpoint... [npia2rx81eq4wp] - Activated project environment. [npia2rx81eq4wp] cat: /installreport.json: No such file or directory [npia2rx81eq4wp] - Changed to project directory. [npia2rx81eq4wp] cp: cannot stat '.runpodignore': No such file or directory [npia2rx81eq4wp] - Started API server with PID: 178 [npia2rx81eq4wp] python: can't open file '/runpod-volume/68b7482a/dev/test-project/src/handler.py': [Errno 2] No such file or directory [npia2rx81eq4wp] [npia2rx81eq4wp] Connect to the API server at: [npia2rx81eq4wp] > https://npia2rx81eq4wp-7270.proxy.runpod.net [npia2rx81eq4wp] [npia2rx81eq4wp] Synced venv to network volume
Solution:
install guide for wsl if you gotta install that: https://canonical-ubuntu-wsl.readthedocs-hosted.com/en/latest/
Jump to solution
11 Replies
PatrickR
PatrickR9mo ago
That error says you're missing: requirements.txt in the builder folder. You could create a new file in that location and add your libraries (include runpod). Or try to recreate the project. I haven't seen this issue before and can't reproduce your logs.
fanbing
fanbingOP9mo ago
I just follow this blog, https://blog.runpod.io/runpod-dockerless-cli-innovation/, i did not change anything. Is there any need to be set? if true, please let me know. in container Logs, No config file used . is this a problem? in my files , there is only venv files, no dev files.my system is window10 , runpodctl version is 1.14.2.
No description
No description
No description
fanbing
fanbingOP9mo ago
in local project, requirements.txt exist in builder fold.
haris
haris9mo ago
@Merrell @nathaniel would one of y'all be able to help as the blog post mentioned was authored by y'all
nathaniel
nathaniel9mo ago
thanks for providing all the info up front, we will look into it. if you're using powershell, it is for the moment expected not to work because rsync is not installed by default and that's what we use to do the file transfer so you can switch to using runpodctl through WSL, which does have rsync and we will look into an alternate file transfer method for windows powershell users. This was an oversight on our part, sorry about that
Solution
nathaniel
nathaniel9mo ago
install guide for wsl if you gotta install that: https://canonical-ubuntu-wsl.readthedocs-hosted.com/en/latest/
justin
justin9mo ago
maybe something to add to the docs
nathaniel
nathaniel9mo ago
definitely, and the readme
fanbing
fanbingOP9mo ago
@nathaniel thans, i will try wsl runpodctl project dev succeed! [puryoj1kb7iyqb] INFO | test-3e88e65b-4240-496d-b38d-705311850389 | Started. [puryoj1kb7iyqb] DEBUG | test-3e88e65b-4240-496d-b38d-705311850389 | Handler output: Hello, sync! [puryoj1kb7iyqb] DEBUG | test-3e88e65b-4240-496d-b38d-705311850389 | run_job return: {'output': 'Hello, sync!'} ; Thanks again !
nathaniel
nathaniel9mo ago
Nice
Alok
Alok2mo ago
@nathaniel i tried the same steps, using WSL on windows11 and i still get the error: [w3zzx3s0mkedu3] Using pip 24.2 from /69fecb78/venv/lib/python3.11/site-packages/pip (python 3.11) [w3zzx3s0mkedu3] ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'builder/requirements.txt' Creating Project watcher... Starting project endpoint... [w3zzx3s0mkedu3] - Activated project environment. [w3zzx3s0mkedu3] - Changed to project directory. [w3zzx3s0mkedu3] cat: /installreport.json: No such file or directory [w3zzx3s0mkedu3] - Started API server with PID: 171 [w3zzx3s0mkedu3] [w3zzx3s0mkedu3] Connect to the API server at: [w3zzx3s0mkedu3] > https://w3zzx3s0mkedu3-7270.proxy.runpod.net [w3zzx3s0mkedu3] [w3zzx3s0mkedu3] cp: cannot stat '.runpodignore': No such file or directory [w3zzx3s0mkedu3] python: can't open file '/runpod-volume/69fecb78/dev/wslrp/src/handler.py': [Errno 2] No such file or directory [w3zzx3s0mkedu3] Synced venv to network volume wslam@DESKTOP-148V6BF:/mnt/e/RAG_Repo/RAG/runpod_gpu/wslrp$ ^C wslam@DESKTOP-148V6BF:/mnt/e/RAG_Repo/RAG/runpod_gpu/wslrp$
Want results from more Discord servers?
Add your server