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

Fix problems with ProxyUni in Python 3 caused by __iter__ #454

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bryab
Copy link

@bryab bryab commented Mar 30, 2022

I encountered an issue using the force parameter for pymel.core.setAttr. I was getting this error:

Invalid arguments for flag 'ln'. Expected string, got ( str, str, str, str, str, str, str )

Long story short, the string is being misinterpreted as a sequence.

I tracked this down to pymel.core.util.isIterable which checks if the object is iterable by running iter on it. Removing the __iter__ method from ProxyUni fixed this error. A strange solution but it was the simplest one, as it makes ProxyUni behave, in Python 3, more like how it does in Python 2.

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.

1 participant