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

syntax error while importing Mask #32

Open
pratik-q opened this issue Mar 19, 2020 · 4 comments
Open

syntax error while importing Mask #32

pratik-q opened this issue Mar 19, 2020 · 4 comments

Comments

@pratik-q
Copy link

Hi,

I have installed imantics-0.1.12 using below command. Installation is successfull.
pip3 install imantics==0.1.12
Output:

Collecting imantics==0.1.12
  Downloading imantics-0.1.12.tar.gz (13 kB)
Requirement already satisfied: numpy in /usr/local/lib/python3.5/dist-packages (from imantics==0.1.12) (1.18.1)
Requirement already satisfied: opencv-python>=3 in /usr/local/lib/python3.5/dist-packages (from imantics==0.1.12) (4.2.0.32)
Collecting lxml
  Downloading lxml-4.5.0-cp35-cp35m-manylinux1_x86_64.whl (5.7 MB)
     |################################| 5.7 MB 5.0 MB/s 
Collecting xmljson
  Downloading xmljson-0.2.0-py2.py3-none-any.whl (14 kB)
Building wheels for collected packages: imantics
  Building wheel for imantics (setup.py) ... done
  Created wheel for imantics: filename=imantics-0.1.12-py3-none-any.whl size=17859 sha256=ed65a9e5f6c947e5dfab558d6ae3cd33f13c8b44aca188aa5b1f496d57e591ec
  Stored in directory: /root/.cache/pip/wheels/a7/25/c6/b6bf5764b15519ac1047c2c0aab8f4255778eb01a7d502ce6a
Successfully built imantics

Getting syntax error while importing Mask, using below command in python3 console.
>>> from imantics import Mask

Getting below error.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/imantics/__init__.py", line 3, in <module>
    from .dataset import *
  File "/usr/local/lib/python3.5/dist-packages/imantics/dataset.py", line 29
    xml_list += list(xml_folder.glob(f"*.{ext}"))
                                              ^
SyntaxError: invalid syntax

Please help me resolve this issue, Thanks in advance.

Let me know if you need more information.

Regards

@saurabheights
Copy link
Contributor

Are u using python 3.6?

@saurabheights
Copy link
Contributor

@pratik-q

@pratik-q
Copy link
Author

pratik-q commented Apr 23, 2020

no, its python 3.5. @saurabheights

@jsbroks
Copy link
Owner

jsbroks commented Apr 23, 2020

That is why you are getting the error

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