XpressAI/xircuits

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

yuenherny opened this issue · 4 comments

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.

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. 😄

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?

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.

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.