# Recreate state.pickle file

**URL:** <https://discourse.beets.io/t/recreate-state-pickle-file/955>\
**Category:** Help\
**Created:** [October 3, 2019, 5:51am UTC](https://discourse.beets.io/t/recreate-state-pickle-file/955 "2019-10-03T05:51:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ejlane](https://avatars.discourse-cdn.com/v4/letter/e/4da419/32.png) [@ejlane](https://discourse.beets.io/u/ejlane)\
**Post date:** [October 3, 2019, 5:51am UTC](https://discourse.beets.io/t/recreate-state-pickle-file/955/1 "2019-10-03T05:51:30Z")

</div>

I’m having an issue, and I don’t know where else to look for help. I had a corrupted state.pickle file that beets was complaining about. (A character that wasn’t allowed in ASCII was the specific complaint.) After trying different things, I finally removed the file, but then beets wouldn’t import anything because it complained of a missing file. Putting in a blank file leads it to complain that it reached the end of the file.

How do I convince beets to recreate a valid pickle file that will allow it to import more, while obviously not having any history of past imports or anything else. I still have my library database in good shape, and it can read it and tell me stats about it.

Thanks!  
Erik

---

<div class="post-metadata">

**Author:** ![ejlane](https://avatars.discourse-cdn.com/v4/letter/e/4da419/32.png) [@ejlane](https://discourse.beets.io/u/ejlane)\
**Post date:** [October 3, 2019, 6:00am UTC](https://discourse.beets.io/t/recreate-state-pickle-file/955/2 "2019-10-03T06:00:26Z")

</div>

Grrrr…

I’ve been fighting this for hours. Nothing seemed to work - it would always just freeze up, no matter what combination of options I tried. Just now I tried to have it run with -P on the import to not resume any previous imports, and it just worked. I have no idea why it’s different.

So I guess ignore this… I don’t see an option to delete it.

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [October 3, 2019, 7:57pm UTC](https://discourse.beets.io/t/recreate-state-pickle-file/955/3 "2019-10-03T19:57:03Z")

</div>

That’s weird; deleting the file should be just fine. Can you include the actual error message you were getting?

---

<div class="post-metadata">

**Author:** ![ejlane](https://avatars.discourse-cdn.com/v4/letter/e/4da419/32.png) [@ejlane](https://discourse.beets.io/u/ejlane)\
**Post date:** [October 3, 2019, 8:38pm UTC](https://discourse.beets.io/t/recreate-state-pickle-file/955/4 "2019-10-03T20:38:26Z")

</div>

I’m sorry, but since it’s now working I can’t. But I did notice later on that my installation had a couple of weird things and some conflicts between Python 2 and 3. I resolved all of that and it’s also speedier now. I think that at least some of my problems were self-inflicted. If it recurs, I’ll see about saving the error messages.

Unless there’s a log file that would persist through reinstalling everything, because in that case if you tell me where to look I’ll see what is still there.

Thanks!
