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

ImportError: cannot import name 'Type' on dev branch 0.4.0 #5

Closed
CozmoCyke opened this issue Sep 6, 2019 · 2 comments
Closed

ImportError: cannot import name 'Type' on dev branch 0.4.0 #5

CozmoCyke opened this issue Sep 6, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@CozmoCyke
Copy link

Configuration :
Python 3.5.1
pycozmo 0.4.0 dev
Windows 7
Cozmo Classic with backpack Button

D:\dev\Cozmo\pycozmo\examples>python backpack_lights.py
Traceback (most recent call last):
File "backpack_lights.py", line 5, in
import pycozmo
File "C:\Python35\lib\site-packages\pycozmo-0.4.0-py3.5.egg\pycozmo_init_.p
y", line 5, in
from .run import *
File "C:\Python35\lib\site-packages\pycozmo-0.4.0-py3.5.egg\pycozmo\run.py", l
ine 8, in
from . import client
File "C:\Python35\lib\site-packages\pycozmo-0.4.0-py3.5.egg\pycozmo\client.py"
, line 16, in
from .frame import Frame
File "C:\Python35\lib\site-packages\pycozmo-0.4.0-py3.5.egg\pycozmo\frame.py",
line 4, in
from .protocol_declaration import FRAME_ID, MIN_FRAME_SIZE, FrameType, Packe
tType
File "C:\Python35\lib\site-packages\pycozmo-0.4.0-py3.5.egg\pycozmo\protocol_d
eclaration.py", line 7, in
from .protocol_ast import *
File "C:\Python35\lib\site-packages\pycozmo-0.4.0-py3.5.egg\pycozmo\protocol_a
st.py", line 9, in
from typing import List, Optional, Union, Type
ImportError: cannot import name 'Type'

D:\dev\Cozmo\pycozmo\examples>

@zayfod
Copy link
Owner

zayfod commented Sep 6, 2019

OK, I will update the Python requirement to 3.5.4 - thanks.

Tests with Python 3.5.4 on Windows have passed - https://github.com/zayfod/pycozmo/runs/212767778

Type has been added to typing in Python 3.5.2.

@zayfod
Copy link
Owner

zayfod commented Sep 6, 2019

Added requirement for Python 3.5.4 with 5504bb4 .

@zayfod zayfod closed this as completed Sep 6, 2019
@zayfod zayfod added the bug Something isn't working label Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants