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

PermissionError: [Errno 13] Permission denied: 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\tmpde5_40b6.png' #20

Open
HibaDoi opened this issue May 31, 2024 · 0 comments

Comments

@HibaDoi
Copy link

HibaDoi commented May 31, 2024

(base) C:\Grounding-DINO-1.5-API>python gradio_app.py --token ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch().
Traceback (most recent call last):
File "C:\Users\Administrateur\anaconda3\Lib\site-packages\gradio\queueing.py", line 521, in process_events
response = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrateur\anaconda3\Lib\site-packages\gradio\route_utils.py", line 276, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrateur\anaconda3\Lib\site-packages\gradio\blocks.py", line 1945, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrateur\anaconda3\Lib\site-packages\gradio\blocks.py", line 1513, in call_function
prediction = await anyio.to_thread.run_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrateur\anaconda3\Lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrateur\anaconda3\Lib\site-packages\anyio_backends_asyncio.py", line 2134, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "C:\Users\Administrateur\anaconda3\Lib\site-packages\anyio_backends_asyncio.py", line 851, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrateur\anaconda3\Lib\site-packages\gradio\utils.py", line 831, in wrapper
response = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "C:\Grounding-DINO-1.5-API\gradio_app.py", line 46, in inference
results = gdino.inference(prompts, return_mask=return_mask)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Grounding-DINO-1.5-API\gdino\model_wrapper.py", line 48, in inference
image=self.get_image_url(prompt["image"]),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Grounding-DINO-1.5-API\gdino\model_wrapper.py", line 131, in get_image_url
url = self.client.upload_file(tmp_file_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrateur\anaconda3\Lib\site-packages\dds_cloudapi_sdk\client.py", line 76, in upload_file
with open(local_path, "rb") as fp:
^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'C:\Users\ADMINI~1\AppData\Local\Temp\tmpde5_40b6.png'

i get the permission error , again and again even after i tried to run it as administrator .

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

1 participant