Comments (9)
After 3+ hours of agony, the solution turned out to be quite simple.
Uninstall Kiwisolver:
pip3 uninstall kiwisolver
Then reinstalling Kiwisolver:
pip3 install kiwisolver
from kiwi.
sudo rm -r /usr/lib/python3/dist-packages/kiwisolver-1.0.1.egg-info
This command worked for me after searching everywhere basically uninstalling kiwisolve did not work for me so removed the entire kiwisolver directory
from kiwi.
Could you please post the full error message and the output of pip ? Running pip to install kiwisolver should be enough. As a side note it is usually better to avoid messing with your distro Python distribution by using virtual environment.
from kiwi.
Hi,
This is the full error:
Traceback (most recent call last):
File "legacy/train.py", line 51, in <module>
from object_detection.builders import model_builder
File "/usr/local/lib/python3.5/dist-packages/object_detection-0.1-py3.5.egg/object_detection/builders/model_builder.py", line 34, in <module>
from object_detection.meta_architectures import ssd_meta_arch
File "/usr/local/lib/python3.5/dist-packages/object_detection-0.1-py3.5.egg/object_detection/meta_architectures/ssd_meta_arch.py", line 30, in <module>
from object_detection.utils import visualization_utils
File "/usr/local/lib/python3.5/dist-packages/object_detection-0.1-py3.5.egg/object_detection/utils/visualization_utils.py", line 27, in <module>
import matplotlib.pyplot as plt # pylint: disable=g-import-not-at-top
File "/usr/local/lib/python3.5/dist-packages/matplotlib/pyplot.py", line 32, in <module>
import matplotlib.colorbar
File "/usr/local/lib/python3.5/dist-packages/matplotlib/colorbar.py", line 34, in <module>
import matplotlib.gridspec as gridspec
File "/usr/local/lib/python3.5/dist-packages/matplotlib/gridspec.py", line 25, in <module>
import matplotlib._layoutbox as layoutbox
File "/usr/local/lib/python3.5/dist-packages/matplotlib/_layoutbox.py", line 19, in <module>
import kiwisolver as kiwi
ImportError: No module named 'kiwisolver'
Output message when installing kiwisolver:
pip3 install kiwisolver
Collecting kiwisolver
Using cached https://files.pythonhosted.org/packages/ee/18/4cd2e84c6aff0c6a50479118083d20b9e676e5175a913c0ea76d700fc244/kiwisolver-1.1.0-cp35-cp35m-manylinux1_x86_64.whl
Requirement already satisfied: setuptools in /home/shankar/Downloads/envs/lib/python3.5/site-packages (from kiwisolver) (41.0.1)
Installing collected packages: kiwisolver
Successfully installed kiwisolver-1.1.0
I have tried uninstalling and installed it once again. It is also not working.
Thanks.
from kiwi.
Kiwi is implemented using C++ only (no python file) as a consequence you should only see a kiwisolver.***.so in site-packages in addition of the dist-info folder. Could you check whether or not it is present ?
The wheel are tested as part of the build process and I locally checked on MacOS that the python 3.5 wheel work. I will spin up a VM to check also on linux. In the meantime if you have a c++ compiler installed, you can try to install from source directly: pip3 install https://github.com/nucleic/kiwi/tarball/master/
from kiwi.
I just tested on a fresh Docker image of ubuntu 16 and I can install without any issue on Python 3.5. Could there be something (like a folder named kiwisolver) on your path that would shadow the installed package ?
from kiwi.
Hi @MatthieuDartiailh ,
I have installed as you have mentioned but same thing happened. But, I have noticed ont thing. Kiwisolver has been installed differently in my system. I don't know why. There are two things getting installed:
- kiwisolver-1.1.0.dist-info
- kiwisolver.cpython-35m-x86_64-linux-gnu.so (I haven't noticed this file has been installed)
I have copied this file into my Python path directory then I'm not getting the error. First time I'm seeing this file getting installed using pip command.
Thank you so much.
from kiwi.
This is the expected file (once again this is related to the fact that kiwisolver is a single module implemented in C). I am wondering why site-packages is not on the path... but I am happy things work again for you.
from kiwi.
I did have same issue ModuleNotFoundError: No module named 'kiwisolver' - what I found is that kiwisolver-1.1.0.dist-info was installed on ...AppData\Roaming\Python\Python37\site-packages. I deleted the entire folder kiwisolver-1.1.0.dist-info and reinstalled with pip3 install kiwisolver. Now it is installed on ...\appdata\local\programs\python\python37\lib\site-packages and tested the code it passed!
from kiwi.
Related Issues (20)
- pip install fails on Python 3.11b3 HOT 17
- Failed building wheel for kiwisolver :( HOT 4
- Cann't install on python 3.11b3 HOT 2
- 1.4.3 has no attribute __version__ HOT 2
- ERROR: Failed building wheel for kiwisolver: C2440: 'static_cast': cannot convert from 'expr_type' to 'type' HOT 2
- Provide cp311 releases HOT 1
- Objective cell memory leak? HOT 26
- Continuous fuzzing by way of Google's OSS-Fuzz HOT 1
- Tests fail on pypy
- #egg=kiwisolver See assertion error when installing kiwisolver HOT 4
- about duplicate constraints HOT 3
- Add Python API to get all constraints HOT 14
- Is it possible to get the absolute value of an expression? HOT 10
- Is it possible to tell the Solver to prefer smaller or larger solutions? HOT 3
- Missing type hint for `Constraint.violated()` HOT 1
- Python 3.12 manylinux wheels HOT 2
- PyInstaller executable with matplotlib cannot find _cext DLL HOT 6
- `top_level.txt` include a non existing module `src`
- DLL load failed while importing _cext HOT 2
- How do we define an "objective function" and maximize or minimize it? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kiwi.