Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing requirement: packaging #10

Closed
jorolf opened this issue Mar 13, 2023 · 1 comment
Closed

Missing requirement: packaging #10

jorolf opened this issue Mar 13, 2023 · 1 comment

Comments

@jorolf
Copy link

jorolf commented Mar 13, 2023

After using pip to install this package on Ubuntu 20.04:

$ pip3 install PyLMI-SDP
Collecting PyLMI-SDP
  Using cached PyLMI_SDP-1.1-py3-none-any.whl (10 kB)
Requirement already satisfied: sympy in /home/jorolf/.local/lib/python3.8/site-packages (from PyLMI-SDP) (1.11.1)
Requirement already satisfied: mpmath>=0.19 in /home/jorolf/.local/lib/python3.8/site-packages (from sympy->PyLMI-SDP) (1.3.0)
Installing collected packages: PyLMI-SDP
Successfully installed PyLMI-SDP-1.1

I get the following error message after importing the module:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
 in 
      6 import cvxopt
      7 # https://pypi.org/project/PyLMI-SDP is used to formulate LMIs
----> 8 from lmi_sdp import LMI_PD as LMI, lmi_to_coeffs, to_cvxopt
      9 from tf import transformations as tf
     10 from robot_model import adjoint

~/.local/lib/python3.8/site-packages/lmi_sdp/__init__.py in 
      4 
      5 from .lm import *
----> 6 from .lmi import *
      7 from .sdp import *

~/.local/lib/python3.8/site-packages/lmi_sdp/lmi.py in 
      9 from .lm import lm_sym_expanded
     10 
---> 11 from packaging import version
     12 
     13 

ModuleNotFoundError: No module named 'packaging'

Which can be fixed by also installing the packaging package, although the "correct" solution would probably be to add it as a dependency for this package...

@rhaschke
Copy link
Collaborator

Thanks for reporting. packaging is now added to the dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants