No module named 'pyrebase' - python

I cannot seem to get pyrebase to import, despite it being installed. I have ran this:
pip3 install pyrebase4
and it successfully installed, upon doing pip freeze I can see:
Pyrebase4==4.50
However, when I try import it using
import pyrebase
it just spits out the error:
ModuleNotFoundError: No module named 'pyrebase'
I'm at a loss and have no idea what to do

Related

How to properly import the ConfigServiceV2Client attribute from google-cloud-logging_v2 package in Python?

I tried importing the ConfigServiceV2Client attribute as follows:
from google.cloud.logging_v2.services.config_service_v2 import ConfigServiceV2Client
And I got the following error:
AttributeError: module 'google.cloud.logging_v2' has no attribute 'ConfigServiceV2Client'
How should I import it?
Based on the error that you're getting it seems like you are missing some updated features, Install the google-cloud-logging package using pip as follows:
pip install --upgrade google-cloud-logging
based on the google documentation.
After installing it try importing it in to your project.
Or just uninstall the package:
pip uninstall google-cloud-logging
And then reinstall it.

ModuleNotFoundError: No module named 'pycoin'

Code:
from pycoin.ecdsa.secp256k1 import secp256k1_generator
When I run this, I get the error:
ModuleNotFoundError: No module named 'pycoin'
I've tried doing:
pip3 install pycoin
aswell as
pip install pycoin
Both of which have lead to the same error.
I've ran the code on python and python3 which also leads to the same error.
Any solutions?
Go to terminal or cmd on windows and type python3 (python2, python for older versions)
Then try to import the module there.
If the module in imported successfully then reopen your IDE. and then try.

Why do I get 'No module named 'currency-symbols' when importing xls2xlsx, even though 'pip install currency-symbols' returns requirement satisfied?

My IDE is Spyder and the distribution I am using is miniconda. I use pip install in the anaconda prompt window (as I usually do).
'pip install xls2xlsx' seems to run fine and install the package.
When I try 'from xls2xlsx import XLS2XLSX' I get the following error:
ModuleNotFoundError: No module named 'currency-symbols'
If I try 'pip install currency-symbols' , I get:
'Requirement already satisfied: currency-symbols in c:\users\user\miniconda3\lib\site-packages (2.0.2) '
I can see both directories in the site-packages directory.
So I had the same or very similar problem, my trace-back said it could not import currency_symbols. I found that the module it was trying to import was the constants from that package. So I went into the py file where xls2xlsx had the issue
"htmlxls2xlsx.py" my traceback said line 40..
currency_symbols_constants =
importlib.import_module('currency-symbols.constants')
I noticed this was part of an 'exception' so I fixed line 37 from import currency_symbols.constants as currency_symbols_constants to import currency_symbols._constants as currency_symbols_constants
Now it imports just fine.
I also had version 2.0.2 of currency-symbols installed, but my working host was using 2.0.1. I discovered that if you install 2.0.1, the issue did not occur.
pip3 install -Iv currency-symbols==2.0.1

ModuleNotFoundError: No module named 'pycryptodome'

import pycryptodome
and get this error
ModuleNotFoundError: No module named 'pycryptodome'
I've been getting this error every time I try import "pycryptodome" however it is definitely installed. I've tried uninstalling and installing again but still get the same error. Used pip to install and using python version 3.8.5.
Seen many people getting the same error however it is very specific to that module import.

ModuleNotFoundError: No module named 'feather.compat'

I installed feather using
conda install feather-format -c conda-forge
and I believe that it was successfully installed but when I try to run a program with
from feather.compat import pdapi
I get an error saying that there is no module named 'feather.compat'. How do I fix this?

Categories

Resources