openai / openai/tiktoken

Tiktoken Permission denied error

Open
#343 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
19.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Getting the Permission denied error in FastApi application with langchain package deployed in IIS using HttpPlatformModule, can anyone let me know how to resolve this? When the app is hosted as a windows service or when debugging by just running it with uvicorn it works fine. I have looked at this issue, and it didn't resolve the issue.

Error
Permission denied: 'C:\\Windows\\TEMP\\data-gym-cache\\9b5ad71b2ce5302211f9c61530b329a4922fc6a4'

Version: 0.7.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the FastAPI application with langchain under IIS using HttpPlatformModule, comparing it with the working uvicorn and Windows service setups. Investigate access to C:\Windows\TEMP\data-gym-cache and the reported tiktoken 0.7.0 error; done means the deployed application starts without the permission error.

Written by the indexing model from the issue text.

Assessment

Tech stack
fastapi, python
Domain
backend, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.