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

Error when tried to import generate_forecasting_h5 #239

Closed
zyandtom opened this issue Jun 22, 2021 · 2 comments
Closed

Error when tried to import generate_forecasting_h5 #239

zyandtom opened this issue Jun 22, 2021 · 2 comments

Comments

@zyandtom
Copy link

zyandtom commented Jun 22, 2021

from argoverse.evaluation.competition_util import generate_forecasting_h5
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/yang.zeng/argoverse-api/argoverse/evaluation/competition_util.py", line 13, in <module>
    import quaternion
ModuleNotFoundError: No module named 'quaternion'

when I have installed quaternion, another error emerged, about numpy crash:

from argoverse.evaluation.competition_util import generate_forecasting_h5
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/yang.zeng/argoverse-api/argoverse/evaluation/competition_util.py", line 13, in <module>
    import quaternion
  File "/home/yang.zeng/.conda/envs/torch/lib/python3.7/site-packages/quaternion/__init__.py", line 25, in <module>
    from .numpy_quaternion import (
ImportError: numpy.core.multiarray failed to import

I know it is not compatible for numpy, so I installed numpy=1.19, but still the same error, why?

@johnwlambert
Copy link
Contributor

Hi @zyandtom, thanks for the heads up.

Looks like we forget to remove quaternion from this file. You won't need it for the forecasting file generation, so please comment out the import quaternion for now and pip uninstall quaternion, and I'll put up a PR ASAP to refactor this file and remove that dependency.

Thanks.

@johnwlambert
Copy link
Contributor

This issue should be resolved by #249

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

3 participants