labelImg 1.5.2 on windows crashed

Created on 6 Jan 2018  ·  19Comments  ·  Source: tzutalin/labelImg

  • OS: windows 10
  • PyQt version:

I have used labelImg 1.5.2 on windows for many days.
Today I was opening an image then I try to change its .xml with notepad to see the result.
After I closed program then I cannot open program again it keep throw this error even I have tried to reboot my computer many times.

Traceback (most recent call last):
File "", line 1344, in
File "", line 1340, in main
File "", line 1333, in get_main_app
File "", line 93, in __init__
File "Z:\home\darrenl\tmp\labelImg\build-tools\build\labelImg\out00-PYZ.pyz\libs.settings", line 33, in load
File "Z:\home\darrenl\tmp\labelImg\build-tools\build\labelImg\out00-PYZ.pyz\pickle", line 1378, in load
File "Z:\home\darrenl\tmp\labelImg\build-tools\build\labelImg\out00-PYZ.pyz\pickle", line 858, in load
File "Z:\home\darrenl\tmp\labelImg\build-tools\build\labelImg\out00-PYZ.pyz\pickle", line 880, in load_eof
EOFError

Any suggestion please?

Most helpful comment

Just delete the file .labelImgSettings.pkl which is locate at C:\\Users\your_account\. Then reopen LabelImg.exe will be fine.

All 19 comments

Add any example of your xml-file and image if possible.

Here it is. However, I can open the program on another computer but the main one I cannot open it anymore.

<?xml version="1.0"?>

-<annotation>

<folder>object-detection-macaroni_images</folder>

<filename>0ShAyPFRqBeO60QkYN7w_Mac Cheese 2.jpg</filename>

<path>F:/object-detection-macaroni_images/0ShAyPFRqBeO60QkYN7w_Mac Cheese 2.jpg</path>


-<source>

<database>Unknown</database>

</source>


-<size>

<width>620</width>

<height>414</height>

<depth>3</depth>

</size>

<segmented>0</segmented>


-<object>

<name>macncheese</name>

<pose>Unspecified</pose>

<truncated>0</truncated>

<difficult>0</difficult>


-<bndbox>

<xmin>0</xmin>

<ymin>9</ymin>

<xmax>565</xmax>

<ymax>313</ymax>

</bndbox>

</object>

</annotation>

I have this error. I don't know how to solve it....

I have the same error

I have the same error too.....

@tzutalin can you give some advises? looking forward to your reply

I have the same error in Windows version 1.6.0.
By the way, the old version 1.5.0 works just fine.

+1

Just delete the file .labelImgSettings.pkl which is locate at C:\\Users\your_account\. Then reopen LabelImg.exe will be fine.

thank @zuifengwuchou the solution works for me.
"Just delete the file .labelImgSettings.pkl which is locate at C:\Users\your_account. Then reopen LabelImg.exe will be fine."

@zuifengwuchou thanks a million

thank @zuifengwuchou the solution works for me.
thanks,
thanks,
thanks,
thanks,
thanks,

thanks, @zuifengwuchou its work for me.

this my sounds stupid but it worked for me
open the kabelImg.exe directly from winrar
just don't extract it and it will open smothly

my version of labelImg does not run. it crashes as soon as i try to import an image from a directory.
there is no file called .labelImgSettings.pkl. can someone help? the installations are as per @tzutalin 's instructions.

For Windows

Go to Users\xxx\ delete .labelImgSettings.pkl,then pyrcc5 -o libs/resources.py resources.qrc, python labelImg.py

For Mac or Linux

Go to home(~) folder, rm .labelImgSettings.pkl, then pyrcc5 -o libs/resources.py resources.qrc, python labelImg.py

But for windows, what can I do to solve the problem if I cannot find the .labelImgSettings.pkl?

But for windows, what can I do to solve the problem if I cannot find the .labelImgSettings.pkl?

You can find under the C:\Users\your_account\.labelImgSettings.pkl, Delete this file and open again the tool.

Thanks! I search all my files still cannot find it, but I find this is helpful: https://medium.com/@sanghuynh_73086/how-to-install-labelimg-in-windows-with-anaconda-c659b27f0f. Someone who has the problem like me maybe can try this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ma-mehralian picture ma-mehralian  ·  5Comments

swiss-knight picture swiss-knight  ·  5Comments

bit-scientist picture bit-scientist  ·  5Comments

vanangamudi picture vanangamudi  ·  3Comments

aberger7 picture aberger7  ·  3Comments