Unable to draw annotations on Windows #811
Comments
Same issue here since I installed labelImg last week. Windows 10. |
@zaitsman I think you can either downgrade python version(< 3.10) or change some values' type manually. For me, I reinstalled python 3.9 and it worked well. change float to intYou can change the type from float to int and it works but it omits other errors. ( I think the problem is that |
switching back to python 3.9 worked for me. thanks @sammiee5311 |
Hi guys, I have the same problem! But I don't know where is the 'float' to change into an 'int' in the file about @sammiee5311 talked about. (line 530, 531 etc...) And if someone would explain to me how to downgrade the python version 3.10 to 3.9 as @pradoz said above with cmd. |
@YanisSadou, You can replace However, It does not fix everything so there will be other problems while working with it. So I recommend you to switch the python version. First, install any python version lower than 3.10. Then, If you use windows os, you can change windows or you can use <your pip version> install virtualenv
virtualenv --python=<python version> venv
pip3 install virtualenv
virtualenv --python=3.9 venv (or python3 -m virtualenv --python=3.9 venv) and then install dependencies what you want in the python virtual environment. |
@sammiee5311 I just replace some lines in the canvas.py thanks to your advice, change all 'float' to 'int':
It seems to work well. You are a goat! |
@YanisSadou No worries ! |
Hi |
@tzutalin I think you need to change more than I don't have a laptop right now. There are another lines need to be fixed in order not to get errors while using it. Because lots of |
could you help submit a PR for this bug since I cannot reproduce this on my mac. Basically, I guess it should have converted to int before calling QT methods like Thanks in advance! |
@tzutalin, Sure ! I will submit a PR after my work done. I have one question that
you meant, change like |
Thanks. ya~ I was thinking about this which is the same as you post above |
@tzutalin No worries ! Okay, good :) |
can you give me the result of changing the int? i dont know how to change it |
Hello, @YakaTouji I think you can follow this comment ? |
created a new venv using python 3.8 and then pip3 install labelImg then simply type labelImg in the terminal |
Also have this issue- when can we expect this to be upgraded to work with Python 3.10? |
I'm hitting the same thing after upgrading to Ubuntu 22.04 LTS |
Hello i to have the same problem, But i don't know where to fix it & how too |
Try downgrading python to version 3.9. From what I saw, it solved almost everyone's problems in my contacts. |
Are there any updates on when this will be upgraded to python 3.10? I have many pipelines that have been using 3.10 for a while, but I have to separate this part out to use python 3.9, which is a lot of extra work. |
I don't have any idea
But it's updated in python3.11
…On Fri, 20 Jan, 2023, 7:57 pm richeym-umich, ***@***.***> wrote:
Are there any updates on when this will be upgraded to python 3.10? I have
many pipelines that have been using 3.10 for a while, but I have to
separate this part out to use python 3.9, which is a lot of extra work.
—
Reply to this email directly, view it on GitHub
<#811 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AY6SOUW35W3IPHRHPCYPAYLWTKOFPANCNFSM5IIPE7CA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I use anaconda to create a virtual environment like python 3.9 or python3.7 |
argument 1 has unexpected type 'float', that means it should be 'int' type. |
I made a post talking about how to solve this problem step-by-step, maybe it will help you. |
I installed Python 3.10, PyQt5 and libxml using instructions in readme. md
I used pyrcc5 to create resources.qrc successfully.
The UI loads, and I can get to my folder, and see my images. As soon as I try creating an annotation (pressed W on my keyboard) the script crashes with the following log
Same thing works a treat on mac os.
The text was updated successfully, but these errors were encountered: