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

Fixed Pickle compatibility issue with Python3. #4

Closed
wants to merge 2 commits into from

Conversation

Karl-Krauth
Copy link

Running main.py from Python3 gave me the following error:

karlk@karl-desktop ~/r/R/src> python main.py
Starting PID
Traceback (most recent call last):
  File "main.py", line 107, in <module>
    ClosedLoopDataPID = pickle.load(file_data)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9e in position 2: ordinal not in range(128)

After some investigation it looks like it's because the objects were pickled in Python 2. This stackoverflow post seems to fix it:
https://stackoverflow.com/questions/28218466/unpickling-a-python-2-object-with-python-3
Not extensively tested but it seems to work.

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

Successfully merging this pull request may close these issues.

2 participants