Error: 'Section' object has no attribute 'iter_versions'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Low
|
Chris Patterson |
Bug Description
I have seen this error happening while priming a part (3.9.9 and 3.9.8):
$ snapcraft
Skipping pull xwayland-
Skipping pull app-ui (already ran)
Skipping pull dump (already ran)
Skipping pull gnome-extension (already ran)
Skipping pull gstreamer (already ran)
Skipping pull station-daemons (already ran)
Skipping build xwayland-
Skipping build app-ui (already ran)
Skipping build dump (already ran)
Skipping build gnome-extension (already ran)
Skipping build gstreamer (already ran)
Skipping build station-daemons (already ran)
Skipping stage xwayland-
Skipping stage app-ui (already ran)
Skipping stage dump (already ran)
Skipping stage gnome-extension (already ran)
Skipping stage gstreamer (already ran)
Skipping stage station-daemons (already ran)
Skipping prime xwayland-
Skipping prime app-ui (already ran)
Skipping prime dump (already ran)
Skipping prime gnome-extension (already ran)
Skipping prime gstreamer (already ran)
Priming station-daemons
Sorry, an error occurred in Snapcraft:
'Section' object has no attribute 'iter_versions'
We would appreciate it if you anonymously reported this issue.
No other data than the traceback and the version of snapcraft in use will be sent.
Would you like to send this error data? (Yes/No/
You can find the traceback in file '/tmp/tmpg30vmj
Trace is:
Traceback (most recent call last):
File "/snap/
load_
File "/snap/
return self.main(*args, **kwargs)
File "/snap/
rv = self.invoke(ctx)
File "/snap/
return Command.
File "/snap/
return ctx.invoke(
File "/snap/
return callback(*args, **kwargs)
File "/snap/
return f(get_current_
File "/snap/
snap_
File "/snap/
return super().invoke(ctx)
File "/snap/
return ctx.invoke(
File "/snap/
return callback(*args, **kwargs)
File "/snap/
_execute(
File "/snap/
lifecycle.
File "/snap/
executor.
File "/snap/
self.
File "/snap/
getattr(self, "_run_{
File "/snap/
self.
File "/snap/
getattr(part, step.name)()
File "/snap/
self.
File "/snap/
return getattr(
File "/snap/
"override-
File "/snap/
scriptlet_name, function_
File "/snap/
function(
File "/snap/
dependency_
File "/snap/
elf_files = elf.get_
File "/snap/
elf_file = ElfFile(path=path)
File "/snap/
elf_data = self._extract(path)
File "/snap/
for library, versions in verneed_
AttributeError: 'Section' object has no attribute 'iter_versions'
It smells to me like an issue while stripping elf binaries of debug symbols. The binary does not use glibc, but musl, so maybe it is a bit special.
description: | updated |
Changed in snapcraft: | |
assignee: | nobody → Chris Patterson (cjp256) |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
importance: | Undecided → Low |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
$ readelf --version-info <mybinary>
does not find version information in .gnu.version_r, although the section exists.