pyrebase install on windows Python 3.7 fails
Asked Answered
S

12

12

I just installed python 3.7 64 bits on windows 10 for all u sers and modified the PATH I updated the pip to 18.1 I installed pygame, with

py -3 -m pip install pygame

it works fine

I wanted to install pyrebase with

py -3 -m pip install pyrebase

Download fine then I have this msg and the pip log dir is erased, so I can't figure out what is hapenning

Command ""C:\Program Files\Python37\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\mine\AppData\Local\Temp\pip-install-2rr8v7jh\pycryptodome\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\mine\AppData\Local\Temp\pip-record-om6lqxmm\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\mine\AppData\Local\Temp\pip-install-2rr8v7jh\pycryptodome\

but before it gives this error

Installing collected packages: pycryptodome, pyrebase

Found existing installation: pycryptodome 3.7.0

Uninstalling pycryptodome-3.7.0:

Successfully uninstalled pycryptodome-3.7.0

Running setup.py install for pycryptodome ... error

this is when I tried to install pycryptodome, which installed well alone, but when trying to install pyrebase it uninstall the previous pycryptodome and try it own but fails.

Any advice? thanks

Edit: I tried

pip install --upgrade setuptools

as suggested in https://github.com/thisbejim/Pyrebase/issues/179

but it didn't solve my issue

I am still having an error, on Windows10, python 3.7:

Installing collected packages: pycryptodome, pyrebase Running setup.py install for pycryptodome ... error Complete output from command "C:\Program Files\Python37\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\...\AppData\Local\Temp\pip-install-a9kop2nb\pycryptodome\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users...\AppData\Local\Temp\pip-record-dm88ctzw\install-record.txt --single-version-externally-managed --compile:

Soph answered 24/11, 2018 at 18:46 Comment(0)
S
20

To install https://github.com/thisbejim/Pyrebase

I needed to download the .zip file (or Git) than manually install it after modifying the setup.py by specifying the latest 'pycryptodome==3.7.3' then copy the pyrebase\ directory to my python install

c:\WPy-3710\python-3.7.1.amd64\Lib\site-packages\

but the previous comment of @silkindustry showed me a new lib/Wrapper: Pyrebase4 https://github.com/nhorvath/Pyrebase4

that install easily with

pip3 install pyrebase4
Soph answered 1/2, 2019 at 13:56 Comment(3)
Hi sir, I am having this exact same problem in my other computer, I could not install pyrebase but I was able to install it with pyrebase4 but it still says 'unable to import pyrebase' any idea of what might be going on? @SophPronominal
I noticed I had to use from pyrebase import pyrebase but now I am getting error on storage: No value for argument 'filename' in method call. weird it worked on my main PC with pyrebase instead of pyrebase4Pronominal
After his zip download and put, the 'genius' forgot to add that you have to install through manually by navigating to the new module directory and from there doing python setup.py install and then you finally check if the module was installed by python -c "import pyrebase"Alterative
A
5

Just upgrade setuptools (Successfully installed setuptools-40.6.3) with your suggested command and install newer version of Pyrebase. (Pyrebase4).

Astray answered 6/1, 2019 at 14:25 Comment(0)
K
2

first install pycryptodome version 3.10.1

pip install pycryptodome==3.10.1

then install pyrebase4

pip install pyrebase4

It work for me

Kaela answered 16/2, 2022 at 8:26 Comment(0)
B
1

I had the same issue. I solved it using the following steps.

pip install pycryptodome

and then I ran

pip install pyrebase
Bakke answered 11/5, 2019 at 16:58 Comment(2)
It doesn't work, because pip install pyrebase just uninstalls pycryptodome and tries to install it again itself.Stotts
A new lib/Wrapper: Pyrebase4 github.com/nhorvath/Pyrebase4 that install easily with pip3 install pyrebase4Soph
L
1

I faced the same issue when I was working with Anaconda which runs python 3.7 as its default python interpreter. So I created a virtual environment with Python 3.6 with conda create --name env_name python=3.6 Then with conda activate env_name activate the environment and run pip install pyrebase and it should be installed.

Listing answered 16/7, 2020 at 14:40 Comment(0)
P
1

As Lotfi said, go to the pyrebase repository, https://github.com/thisbejim/Pyrebase and download the .zip file of git repository and then edit as he said,then save the /pyrebase folder to site packeges folder, if you still found no module error(Crypto) then visit this link, ImportError: No module named Crypto.Cipher

Province answered 1/12, 2020 at 7:31 Comment(0)
K
1

This worked for me.

Step 1: Follow the answer given by Nayan and answer by Lotfi. But use 'pycryptodome==VERSION_OF_PYCRYPTODOME_YOU_HAVE_ALREADY_INSTALLED'.
Ex. 'pycryptodome==3.10.1'
Step 2: After that Go to the site-packages/Pyrebase folder with updated setup.py file.
Step 3: Install the Pyrebase library from that folder. For that use command
python setup.py install

That's it!

Khaki answered 25/4, 2021 at 5:32 Comment(0)
A
0

I couldn't solve the issue although I tried the above solutions.

Finally I can install pyrebase like following.

  1. Re-install Python at C:\Pyton. : To avoid searching error of C:\Users...

  2. Install JWS manually. Specify file format by UTF8 at setup.py file.

  3. Install pycryptodomex not pycryptodome.

  4. When make Project check following "inherit global site-packages"

Acreinch answered 26/10, 2019 at 10:15 Comment(1)
new lib/Wrapper: Pyrebase4 github.com/nhorvath/Pyrebase4 that install easily with pip3 install pyrebase4Soph
L
0

i also faced the same issue with Anaconda, then i solved it by opening the command prompt of Anaconda and type the following,

  1. pip install pycryptodome and then i ran
  2. pip install pyrebase4, these two commands help to clear the issue
Lemoine answered 20/1, 2020 at 16:46 Comment(0)
H
0

If your are using Pycharm you can install the pyrebase5 or any other modules directly from it without getting any error.

  1. Go to Files
  2. Open the settings(Ctrl+Alt+s if you're using Win10)
  3. Go to the Project >> project interpreter

Now you can see all the packages installed in the root folder of python. (Make sure your your project interpreter is selected to the python root folder : C:\Users\ (Username)\AppData\Local\Programs\Python\Python38-32

  1. In project interpreter you can see the +(Install) sign in the right. Click on it
  2. the available packages window id open
  3. Now you can search any packages you want to install like pyrebase: you can see all the versions of the pyrebase.
  4. select the package and install package.
Halfslip answered 14/10, 2020 at 8:34 Comment(1)
Welcome to Stack Overflow! When answering to an old question that already has an accepted answer ensure your answer adds something substantial new. Don't answer if not. (The question wasn't related to PyCharm).Obstructionist
A
0

I solved my problem with the 2 steps below. I hope this is going to solve yours as well.

  1. uninstall pyrebase:

    pip uninstall pyrebase
    
  2. Install Pyrebase-t:

    pip install Pyrebase-t
    
Athapaskan answered 17/5, 2021 at 13:51 Comment(0)
A
0

The only thing that worked for me was deactivating the virtual environment and reactivating it before trying

pip install pyrebase
Addendum answered 12/6, 2021 at 8:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.