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

Importing PyKinectV2 throws ImportError("Wrong version") #88

Open
vitphire opened this issue Mar 18, 2021 · 6 comments
Open

Importing PyKinectV2 throws ImportError("Wrong version") #88

vitphire opened this issue Mar 18, 2021 · 6 comments

Comments

@vitphire
Copy link

When I try to import PyKinectV2 from pykinect2, it comes back with this:

Traceback (most recent call last):
  File "[Censored bc it includes my name]\PyCharm\Projects\PyKinectTest\test.py", line 1, in <module>
    from pykinect2 import PyKinectV2
  File "[Censored bc it includes my name]\PyCharm\Projects\PyKinectTest\venv\lib\site-packages\pykinect2\PyKinectV2.py", line 2868, in <module>
    from comtypes import _check_version; _check_version('')
  File "[Censored bc it includes my name]\PyCharm\Projects\PyKinectTest\venv\lib\site-packages\comtypes\__init__.py", line 29, in _check_version
    raise ImportError("Wrong version")
ImportError: Wrong version
@KonstantinosAng
Copy link

Try this solution to see if it fixes it:

#37

@vitphire
Copy link
Author

@KonstantinosAng It does not.

@KonstantinosAng
Copy link

You can always go to venv\lib\site-packages\comtypes_init_.py in line 29 and delete the if statement to see if it works.

@SujithChristopher
Copy link

@ViTrack
I had the same issue,

it appears to be an issue with the comtypes version

try:
pip install comtypes==1.1.4

Hope it helps

@marcocrxu
Copy link

i have also met the problem. after try #37 the problem still exist. but i find that reboot solve my probelm.

@wjrzm
Copy link

wjrzm commented Apr 15, 2022

@ViTrack I had the same issue,

it appears to be an issue with the comtypes version

try: pip install comtypes==1.1.4

Hope it helps

It works!

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

5 participants