Skip to content

Installation Troubleshooting

Chenchao Shou edited this page Mar 4, 2019 · 1 revision

On this Wiki page we will discuss possible installation problems and their solutions.

Problem: I received a warning message: UserWarning: Unable to import modules from matplotlib ... upon running import prosrs.

  • Explanation: This is an indication that matplotlib package is not installed properly on your system. Without the matplotlib package properly installed, users will not be able to take advantage of visualization capabilities offered in the prosrs package. However, it is worth noting that the visualization components are not essential to the package as they do not affect optimization results in any way. Even without matplotlib, users can still use the prosrs package to solve optimization problems. Consequently, this error merely triggers a warning rather than a fatal error.

  • Solution: The solution consists of 3 steps:

    1. Uninstall prosrs package: pip uninstall prosrs.
    2. Reinstall matplotlib package by following the official installation guide. You may also find this blog post useful when dealing with some of the installation issues. To check whether matplotlib has been successfully installed (or at least good enough for running prosrs), please make sure that you can run the following error-free:
    import matplotlib.pyplot as plt
    from matplotlib.ticker import MaxNLocator
    from matplotlib import cm
    from mpl_toolkits.mplot3d import Axes3D
    
    1. Install prosrs package: pip install prosrs. Once the installation is completed, run import prosrs again and you should see no warning message this time.
Clone this wiki locally