Skip to content

Fixes import errors in Python 3.6 #52#53

Merged
jhavl merged 1 commit intorai-opensource:masterfrom
StephLin:fix-py3.6-import-errors
May 27, 2022
Merged

Fixes import errors in Python 3.6 #52#53
jhavl merged 1 commit intorai-opensource:masterfrom
StephLin:fix-py3.6-import-errors

Conversation

@StephLin
Copy link
Copy Markdown
Contributor

@StephLin StephLin commented May 24, 2022

Hi @petercorke,

Many thanks for developing this wonderful package!
As mentioned in https://github.com/petercorke/spatialmath-python/issues/52#issuecomment-1135414149, I found that the following import behavior does not work in Python 3.6 due to circular imports (but works in 3.7+, which is mentioned in python/cpython#74210):

https://github.com/petercorke/spatialmath-python/blob/da5aa910617869715da9e661da475ba83b28c59f/spatialmath/base/transforms3d.py#L24

Therefore, I manage to fix this issue by simply modifying the statement to let the project work fine in Python 3.6 as well.
Please let me know if you have any questions or comments for this pull request. Thank you!

Best,
Yu-Kai

@StephLin StephLin changed the title Fixes import errors in py3.6 #52 Fixes import errors in Python 3.6 #52 May 24, 2022
@petercorke petercorke requested a review from jhavl May 24, 2022 11:23
@jhavl jhavl merged commit 87cabfe into rai-opensource:master May 27, 2022
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

Successfully merging this pull request may close these issues.

2 participants