Anirban Saha
Anirban Saha

Reputation: 31

OSError: [Errno 22] Invalid argument: While loading pickle file

I am trying to do the following:

  1. Fetch content from the file './lists/Topic_list.pkl'
  2. Write a new line to the existing data.
  3. Export it to the same file.

It is getting this error after working for many iterations:


OSError: [Errno 22] Invalid argument: './lists/Topic_list.pkl'

Please consider the following:

Screenshot attached below:

enter image description here

Upvotes: 0

Views: 1155

Answers (1)

Anirban Saha
Anirban Saha

Reputation: 31

Issue fixed.

This is what I did:

  • In case the error is found:
  • Wait for one second.
  • Re-Try.

Screenshot

Upvotes: 1

Related Questions