Skip to content

Error message "ERROR: Could not install packages due to an OSError" during installation #126

Closed

Description

@yuenherny

What kind of bug is it?

  • Xircuits Core (Jupyterlab related features)
  • Xircuits Canvas (Custom RD related features)
  • Xircuits Component Library
  • Testing Automation
  • Documentation
  • Not Sure

Describe the bug
Got this error message: "ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\Users\USER\AppData\Local\Temp\pip-uninstall-xgzi6dgr\send2trash.exe'
Consider using the --user option or check the permissions." when trying to install Xircuits using "pip install xircuits[full]"

Conda version: 4.10.3
Python version: 3.9.10

To Reproduce
Steps to reproduce the behavior:

  1. Create Python environment with Conda.
  2. Run command "pip install xircuits[full]
  3. Wait for the installation to progress.
  4. See error

Expected behavior
Done installation.

Screenshots
image

Tested on?

  • Windows 10
  • Linux Ubuntu
  • Centos
  • Mac
  • Others (State here -> xxx )

Additional context
Add any other context about the problem here.

Activity

  1. MFA-X-AI commented on Mar 24, 2022

    @MFA-X-AI
    Member

    Hey, thanks for trying out Xircuits!
    Looking at the logs, it looks like the there's some permission errors. I can think of several reasons, but one of them is that we haven't actually pushed the alt install [full] version to pypi yet. We've also yet to test out installation via conda venvs.
    In the meantime, can you try installing it via venv? Using conda's python3.9, go to your work directory and try

    python -m venv venv
    venv/Scripts/activate
    pip install xircuits
    

    Edit:
    The quickest fix would be running the install as admin. 😄

  2. added
    bug
    on Mar 24, 2022
  3. yuenherny commented on Mar 26, 2022

    @yuenherny
    ContributorAuthor

    Thanks so much for the reply. @MFA-X-AI

    The following worked for me on Miniconda Prompt:

    python -m venv venv
    venv\Scripts\activate
    pip install xircuits
    

    I bumped into this error when I call jupyter lab or jupyter notebook:

    import win32api
    ImportError: DLL load failed while importing win32api: The specified procedure could not be found.
    

    Apparently pywin32=303 has this issue. I used pywin32=225 instead, as per this SO thread.

    Then only it works.
    image

    May I ask, this extension only works on Jupyter Lab and not Notebook right?

  4. MFA-X-AI commented on Mar 27, 2022

    @MFA-X-AI
    Member

    Apparently pywin32=303 has this issue. I used pywin32=225 instead, as per this SO thread.

    That's very interesting, thanks for documenting it. It may be a conda thing.

    May I ask, this extension only works on Jupyter Lab and not Notebook right?

    Yep, Xircuits is a Jupyterlab based extension, it comes along with Jupyterlab goodies. That to say, you can open and use notebooks in Jupyterlab. We also have plans to create notebook components so that you can do things in notebooks and port them into the canvas.

  5. self-assigned this
    on May 5, 2022
  6. MFA-X-AI commented on May 5, 2022

    @MFA-X-AI
    Member

    Although it should've been fixed since 1.3, I've finally gotten to test it out myself and can confirm xircuits is fully functional in an conda env now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Fields

Estimate

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions