-
Notifications
You must be signed in to change notification settings - Fork 96
Build fails with CleanCommand super()-call #224
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
Comments
@menschel-d Thanks Dennis for this detailed report! 👍 Much appreciated. Of course, such an exception shouldn't happen. I haven't looked into the details yet, but I assume this has something to do with the difference of classes in Python 2. In Python 3, all classes are derived from object. However, in Python 2 there is this distinction between "old style" and "new style" classes. Only new style classes are derived from object. My guess would be, that the underlying Could you test one thing for me, please? Can you change the line from Apart from the above error, IMHO I think the |
@tomschr Thanks for the quick reply, Tom! After changing
And this is the corresponding output for Python 2:
|
You're welcome. 😄
Ohh, I'm stupid, it should be Does it help? |
In class clean, replace super(CleanCommand, self).run() with CleanCommand.run(self) Co-authored-by: Dennis Menschel <menschel-d>
In class clean, replace super(CleanCommand, self).run() with CleanCommand.run(self) Co-authored-by: Dennis Menschel <menschel-d@users.noreply.github.com>
After applying Below is the identical output of BitBake for both Python 2 and 3:
|
Thanks @menschel-d for reporting this issue and @tomschr for fixing it! |
@menschel-d Cool! 👍 Thanks to @scls19fr for the quick merge! 👍 |
While trying to upgrade the BitBake recipes for python-semver (Python 2 and Python 3) from version 2.8.1 to 2.9.1, I've encountered the following error which seems to have been introduced by commit 017e296#diff-2eeaed663bd0d25b7e608891384b7298L39-R39.
Here is the relevant BitBake log for Python 3.7:
And here is the corresponding log for Python 2.7:
Looking at the documentation for
super()
in Python 3 and Python 2 makes me wonder ifsuper(CleanCommand, self).run()
might be a typo and should have beensuper(Clean, self).run()
.Changing
super(CleanCommand, self).run()
tosuper(Clean, self).run()
apparently solves the problem for Python 3. For Python 2, the error message stays more or less the same:The text was updated successfully, but these errors were encountered: