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

WSL Could not load library libcudnn_cnn_infer.so.8. #10

Open
GumGum10 opened this issue Jan 10, 2024 · 0 comments
Open

WSL Could not load library libcudnn_cnn_infer.so.8. #10

GumGum10 opened this issue Jan 10, 2024 · 0 comments

Comments

@GumGum10
Copy link

GumGum10 commented Jan 10, 2024

Hi,

Thank you so much for your work on this, really appreciated!
I was, as expected, unable to run this on Windows so after being kindly advised to do so, I've set up a WSL environment using Ubuntu and worked through the depencenies however I have got stuck on the following error:

Traceback (most recent call last):
  File "/home/lylo/miniconda3/envs/DragNUWA/lib/python3.8/site-packages/gradio/routes.py", line 534, in predict
    output = await route_utils.call_process_api(
  File "/home/lylo/miniconda3/envs/DragNUWA/lib/python3.8/site-packages/gradio/route_utils.py", line 226, in call_process_api
    output = await app.get_blocks().process_api(
  File "/home/lylo/miniconda3/envs/DragNUWA/lib/python3.8/site-packages/gradio/blocks.py", line 1550, in process_api
    result = await self.call_function(
  File "/home/lylo/miniconda3/envs/DragNUWA/lib/python3.8/site-packages/gradio/blocks.py", line 1185, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "/home/lylo/miniconda3/envs/DragNUWA/lib/python3.8/site-packages/anyio/to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
  File "/home/lylo/miniconda3/envs/DragNUWA/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread
    return await future
  File "/home/lylo/miniconda3/envs/DragNUWA/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 851, in run
    result = context.run(func, *args)
  File "/home/lylo/miniconda3/envs/DragNUWA/lib/python3.8/site-packages/gradio/utils.py", line 661, in wrapper
    response = f(*args, **kwargs)
  File "DragNUWA_demo.py", line 296, in add_tracking_points
    tracking_points.constructor_args['value'][-1].append(evt.index)
IndexError: list index out of range
You selected None at [110, 84] from image
Traceback (most recent call last):
  File "/home/lylo/miniconda3/envs/DragNUWA/lib/python3.8/site-packages/gradio/routes.py", line 534, in predict
    output = await route_utils.call_process_api(
  File "/home/lylo/miniconda3/envs/DragNUWA/lib/python3.8/site-packages/gradio/route_utils.py", line 226, in call_process_api
    output = await app.get_blocks().process_api(
  File "/home/lylo/miniconda3/envs/DragNUWA/lib/python3.8/site-packages/gradio/blocks.py", line 1550, in process_api
    result = await self.call_function(
  File "/home/lylo/miniconda3/envs/DragNUWA/lib/python3.8/site-packages/gradio/blocks.py", line 1185, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "/home/lylo/miniconda3/envs/DragNUWA/lib/python3.8/site-packages/anyio/to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
  File "/home/lylo/miniconda3/envs/DragNUWA/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread
    return await future
  File "/home/lylo/miniconda3/envs/DragNUWA/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 851, in run
    result = context.run(func, *args)
  File "/home/lylo/miniconda3/envs/DragNUWA/lib/python3.8/site-packages/gradio/utils.py", line 661, in wrapper
    response = f(*args, **kwargs)
  File "DragNUWA_demo.py", line 296, in add_tracking_points
    tracking_points.constructor_args['value'][-1].append(evt.index)
IndexError: list index out of range
You selected None at [58, 208] from image
You selected None at [71, 59] from image
You selected None at [524, 184] from image
You selected None at [528, 64] from image
  0%|                                                                                             | 0/1 [00:00<?, ?it/s]Could not load library libcudnn_cnn_infer.so.8. Error: libcuda.so: cannot open shared object file: No such file or directory
Aborted

I can confirm that the demo project is being run and that I can connect to it from Windows via a browser but this error message is triggered whenever I try to add the motion arrows and run.
I have tried manually installing cuddn, upgrading gradio, Stack Overflow also did not help, any insight into this would be greatly appreiacted.
Thank you!

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