jahwag / ClaudeSync

ClaudeSync is a Python tool that automates the synchronization of local files with Claude.ai Projects
MIT License
176 stars 24 forks source link

Error: No active provider set. Please select a provider for this project #74

Open shaneholloman opened 1 week ago

shaneholloman commented 1 week ago

Operating System

windows 11

Python Version

3.10.14

ClaudeSync Version

0.6.1

Installation Type

New

Configuration

  claudesync 3.10.14  shane @ moa ❯ ~ ❯ claudesync config ls
{
  "claude_api_url": "https://api.claude.ai/api",
  "compression_algorithm": "none",
  "file_categories": {
    "all_files": {
      "description": "All files not ignored",
      "patterns": [
        "*"
      ]
    },
    "all_source_code": {
      "description": "All source code files",
      "patterns": [
        "*.java",
        "*.py",
        "*.js",
        "*.ts",
        "*.c",
        "*.cpp",
        "*.h",
        "*.hpp",
        "*.go",
        "*.rs"
      ]
    },
    "build_config": {
      "description": "Build configuration files",
      "patterns": [
        "**/pom.xml",
        "**/build.gradle",
        "**/package.json",
        "**/setup.py",
        "**/Cargo.toml",
        "**/go.mod",
        "**/pyproject.toml",
        "**/requirements.txt",
        "**/*.tf",
        "**/*.yaml",
        "**/*.yml",
        "**/*.properties"
      ]
    },
    "production_code": {
      "description": "Production source code",
      "patterns": [
        "**/src/**/*.java",
        "**/*.py",
        "**/*.js",
        "**/*.ts",
        "**/*.vue"
      ]
    },
    "test_code": {
      "description": "Test source code",
      "patterns": [
        "**/test/**/*.java",
        "**/tests/**/*.py",
        "**/test_*.py",
        "**/*Test.java"
      ]
    },
    "uberproject_java": {
      "description": "Uberproject Java + Javascript",
      "patterns": [
        "**/src/**/*.java",
        "**/*.py",
        "**/*.js",
        "**/*.ts",
        "**/*.vue",
        "**/pom.xml",
        "**/build.gradle",
        "**/package.json",
        "**/setup.py",
        "**/Cargo.toml",
        "**/go.mod",
        "**/pyproject.toml",
        "**/requirements.txt",
        "**/*.tf",
        "**/*.yaml",
        "**/*.yml",
        "**/*.properties"
      ]
    }
  },
  "log_level": "INFO",
  "max_file_size": 32768,
  "prune_remote_files": true,
  "submodule_detect_filenames": [
    "pom.xml",
    "build.gradle",
    "package.json",
    "setup.py",
    "Cargo.toml",
    "go.mod"
  ],
  "two_way_sync": false,
  "upload_delay": 0.5
}
  claudesync 3.10.14  shane @ moa ❯ ~ ❯

Steps to Reproduce

steps:

  claudesync 3.10.14  shane @ moa ❯ ~ ❯ claudesync auth login
Choose provider (claude.ai) [claude.ai]: claude.ai
A session key is required to call: https://api.claude.ai/api
To obtain your session key, please follow these steps:
1. Open your web browser and go to https://claude.ai
2. Log in to your Claude account if you haven't already
3. Once logged in, open your browser's developer tools:
   - Chrome/Edge: Press F12 or Ctrl+Shift+I (Cmd+Option+I on Mac)
   - Firefox: Press F12 or Ctrl+Shift+I (Cmd+Option+I on Mac)
   - Safari: Enable developer tools in Preferences > Advanced, then press Cmd+Option+I
4. In the developer tools, go to the 'Application' tab (Chrome/Edge) or 'Storage' tab (Firefox)
5. In the left sidebar, expand 'Cookies' and select 'https://claude.ai'
6. Locate the cookie named 'sessionKey' and copy its value. Ensure that the value is not URL-encoded.
Please enter your sessionKey:
Please enter the expires time for the sessionKey (optional) [Tue, 22 Oct 2024 11:19:41 UTC]:
Received a 403 Forbidden error.
Failed to retrieve organizations. Please enter a valid sessionKey.
Please enter your sessionKey:
Please enter the expires time for the sessionKey (optional) [Tue, 22 Oct 2024 11:19:55 UTC]:
Successfully authenticated with claude.ai. Session key stored globally.
  claudesync 3.10.14  shane @ moa ❯ ~ ❯ claudesync project create
Enter a title for your new project [shane]: sync-test
Enter the project description [Project created with ClaudeSync]:
Enter the absolute path to your local project directory [C:\Users\shane]: C:\Users\shane\Dropbox\shane\ai\sync
Pick the provider to use for this project (claude.ai) [claude.ai]: claude.ai
Project 'sync-test' (uuid: 6865e2e9-e3ff-46c0-9d44-02ee4c0e22b1) has been created successfully.

Project setup complete. You can now start syncing files with this project. URL: https://claude.ai/project/6865e2e9-e3ff-46c0-9d44-02ee4c0e22b1
  claudesync 3.10.14  shane @ moa ❯ ~ ❯ claudesync push
Error: No active provider set. Please select a provider for this project.

Description

 claudesync 3.10.14  shane @ moa ❯ ~ ❯ claudesync push Error: No active provider set. Please select a provider for this project.

Logs

where are logs saved to in Windows 11?
jahwag commented 4 days ago

It looks like your current working directory is set to C:\Users\shane. However, you’re trying to create the project in C:\Users\shane\Dropbox\shane\ai\sync.

To resolve the issue, you need to change your working directory to C:\Users\shane\Dropbox\shane\ai\sync before running the claudesync push command.

Since this is expected behavior based on your setup, I’ll be closing the issue as it appears to be a user-handling error.

shaneholloman commented 2 days ago
  shane @ moa ❯ sync  ❯ conda activate claudesync
  claudesync 3.10.14  shane @ moa ❯ sync ❯ claudesync push
Error: No active provider set. Please select a provider for this project.
  claudesync 3.10.14  shane @ moa ❯ sync ❯ pwd

Path
----
C:\Users\shane\Dropbox\shane\ai\sync

  claudesync 3.10.14  shane @ moa ❯ sync ❯ cd
  claudesync 3.10.14  shane @ moa ❯ ~ ❯ pwd

Path
----
C:\Users\shane

  claudesync 3.10.14  shane @ moa ❯ ~ ❯ claudesync push
Error: No active provider set. Please select a provider for this project.
  claudesync 3.10.14  shane @ moa ❯ ~ ❯
jahwag commented 1 day ago

@shaneholloman can please share the location of your project .claudesync directory.

PS. Have you tried creating a claudesync project outside of C:\Users\shane\Dropbox\?