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

Persistent error message "Bad request: Your free plan does not support indexes in the us-west-2 region of aws" while trying to use "canopy new" #340

Open
wasemag opened this issue Jun 5, 2024 · 1 comment

Comments

@wasemag
Copy link

wasemag commented Jun 5, 2024

Hello! I am creating some RAG apps and I'm looking for a framework. I like Pinecone and was happy to find Canopy.

However, all my tries to run “canopy new” result in the same error. I checked with Community Support in Pinecone and was redirected to ask here. Details about machine and environment follow at the bottom of the msg.

Whenever I tried installing Canopy by running "canopy new" under Win11 CMD I get one of two errors:


ERROR TYPE 1 --- by NOT specifying an index name

(canopy-env) C:\Users\charl\PycharmProjects\CanopyTest>canopy new
Canopy is going to create a new index named canopy--/ with the following initialization parameters:
{}

Do you want to continue? [y/N]: y
Error: Failed to create a new index. Reason:
Failed to create index canopy--/ due to error: {"error":{"code":"INVALID_ARGUMENT","message":"Name must consist of lower case alphanumeric characters or '-'"},"status":400}


ERROR TYPE 2 - by SPECIFYING an index name

(canopy-env) C:\Users\charl\PycharmProjects\CanopyTest>canopy new test
Canopy is going to create a new index named canopy–test with the following initialization parameters:
{}

Do you want to continue? [y/N]: y
Error: Failed to create a new index. Reason:
Failed to create index canopy–test due to error: {“error”:{“code”:“INVALID_ARGUMENT”,“message”:“Bad request: Your free plan does not support indexes in the us-west-2 region of aws. To create indexes in this region, upgrade your plan.”},“status”:400}

======================================

I've searched the web with Perplexity for this error, then with Google, but found only a skeleton specification for .canopy\config.yaml ------ I didn't manage to change anything on that and there doesn't seem to be any documentation for it.

Final notes:
I’ve carefully read the return from CMD “SET”.
PINECONE_API_KEY is set
OPENAI_API_KEY is set
Conda variables all point to the right env
I live in Brazil, IP block 177.x.x.x , in case that's an issue for connecting to the AWS server
I do have an AWS account in US_East_1, but it wasn't active at the time and still wouldn't explain that change.


CONFIG INFO

OS: Windows 11 Pro 10.0.22631 build 22631
PC: Intel i5/9600KF, 48Gb RAM, loads of HD space, nVidia 3080TI
Language: Python 3.11.9, Conda installed, no admin folder permissions issues but I can check again if needed
Canopy downloaded from GitHub repo on the 1st June (latest 0.9.0).
All packages installed and confirmed by PIP;
.env variables set and checked using both PyCharm and CMD directly
Basic / free plan on Pinecone so far


I hope you can explain what's going on. It seems like a great system but even inside the Python code there's little information to understand how "canopy new" works.

Many thanks!

@beskrovnykh
Copy link

beskrovnykh commented Jun 17, 2024

  1. Create config
    canopy create-config
  2. Edit Config File (default.yaml):
metric: cosine
spec:
  serverless:
    cloud: aws
    region: us-east-1
  1. Set env variables:
    export INDEX_NAME="test"
    export PINECONE_API_KEY="..."
  1. canopy new --config default.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants