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

Cannot install brip #1

Closed
PierreQuentel opened this issue Jul 31, 2021 · 3 comments
Closed

Cannot install brip #1

PierreQuentel opened this issue Jul 31, 2021 · 3 comments

Comments

@PierreQuentel
Copy link

Bonjour Ray !

I would love to install and test brip on my PC (Windows 10), but I am currently unable to do it, despite a few trials.

Here is what I get:

C:\Users\PC>e:\Python39\python -m venv c:\Users\PC\venv_central

C:\Users\PC>c:\Users\PC\venv_central\Scripts\activate.bat

(venv_central) C:\Users\PC>e:\Python39\Scripts\pip install brip
Collecting brip
  Using cached brip-0.2.1-py2.py3-none-any.whl (7.2 kB)
Collecting pip>=21.1
  Using cached pip-21.2.2-py3-none-any.whl (1.6 MB)
Requirement already satisfied: brython<4,>=3.7.5 in e:\python39\lib\site-packages (from brip) (3.9.1)
Installing collected packages: pip, brip
  Attempting uninstall: pip
    Found existing installation: pip 20.2.3
    Uninstalling pip-20.2.3:
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Accès refusé: 'e:\\python39\\scripts\\pip.exe'
Consider using the `--user` option or check the permissions.


(venv_central) C:\Users\PC>

It seems that brip tries to install pip, which is already installed (otherwise the command "pip install brip") could not start) and running.

Am I missing something ?

Also not that the extension ".bat" is required on Windows for activate.

@rayluo
Copy link
Owner

rayluo commented Jul 31, 2021

Merci Pierre!

Admittedly, I haven't tested the installation on Windows. I tried just now and I can reproduce the error you saw. It works fine on Linux.

A quick workaround is to do EITHER ONE of the following:

  1. Manually upgrade pip (pip install --upgrade pip) before attempting installing brip. You would still see the same error (more on this later), but the new pip would have been installed successfully. And then you can just do pip install brip without error.
  2. Simply ignore the error and rerun pip install brip a second time. Because, despite the error message from your first run, a newer pip has been successfully installed, so your second run would succeed.
  3. That error message seems to be a known issue of pip: "pip.exe install --upgrade pip" fails on Windows. Inspired by its only workaround, the proper way to install brip on Windows is to run this instead: python -m pip install brip.

I'll update the README to use solution No.3 on Windows.

By the way, brip did not really have a hard dependency on a newer pip. It is just that, with older pip, another confusing pip warning would sometimes be shown, which is harmless to brip but it might cause confusion to brip users. So I currently make brip depends on pip 21+ to avoid that warning. I'll revisit this decision, if after I updated the brip README with solution No.3 above, and people would still hit this issue due to not reading README.

Lastly, running "activate" without ".bat" seems to still invoke "activate.bat" and works fine on Windows. But, I can add the ".bat" too.

@rayluo
Copy link
Owner

rayluo commented Jul 31, 2021

UPDATE: Guess what? Rather than writing lengthy explanations in brip's README and in Easter's README, I chose to release a new brip 0.2.2 which avoids the dependency on the newer pip, so that a normal pip install brip would just work. Please try it again.

@PierreQuentel
Copy link
Author

Very nice ! I tried the latest version, installation succeeded without any problem and I could run the Easter demo.

I will play with it in the next days and report any issue / suggestion.

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

2 participants