R
RunPod4mo 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
10 Replies
PatrickR
PatrickR3mo 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
fanbing3mo 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
fanbing3mo ago
in local project, requirements.txt exist in builder fold.
haris
haris3mo ago
@Merrell @nathaniel would one of y'all be able to help as the blog post mentioned was authored by y'all
nathaniel
nathaniel3mo 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
nathaniel3mo ago
install guide for wsl if you gotta install that: https://canonical-ubuntu-wsl.readthedocs-hosted.com/en/latest/
justin
justin3mo ago
maybe something to add to the docs
nathaniel
nathaniel3mo ago
definitely, and the readme
fanbing
fanbing3mo 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
nathaniel3mo ago
Nice