Git Product home page Git Product logo

Comments (7)

finmuax avatar finmuax commented on June 15, 2024

I have tested on two computer with python=3.10.8. Both of them have this issue。 The specific manifestation is: everything works normally the first time it is run, but after closing and running it a second time, the aforementioned "ImportError: DLL load failed while importing rpds" error appears.

I later tried different Python versions on the same computer with python=3.11.7 there is no problem, but with python=3.10.8 the error always occurs.

However, for some reason, I wish for it to run normally under Python 3.10.8. Is there a way to resolve this issue?

For reproduction,just appear when you run "import gradio as gr" , the issue will appear at"from .rpds import *“

from rpds.

Julian avatar Julian commented on June 15, 2024

Are you sure you have the right repository?

I have no idea what gradio is.

If you do have the right repo, please provide a way to reproduce whatever behavior you're reporting without any dependencies.

from rpds.

finmuax avatar finmuax commented on June 15, 2024

What Gradio is doesn't matter; it's just that when I was using it, it utilized rpds, and there was an error with rpds. The line of code that needs attention is: 'from .rpds import *'. In a Python 3.10.8 environment, I encountered the error 'ImportError: DLL load failed while importing rpds: Access is denied'. But id didn't occur in python=3.11.7

from rpds.

Julian avatar Julian commented on June 15, 2024

Well, again then, provide a minimal example with no dependencies that produces the behavior you're reporting.

from rpds.

finmuax avatar finmuax commented on June 15, 2024

just run import rpds on python=3.10.8
image

from rpds.

Julian avatar Julian commented on June 15, 2024

CI, which obviously runs that line, passes fine, so you'll have to be more specific.

Your screenshot also shows a traceback with lines that do not exist in this package.

Closing, please provide an actual reproducer and then I'm happy to look.

from rpds.

finmuax avatar finmuax commented on June 15, 2024

Thanks a lot! Here is the step:

  1. I use Anaconda to create a new env, with python=3.10.8
    image
  2. runnning pip install rpds-py
    image
  3. open vscode, run import rpds, the fist time I run this code it will be fine
  4. close vscode, open vscode and run import rpds again, the error occur
    image

from rpds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.