-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Meson install error: Can't get attribute 'OctalInt' #8425
Comments
I'm sure we don't need a page title that long. |
question: what command did you run exactly in order to get this error? And, where did you get meson from? pip, or your distro's package manager? |
question: what command did you run exactly in order to get this error?
And, where did you get meson from? pip, or your distro's package manager?
|
Description : Build is successful but install failed |
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. |
Thank u removes all meson installations and reinstalled .
It worked.
Thank you
…On Thu, 25 Feb 2021, 21:41 Eli Schwartz, ***@***.***> wrote:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8425 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIKLK3YFQ3JMDT53RNTGNNDTA4C5ZANCNFSM4YHSVQWA>
.
|
Is it so hard to mention this in the docs? |
How did you uninstall and reinstall meson? |
https://mesonbuild.com/Getting-meson.html#installing-meson-with-pip Specifically mentions you must install meson using A better solution would be to upgrade from years-old versions of Ubuntu, but if you're using CI then sudo pip is a reasonable way to install things, and if you're using DESTDIR= installs then you don't need |
In case someone else ends up here looking for the cause of this issue: It's related to #8282. It happens if an older version meson (lacking the commit from #8282) tries to load an |
Made a PR to at least print a sensible error message, just like we do in all other subcommands that load coredata: #9507.
I think Note that on Linux you can even simply do |
What??? No! It can't possibly work, because the full path to the meson executable does absolutely nothing whatsoever, this is python and the code is all in modules imported off of sys.path is different when running as root, it doesn't matter what command you ran to get there nor whether polkit or ninja invoked meson. It won't inject the user site-packages into the root process, for obvious security reasons. |
It does on my laptop at least, doing that literally every day. |
@eli-schwartz it works because meson.py mess up with sys.path to find modules in mesonbuild/ folder next to it. |
On your laptop running How exactly have you tested this? |
oh, ok, it's not pip installed, it's running from git checkout. That's the difference, ok. |
Right, no one for a second ever was talking about running path/to/git/checkout/meson.py In fact running meson.py from a git checkout is one of the methods I recommended in the past to circumvent this, rather than using pip install. As you said:
Installed means not running from a git checkout. |
yeah, sorry for the confusion :) |
We could make it work when using polkit thought, by setting PYTHONPATH when running pkexec. |
People can just run from a git checkout or use a zipapp. |
Observed the following error on meson install of gstreamer :
The text was updated successfully, but these errors were encountered: