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

ValueError: too many values to unpack (expected 2) #1237

Open
dliessi opened this issue Dec 31, 2019 · 7 comments
Open

ValueError: too many values to unpack (expected 2) #1237

dliessi opened this issue Dec 31, 2019 · 7 comments
Labels

Comments

@dliessi
Copy link
Collaborator

dliessi commented Dec 31, 2019

Reported by @marnen on 15 May 2019 (unofficial Frescobaldi 3.0.0 app bundle) and confirmed today (official Frescobaldi 3.1 app bundle) on 10.14 Mojave (see #986):

The Sessions menu doesn't work well: every time I click on it, I get an error that says something about "too many values to unpack". Once I dismiss the error, the menu doesn't show the sessions I have defined, but otherwise functions as expected.

When the app opens, I get the following error:

Traceback (most recent call last):
  File "/private/var/folders/yq/n3t_19_13897mtqk4w1lx7jc0000gq/T/AppTranslocation/EF3958AC-8D5F-4D76-9E97-CDEA5D3B62D9/d/Frescobaldi.app/Contents/Resources/lib/python3.7/frescobaldi_app/sessions/menu.py", line 100, in populate
ValueError: too many values to unpack (expected 2)

Clicking "cancel" either has no effect or brings up the error alert again; ditto the close box. Clicking "email bug report" opens Mail.app and then returns to the error. The error alert is modal; all non-system menu items are disabled, and clicking on the application window just gets an error beep. Even the Quit menu item is disabled, and so I have to force-quit Fresco.

Hmm, when I copied to a location other than the DMG, I still got the error but was eventually able to cancel my way out of it. But then it reappeared every time I switched focus back to the application.

I cannot reproduce the issue.

@wbsoft any ideas?

@dliessi
Copy link
Collaborator Author

dliessi commented Dec 31, 2019

@marnen: Would you please try renaming or moving Frescobaldi's preferences file (~/Library/Preferences/org.frescobaldi.frescobaldi.plist) and see if the Session menu still has the problem?

You can then delete the newly created preferences file and move the previous one back to its original location.

@uliska
Copy link
Collaborator

uliska commented Dec 31, 2019 via email

@dliessi
Copy link
Collaborator Author

dliessi commented Dec 31, 2019

This may be related to "old" sessions stored in the preferences not being compatible with the changed implementation.

If that's indeed the case, then resetting the preferences (by deleting the file mentioned above) should solve the issue.

@uliska: do you think that exporting the sessions, deleting the preferences and importing the sessions again would work?
Ideally, users should not need to rebuild all sessions from scratch.

@uliska
Copy link
Collaborator

uliska commented Dec 31, 2019 via email

@marnen
Copy link
Contributor

marnen commented Dec 31, 2019

@dliessi:

Would you please try renaming or moving Frescobaldi's preferences file (~/Library/Preferences/org.frescobaldi.frescobaldi.plist)

Sure, I was going to suggest doing something like that. Let me see what I can figure out.

@marnen
Copy link
Contributor

marnen commented Dec 31, 2019

I'm sorry to say that that didn't make a difference. With the old prefs file moved out of the way, in Fresco 3.1 I still get the same error as soon as I click on the Session menu.

@wbsoft
Copy link
Collaborator

wbsoft commented Dec 31, 2019

I'll have a look into it shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants