Closed ghost closed 9 years ago
Ya, I've messed up the install somehow. Until I can get to this there are two fixes (I'm on a work computer and network, and don't want to touch my open source stuff from there), depending if you are installing with pip or from a git clone.
git clone: git reset --hard 0.0.22
pip uninstall filterpy pip install filterpy
I've deleted versions 23 and 24 from Pypi, so an install should work. if not,
pip install filterpy==0.0.22
should do it. Please let me know ASAP if it is failing for you.
reason for bug (besides my lack of intelligence and testing)
I tried to change the directory structure of filterpy so the source isn't nested under filterpy/filterpy. I haven't been able to get setuptools to work this way. I want that structure because it makes deploying my Kalman filtering book on cloud.sagemath.com easier. But I jumped the gun here, putting priority of my personal needs over everyone else. My dev machine has all the files needed, and the test installs were working fine, but fail for others.
You lose 2 changes by resetting to 0.0.22.
commit 56572cbd, which allows KalmanFilter.B to be a scalar (makes KalmanFilter.B =0 legal)
commit 442727a93b90, which created short names fc for facecolor, and ec for edgecolor, in function stats.plot_covariance_ellipse
I think everything is fixed. I tried both the pip and clone/install methods on a fresh ubuntu install, and it worked. Should install version. 0.0.25.
I'll close. Please reopen if you are still having problems.
I'm not seeing this message show up in github, not sure why.
I don't know how to debug this. Usually when these errors occur whatever way the person installed the package (such as pip) installs to a different Python distribution than whichever one they are currently running. I don't have a Mac, but if I recall correctly it comes with a default installation. People then install anaconda or something, and then the environments can be messed up. So, see where pip (or whatever you used) installed filterpy, and then look at your pythonpath for the environment you are currently running in, and see if you are correctly pointing to the path for filterpy. For example, I've gotten reports several times where somebody did an install, it went to their Python 2 installation, then they ran Python 3 and filterpy was not to be found. Running pip associated with their Python 3.x install fixed the problem.
On Mon, Jan 1, 2018 at 6:27 AM, andyfroncioni notifications@github.com wrote:
I'm still getting these run errors from filterpy-1.1.0 with a Mac install:
from filterpy.kalman import ExtendedKalmanFilter as EKF ModuleNotFoundError: No module named 'filterpy.kalman'
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/rlabbe/filterpy/issues/18#issuecomment-354656016, or mute the thread https://github.com/notifications/unsubscribe-auth/AFD-7yZbihsafenyiYUfmWrExDubs6YAks5tGOtsgaJpZM4FZG_e .
I'm sorry, Roger. I chickened out and went and deleted my comment. I'm not feeling very smart right now that I can't install something that everyone else seems to do so easily.
When I used "python3 -mpip filterpy.py" in the filterpy 1.1.0 folder, it said that version 1.1.0 installed ok. But then it can't seem to find filterpy.kalman at runtime.
I will backtrack and make sure I know which version of python is being run at each step. Thank you.
On Mon, Jan 1, 2018 at 3:02 PM, Roger Labbe notifications@github.com wrote:
I'm not seeing this message show up in github, not sure why.
I don't know how to debug this. Usually when these errors occur whatever way the person installed the package (such as pip) installs to a different Python distribution than whichever one they are currently running. I don't have a Mac, but if I recall correctly it comes with a default installation. People then install anaconda or something, and then the environments can be messed up. So, see where pip (or whatever you used) installed filterpy, and then look at your pythonpath for the environment you are currently running in, and see if you are correctly pointing to the path for filterpy. For example, I've gotten reports several times where somebody did an install, it went to their Python 2 installation, then they ran Python 3 and filterpy was not to be found. Running pip associated with their Python 3.x install fixed the problem.
On Mon, Jan 1, 2018 at 6:27 AM, andyfroncioni notifications@github.com wrote:
I'm still getting these run errors from filterpy-1.1.0 with a Mac install:
from filterpy.kalman import ExtendedKalmanFilter as EKF ModuleNotFoundError: No module named 'filterpy.kalman'
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/rlabbe/filterpy/issues/18#issuecomment-354656016, or mute the thread https://github.com/notifications/unsubscribe-auth/AFD- 7yZbihsafenyiYUfmWrExDubs6YAks5tGOtsgaJpZM4FZG_e .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rlabbe/filterpy/issues/18#issuecomment-354673135, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJUKahuy9d7qD8W_9J1yyuKhshD4nf7ks5tGTnLgaJpZM4FZG_e .
--
Andy Froncioni, Ph.D. Aerodynamicist, Alphamantis Technologies Inc 514.829.0255
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This message contains confidential information and is intended only for the individual named.
Mac python3.8.5 env: Anconda3 use jupyter notebook error: ImportError: No module named filterpy
solution: pip install filterpy or conda config --add channels conda-forge and conda install filterpy
copy xxx/lib/python3.8/site-packages/filterpy in "Kalman-and-Bayesian-Filters-in-Python" file jupyter notebook can work.
pip3 install filterpy
git clone https://github.com/rlabbe/filterpy.git cd filterpy sudo python setup.py install (same with python3)
Traceback (most recent call last): File "setup.py", line 4, in
import filterpy
ImportError: No module named filterpy