matthew-brett / transforms3d

3 dimensional spatial transformations
http://matthew-brett.github.io/transforms3d/
Other
467 stars 83 forks source link

0.4.2 pip install is missing executable #68

Closed MarqRazz closed 4 months ago

MarqRazz commented 4 months ago

When I run pip install transforms3d it installs 0.4.2 on my Ubuntu 22.04 machine

# pip show transforms3d
Name: transforms3d
Version: 0.4.2
Summary: UNKNOWN
Home-page: UNKNOWN
Author: 
Author-email: 
License: UNKNOWN
Location: /usr/local/lib/python3.10/dist-packages
Requires: 
Required-by: 

but if I try and import the library it fails.

# python3
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import transforms3d
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'transforms3d'

Inspection of the installation you can see it is missing the transforms3d folder with the *.py executable files.

user@my_machine:/usr/local/lib/python3.10/dist-packages# ll
drwxrwxrwx 2 root root 4096 Jun 19 18:28 transforms3d-0.4.2.dist-info/

Rolling back to 0.4.1 fixes the issue

user@my_machine:/usr/local/lib/python3.10/dist-packages# ll
drwxr-xr-x 5 root root 4096 Jun 19 18:54 transforms3d/
drwxr-xr-x 2 root root 4096 Jun 19 18:54 transforms3d-0.4.1.dist-info/

and more info is filled out in the show command...

# pip show transforms3d
Name: transforms3d
Version: 0.4.1
Summary: Functions for 3D coordinate transformations
Home-page: http://github.com/matthew-brett/transforms3d
Author: Matthew Brett
Author-email: matthew.brett@gmail.com
License: BSD license
Location: /usr/local/lib/python3.10/dist-packages
Requires: 
Required-by: 
matthew-brett commented 4 months ago

Is it possible you have run into this : https://github.com/matthew-brett/transforms3d/issues/67 ? Could you try reinstalling transforms3d with pip install --no-cache --ignore-installed transforms3d and confirm that you get the new wheel?

MarqRazz commented 4 months ago

Yes this is the same as 67, I'm also based on ros:humble-ros-core so

# pip --version 
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)

This fixes it but upgrading pip first does too. pip install --no-cache --ignore-installed transforms3d

Thanks for the help!