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

"No editor found" Error when trying pull HF images using kit import #715

Open
arnab2001 opened this issue Jan 22, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@arnab2001
Copy link

Describe the bug
The error "No editor found" occurs specifically when selecting y in response to the prompt:
Would you like to edit Kitfile before packing? (y/N): y

To Reproduce
Run the command:

kit import distilbert/distilbert-base-uncased-finetuned-sst-2-english  

When prompted with:

Would you like to edit Kitfile before packing? (y/N)

Type y and press Enter.

The error "No editor found" will be displayed, and the process should halt.

Version
V 1.0.0

Additional context
Terminal: zsh
System: Apple silicon MAC
Heres the Error log

(kitops-env) (base) arnabchatterjee@Arnabs-MacBook-Air test % kit import distilbert/distilbert-base-uncased-finetuned-sst-2-english
Using tag distilbert/distilbert-base-uncased-finetuned-sst-2-english:latest. Use flag --tag to override
Cloning repository https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english
Cloning into '/var/folders/v9/ty0zxhl110vbm5qvf_4f_zfh0000gn/T/kitops_import_tmp138325845'...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 19 (delta 2), reused 15 (delta 1), pack-reused 0 (from 0)
Unpacking objects: 100% (19/19), 394.43 KiB | 1.74 MiB/s, done.
Pulling large files
Downloading LFS objects: 100% (5/5), 1.3 GB | 13 MB/s                                                                                                                                 
Generated Kitfile:

manifestVersion: 1.0.0
model:
  name: onnx/model
  path: onnx/model.onnx
  parts:
    - path: model.safetensors
    - path: onnx/added_tokens.json
    - path: onnx/config.json
    - path: onnx/special_tokens_map.json
    - path: onnx/tokenizer.json
    - path: onnx/tokenizer_config.json
    - path: onnx/vocab.txt
    - path: pytorch_model.bin
    - path: tf_model.h5
    - path: config.json
    - path: tokenizer_config.json
    - path: vocab.txt
code:
  - path: .
docs:
  - path: README.md
    description: Readme file

Would you like to edit Kitfile before packing? (y/N): y
[WARN ] Could not determine default editor from $EDITOR environment variable
[WARN ] Please manually edit Kitfile at path
[WARN ]     /var/folders/v9/ty0zxhl110vbm5qvf_4f_zfh0000gn/T/kitops_import_tmp138325845/Kitfile
[WARN ] And run command
[WARN ]     kit pack -t distilbert/distilbert-base-uncased-finetuned-sst-2-english:latest /var/folders/v9/ty0zxhl110vbm5qvf_4f_zfh0000gn/T/kitops_import_tmp138325845
[WARN ] To complete process
[ERROR] No editor found
@arnab2001 arnab2001 added the bug Something isn't working label Jan 22, 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
Projects
None yet
Development

No branches or pull requests

1 participant