Code Monkey home page Code Monkey logo

Comments (9)

Mohsinrazaa avatar Mohsinrazaa commented on July 20, 2024 8

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.

niyanthh87 avatar niyanthh87 commented on July 20, 2024 1

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.

MatthieuDartiailh avatar MatthieuDartiailh commented on July 20, 2024

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.

karshan77 avatar karshan77 commented on July 20, 2024

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.

MatthieuDartiailh avatar MatthieuDartiailh commented on July 20, 2024

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.

MatthieuDartiailh avatar MatthieuDartiailh commented on July 20, 2024

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.

karshan77 avatar karshan77 commented on July 20, 2024

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:

  1. kiwisolver-1.1.0.dist-info
  2. 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.

MatthieuDartiailh avatar MatthieuDartiailh commented on July 20, 2024

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.

shresthadk51 avatar shresthadk51 commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.