question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error on debian: "TypeError: Can't instantiate abstract class GnuDynamicLinker with abstract method id"

See original GitHub issue

I use debian:

istributor ID:	Debian
Description:	Debian GNU/Linux bullseye/sid
Release:	testing
Codename:	bullseye

with python 3.9 I installed meson with pip3 install meson and when running meson build --reconfig I get:

root@guri:~/libcamera# meson build --reconfig
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/mesonbuild/mesonmain.py", line 140, in run
    return options.run_func(options)
  File "/usr/local/lib/python3.9/dist-packages/mesonbuild/msetup.py", line 253, in run
    app.generate()
  File "/usr/local/lib/python3.9/dist-packages/mesonbuild/msetup.py", line 154, in generate
    env = environment.Environment(self.source_dir, self.build_dir, self.options)
  File "/usr/local/lib/python3.9/dist-packages/mesonbuild/environment.py", line 545, in __init__
    self.coredata = coredata.load(self.get_build_dir())  # type: coredata.CoreData
  File "/usr/local/lib/python3.9/dist-packages/mesonbuild/coredata.py", line 1008, in load
    obj = pickle.load(f)
TypeError: Can't instantiate abstract class GnuDynamicLinker with abstract method id

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
keithbowescommented, Mar 10, 2021

Yeah, I just upgraded the distro I use (Mageia) and am getting the same problem in trying to recompile slurp, swayidle, wlroots, among others.

$ meson --reconfigure build
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/mesonbuild/mesonmain.py", line 140, in run
    return options.run_func(options)
  File "/usr/lib/python3.8/site-packages/mesonbuild/msetup.py", line 253, in run
    app.generate()
  File "/usr/lib/python3.8/site-packages/mesonbuild/msetup.py", line 154, in generate
    env = environment.Environment(self.source_dir, self.build_dir, self.options)
  File "/usr/lib/python3.8/site-packages/mesonbuild/environment.py", line 542, in __init__
    self.coredata = coredata.load(self.get_build_dir())  # type: coredata.CoreData
  File "/usr/lib/python3.8/site-packages/mesonbuild/coredata.py", line 1008, in load
    obj = pickle.load(f)
TypeError: Can't instantiate abstract class GnuDynamicLinker with abstract methods id

Doing a meson --wipe build allows them to be built.

0reactions
db0451commented, Mar 13, 2021

Thanks, wiping seems to work indeed. So it seems like some incompatibility between old/new Meson versions, as I hadn’t been building the affected modules for months (via JHBuild).

I don’t have more exact steps to reproduce than ‘try jhbuild build SomeModule though, I’m afraid. But perhaps the backtrace and the fact it seems to trigger when trying to regenerate build files from months ago, and fails on pickle.load, might hint at the cause.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - TypeError: Can't instantiate abstract class with ...
I cannot speak to your implementation here, but generally speaking, you must implement abstract methods of any base class in a subclass that ......
Read more >
How to Fix Python Error 'Can't Instantiate Abstract Class'
Here's the fix for can't instantiate abstract class error. ... The class must be abstract if there is any abstract method in a...
Read more >
Can We Instantiate an Abstract Class in Java?
Abstract class, we have heard that abstract class are classes which can have abstract methods and it can't be instantiated.
Read more >
python - TypeError: Can't instantiate abstract class Cosine ...
[Pesan Error.png](https://storage.googleapis.com/kotakode-prod-public/images/5527b524-81f0-434a-8f28-09fe5fe222e0-Pesan-Error.png) * Ekspektasinya ...
Read more >
Cannot instantiate abstract class
Cannot instantiate abstract class hi am geting above error in this line. Result result = new Result(); result.setId(newProperty.getId().
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found