ModuleNotFoundError: No module named 'tide' - python

I'm calling tide in the pytides module with Python3.7, which is installed using the pip method.Here is my python code:
from pytides.tide import Tide
I ran into the following problems:
ModuleNotFoundError: No module named 'tide'
What should I do to solve this problem?
This is my link to the petides installation package, and you can see the full code here
enter link description here

I think you should you
from pytides import Tide
It will work, correct me if it doesn't
Edit 1:
sudo apt-get install liblapack-dev libatlas-base-dev gfortran
export LAPACK=/usr/lib/liblapack.so
export ATLAS=/usr/lib/libatlas.so
export BLAS=/usr/lib/libblas.so
pip install numpy
pip install scipy
pip install pytides

It is a problem in \site-packages\pytides\__init__.py
You need to rewrite:
from . import tide
from . import astro
from . import constituent
from . import nodal_corrections
Same problem in \site-packages\pytides\constituent.py
You need to change
from . import nodal_corrections as nc
and you need to add:
from functools import reduce
And again in \site-packages\pytides\tide.py
You need to change:
from .astro import astro
from . import constituent

The pytides is outdated. Use pytides2, the newer version. Other thing to keep in mind is,if your interpreter is miniconda/anaconda, then you can't obtain it from their repository. You must create a 3.7 (and no later version) interpreter in pycharm using python3 (real or virtual environment, either is fine).

Related

ModuleNotFoundError: No module named 'fiftyone.zoo';

'import fiftyone'
import fiftyone as fo
import fiftyone.zoo as foz
dataset = foz.load_zoo_dataset("quickstart")
session = fo.launch_app(dataset)
i tried to install zoo and fiftyone.zoo and install just fiftyone and i upgrade pip and i install it from pycharm interpreter but it gave me the same error massage
Just to clarify, you can install FiftyOne and all subpackages like so:
pip install fiftyone
The install docs have some troubleshooting tips if there is actually an install issue.
However, I suspect you have a folder named fiftyone/ or script named fiftyone.py in your current working directory. This would confuse Python and cause the wrong thing to be imported when you import fiftyone.
Try deleting those or moving to a different directory. Then import fiftyone.zoo should work.

How to install the binarySearch module?

I need a module, do you know how I can get it?
Currently getting this error code:
File "C:\Users\b\OneDrive\Desktop\Analyse\test_binarySearch.py", line 10, in <module>
import binarySearch as BS
ModuleNotFoundError: No module named 'binarySearch'
If you have pip installed, you can install binary-search by running the following command:
pip install binary-search
(If you do not have pip installed, refer to the documentation for installation instructions.)
Then you can import the library in your code like this:
import binary_search
Open up cmd and type :
pip install binary-search

can not import pascalize, depascalize from humps package python

Hello my friends plz help me with this strange problem
1-In my terminal of linux mint I can easily install package humps and then use from humps import pascalize, depascalize with no problem
2-But when I create a virtualenv of pythonand I can install package humps and I can use import humps but I can't use from humps import pascalize, depascalize or humps.pascalize("some_string")
it will cause an ImportError: cannot import name 'pascalize' and AttributeError: module 'humps' has no attribute 'pascalize'
It's likely that you typed pip install humps instead of pip install pyhumps.
Or add in your requirements file:
pyhumps==3.7.1
Pypi - pyhumps
Documentation - humps

ModuleNotFoundError: No module named 'mpl_finance'

Hi I am following a tutorial that was using matplotlib.finance to use candlestick.ohlc. When researching I found out that that lib was deprecated and to use mlp_finance. I believe I have installed it by running the command prompt and entering the line pip install mpl_finance. The result that I get this
I tried re running the script but I still get the error:
from mpl_finance import candlestick_ohlc
ModuleNotFoundError: No module named 'mpl_finance'
I checked the python library path and I don't see a folder labeled mlp_finance(Im not sure if Im suppose to). But I do see a file labeled mpl_finance-0.10.0-py3.7.egg
Any help on resolving this issue? Downloaded the git package and ran the command prompt install
ran the command line pip install git clone https://github.com/matplotlib/mpl_finance.git mpl_finance.git
I've got the same error you told, but I resolved it as below.
First, install mpl_finance
pip install https://github.com/matplotlib/mpl_finance/archive/master.zip
Second, upgrade mpl_finance
pip install --upgrade mplfinance
Hope that this will work.
If you want to follow that tutorial on mpl_finance, you can do so by installing the new mplfinance:
pip install --upgrade mplfinance
Then every place the tutorial tells you to import from mpl_finance change the import to from mplfinance.original_flavor, for example:
change:
from mpl_finance import candlestick_ohlc
to
from mplfinance.original_flavor import candlestick_ohlc
if you using Anaconda - To install this package with conda run:
conda install -c conda-forge mplfinance
You need to install matplotlib/mpl_finance at https://github.com/matplotlib/mpl_finance
git clone https://github.com/matplotlib/mpl_finance.git mpl_finance.git
cd mpl_finance.git
python setup.py install
mpl_finance has been deprecated, just install the module as mplfinance.
pip install mlp_finance will solve the issue

Prosodylab Aligner

Can someone that uses this tool give me a step by step manual. while I follow the available youtube manual and others on the Github I have still problems. when I want to run aligner.py I have the error
from utilities import opts2cfg, mkdir_p, \
File "/home/mary/Desktop/htk/Prosodylab-Aligner/aligner/utilities.py", line 8, in <module>
import yaml
ImportError: No module named 'yaml'
Is there any way to fix it? I try to install yaml but it seems impossible
The module should be install as pyaml. You can use pip to install Python packages. In your case this will be your installation command.
pip install pyaml

Categories

Resources