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.

Meson install error: Can't get attribute 'OctalInt'

See original GitHub issue

Observed the following error on meson install of gstreamer :

File "/usr/lib/python3/dist-packages/mesonbuild/minstall.py", line 330, in do_install
    d = pickle.load(ifile)
AttributeError: Can't get attribute 'OctalInt' on <module 'mesonbuild.coredata' from '/usr/lib/python3/dist-packages/mesonbuild/coredata.py'>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (14 by maintainers)

github_iconTop GitHub Comments

3reactions
eli-schwartzcommented, Feb 26, 2021

If you got it from pip, why is it using /usr/lib/python3/dist-packages/mesonbuild/minstall.py

In order to use sudo ninja install, meson must be installed as root. Your installation attempt is incorrectly picking up the wrong (outdated!) version of meson.

0reactions
eli-schwartzcommented, Oct 31, 2021
  • the polkit codepath is evil, counterintuitive, and should be removed
  • Regardless, I see no reason to modify the global import path, adding far more than just mesonbuild to it, when elevating to root. For something that isn’t even a real issue, but rather a broken setup.

People can just run from a git checkout or use a zipapp.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Meson Install failed for Libcamera build - linux
load(ifile) AttributeError: Can't get attribute 'OctalInt' on <module 'mesonbuild.coredata' from '/usr/lib/python3/dist-packages/mesonbuild/ ...
Read more >
Failed to compile with ninja/meson (novice) (#2528) · Issues
... Can't get attribute 'OctalInt' on <module 'mesonbuild.coredata' from '/usr/lib/python3/dist-packages/mesonbuild/coredata.py'> FAILED: ...
Read more >
1689191 – meson fails with "AttributeError: Can't get ...
Description of problem: $ ninja -C build-rawhide-32 test ninja: Entering directory `build-rawhide-32' [1/2] Running all tests. Traceback (most recent call ...
Read more >
Help installing Sway on Ubuntu : r/linuxquestions
But I get an error when trying to install wlroots sudo ninja -C build ... Can't get attribute 'OctalInt' on <module 'mesonbuild.coredata' ...
Read more >
21.04 - Error installing libcamera
load(ifile)) AttributeError: Can't get attribute 'OctalInt' on <module 'mesonbuild.coredata' from '/usr/lib/python3/dist-packages/mesonbuild/ ...
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