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

Sessions saved with 64 bit Windows version won't open #136

Closed
joel-bentley opened this Issue Oct 29, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@joel-bentley

joel-bentley commented Oct 29, 2015

This is issue only with 64 bit Windows version (both 0.9.1 and 0.9.2). Issue is not seen with 32 bit Windows version and Mac version. Computer is running Windows 7.

Error message is:

ConstructorError: could not determine a constructor for the tag
'tag:yaml.org,2002:python/long'
in "Parameters.yaml", line 125, column 9

Looking at Parameters.yaml in .pcfs file we see lines like this:

  - [0, !!python/long '105']

In .pcfs files that we are able to open, these lines are instead

  - [0, 105]

for example.

@paulmueller

This comment has been minimized.

Member

paulmueller commented Oct 30, 2015

Thanks for reporting.
Note to myself:
Using safe_dump is the most likely solution.
http://stackoverflow.com/questions/1950306/pyyaml-dumping-without-tags

@paulmueller paulmueller added the bug label Oct 30, 2015

paulmueller pushed a commit that referenced this issue Nov 8, 2015

Paul Müller
@paulmueller

This comment has been minimized.

Member

paulmueller commented Nov 8, 2015

Unfortunately I don't have a x64bit Windows available. I might have solved this problem in the above commit. Could you please try this version:

https://ci.appveyor.com/api/buildjobs/m789i9n9na856b91/artifacts/Output/PyCorrFit_0.9.2_win_64bit_setup.exe

Thanks!

@joel-bentley

This comment has been minimized.

joel-bentley commented Nov 11, 2015

Just tested new 64bit Windows version you provided above. No more errors!
Session saved and reopened with no issues.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment