Aidl not found error while using buildozer android -v debug - python-3.x

I'm trying to create an android apk file that I can run on my phone using buildozer and kivy. Unfortunately, whenever I run the command buildozer -v android debug, the command prompt returns the error Aidl not found, please install it.
I've already tried to simply do sudo apt-get aidl followed by sudo apt-get update, but that still results in the same error.
Also, I'm not sure if this is relevant to the issue, but when I open up the file explorer on the ubuntu 16.04 virtual machine, there is a slight "x" on the root folder and it says that I don't have access to open it.
Here is the buildozer.spec file, through I'n note sure if the contents of it are important with this specific error
https://docs.google.com/document/d/1UAHekPUatAOrdIU_zFRwoPWgQKd-d0L3QsRXOr2Lo4Q/edit?usp=sharing
Help and suggestions would greatly be appreciated. Thanks!
Note: The reason why I am asking this question is due to the fact that the answer given in Why does Buildozer show `# Aidl not found, please install it.` even after I installed it? is out of date

Aidl not found, please install it.
Buildozer didn’t install a necessary package
~/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager "build-tools;29.0.0"
Then press “y” then enter to accept the license.

Related

Mac install python without developer tools

I am trying to install python 3.11 without the Mac developer tools, which will give me python3.9. But when I used the vscode to open a python file, the command line installer poped up and showed the following message 'the python3 command requires the command line developer tools ....'. But I can run the python3 command in the terminal successfully.
The annoying part is the pop up window. I found some suggestions about relink or rebuild the Xcode / command line tools. But in my case, there is no Xcode path. Please let me know if there is a way to configure the path correctly.
Thank you,
I checked the link of python3 in /usr/bin
I install the python directly from the http://python.org
Do you use Homebrew in your terminal?
You can try to run brew link --overwrite --dry-run python#3.11 in your terminal to see if you need to do an update for your env path. If you do need it, the terminal will give you suggestions to relink, ex. brew link --overwrite python#3.11 or rm '/usr/local/bin/2to3-3.11'
I also had an issue when installing python3.11 through Homebrew in my terminal, it said I must use xcode-select --install to install python3.11.
So later on, I followed this video step by step, and now it works. Whenever I check python3 --version, it returns Python 3.11.1. It also allows me to install another library that depends on python3.11.
Maybe it is worth checking the current version in your terminal and seeing if need to install again the package.

Failure to install Jupyter Notebook on MacBook Pro (MacOS) "Failed to build argon2-cffi" [duplicate]

I updated to the latest OS, and/or restarted my computer (this happens on every major update, but this time all I did was restart my computer on 2022-09-13)
This morning I navigated to my work's codebase in the Command Line on my MacBook pro, typed in "git status" in the repository and received an error:
(IN 9/2022, this error was much different, but I didn't capture it)
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
git will not work!
How do I fix git, and command line tools?
The problem is that Xcode Command-line Tools needs to be updated.
** UPDATED for Ventura and updated apple dev download page **
After opening the terminal after a restart, I tried to go to my code, and do a git status, and I got an error and prompt for command line software agreement.
So press space until you get to the [agree, print, cancel] option, so careful hit space to scroll down to the end, if you blow past It you have to run a command to get it back. Use sudo xcodebuild -license to get to it again.
Just be careful on scrolling down and enter agree and press return and it will launch into an update.
Then I tried to use git after the install, and it prompted me to install Xcode tools again.
I followed my own advice from previous years (see below), and went to https://developer.apple.com/download/all/?q=Command%20Line%20Tools and downloaded
"Command Line Tools for Xcode 14" (You have to log in with your Apple ID, so have that login readily available.
You have to either download the tools from CLI or the developer page and before you can use git, you need to reboot!!! SUPER IMPORTANT, you can get stuck in a loop of downloading
Rebooting will break the loop and complete the installation of your CLI tools including git so that you can get back to work
Solutions for previous years, these may or may not be valid these days as the downloads page has changed significantly:
PREVIOUS YEARS SOLUTIONS, probably #2 is most helpful.
** Solution #1 **
Go back to your terminal and enter:
xcode-select --install
You'll then receive the following output:
xcode-select: note: install requested for command line developer tools
You will then be prompted in a window to update Xcode Command Line tools. (which may take a while)
Open a new terminal window and your development tools should be returned.
Addition: With any major or semi-major update you'll need to update the command line tools in order to get them functioning properly again. Check Xcode with any update. This goes beyond Mojave...
After that restart your terminal
Alternatively, IF that fails, and it very well might.... you'll get a pop-up box saying "Software not found on server", see below!
Solution #2
and you hit xcode-select --install and it doesn't find the software, log into Apple Developer, and install it via webpage.
Log in or sign up here:
https://developer.apple.com/download/more/
Look for: "Command Line Tools for Xcode 14.x" in the list of downloads
Then click the dmg and download.
I got some errors that the software was unavailable from the update server when trying
xcode-select --install
What fixed it for me was going here https://developer.apple.com/download/more/ and downloading Command Line Tools (macOS 10.14) for Xcode 10 and then installing it manually.
After that, the errors should be gone when you open up a new terminal.
Update for macOS Ventura 13.0.1 (Nov 2022)
Install Command Line Tools for Xcode 14.1
For me xcode-select --reset was the solution on Mojave.
In addition to dustbuster's answer I needed to set path to the Xcode folder with this command:
sudo xcode-select -switch /Library/Developer/CommandLineTools
updated from Mojave to Big Sur and got the same error :
the command
xcode-select --install
worked like a charm
After upgrade to Mac Catalina I faced the same issue, I had to run couple of commands to get this fixed.
First started with:
xcode-select --install
It didn't fix the problem, had to run the following in sudo
sudo xcode-select --reset
Then, finally got fixed after I switched and set the path explicitly for active developer directory:
sudo xcode-select -s /Library/Developer/CommandLineTools
Note: In case you have Xcode installed, you may need to specify Xcode directory in this case, it should be something like this
xcode-select -s /Applications/Xcode.app
For me what worked is the following:
sudo xcode-select --reset
Then like in #High6's answer:
sudo xcodebuild -license
This will reveal a license which I assume is some Xcode license. Scroll to the bottom using space (or the mouse) then tap agree.
This is what worked for me on MacOS Mojave v 10.14.
I've used xcode-select --install given in the accepted answer in previous major releases.
I've just upgraded to OS X 10.15 Catalina and run the Software Update tool from preferences again after the OS upgrade completed. The Xcode utilities update was available there, which also sorted the issue using git which had just output
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
If you use xcode then install it (~12GB)
xcode-select --install
Otherwise install latest command line tools (~500MB)
Update: If struck in install loop
xcodebuild -runFirstLaunch
if there are several versions, select one of them from:
xcode -> Preferences and tap Locations then select, as the followng image
I figured out the Xcode Command Line Tools part from the error message, but after running Xcode and getting the prompt to install the additional tools it did claim to install them, but still I got the same error after opening a new terminal.
So I did the xcode-select --install manually and after that it worked for me.
Mac OS : Big Sur
First Priority
sudo xcode-select --reset
sudo xcodebuild -license
Second Priority
xcode-select --install
Following worked on M1
ProductName: macOS
ProductVersion: 11.2.1
BuildVersion: 20D74
% xcode-select --install
Agree the Terms and Conditions prompt, it will return following message on success.
% xcode-select: note: install requested for command line developer tools
If you have Xcode downloaded manually (i.e. not from the App Store) or don't have Xcode at all:
sudo rm -rf /Library/Developer/CommandLineTools
Go to https://developer.apple.com/download/more/ to download Command Line Tools (macOS 10.14) for Xcode 10
Setup Command Line Tools
If you have Xcode installed from the App Store:
xcode-select --install
Open Terminal:
install XCode developer tools and fix the problem.
$ xcode-select --install
Reset the path to Xcode if you have several versions:
$ xcode-select --switch /Applications/Xcode.app
$ xcode-select --switch /Library/Developer/CommandLineTools
Run this command:
xcode-select --install
Hit return for a progress indicator on the Command Line Tools download.
After installation of the Command Line Tools has been completed, your Mac should be rebooted. If you’re getting “xcrun error invalid active developer path” while working in Terminal, refresh the application or relaunch it.
Even after following the above-mentioned steps, if you see the error: invalid active developer path (/Library/Developer/CommandLineTools). The next step would be to try and install Command Line Tools using a DMG file that can be downloaded directly from the Apple website.
Again, if you are using Homebrew, you need to update it. You don’t need to uninstall and again install Homebrew on Mac.
NOTE: If you are using Homebrew, try updating it after re-installing Command Line tools.
Credits: Git not working after macOS Update
This just happened to me after upgrading my Macbook pro to macOS Ventura. After the upgrade, the git command line stopped working with showing up this message.
xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun
Running brew upgrade fixed git command line.
As of September 13, 2022, I had a similar issue after upgrading my MBP M1 to Monterey 12.6, and although I followed some of the answers, my Mac kept prompting me with a dialogue to install git as a developer tool. Every time that the installation was completed, I was prompted to the same dialogue.
Finally, I had to do a combination of all the answers to make it work:
First remove the command line tool:
sudo rm -rf /Library/Developer/CommandLineTools
Reinstall the xcode-select:
xcode-select --install
The above will prompt you with a dialogue to confirm the installation.
Set path to the Xcode folder with following:
sudo xcode-select -switch /Library/Developer/CommandLineTools
I observed in the Catalina privacy setting if Xcode not added in Full access disk I will get the same error, Xcode does not run scripts. Add your Xcode the same as in the attached image. After that clean build and run. Hope so it will work.
For me, I didn't have xcode installed (on Mojave OS). I went to the App Store on my mac and downloaded it, then went back to terminal and typed git and hit enter, then it worked.
I found that my version of Xcode was too outdated and installing command-line-tools wasn't helping. Here's what I did:
I completely uninstalled the outdated XCode
I reinstalled the most recent XCode from the app store
That was all. Git was restored.
This works for me
sudo xcode-select --reset
sudo xcodebuild -license
X-code must be installed.
For me, for the macos Ventura 13.0 user installing this software helped
I wasn't able to run any xcode install commands, git was not working at all.
You can find this package here
https://developer.apple.com/download/all/
For those using Catalina and Xcode-beta:
sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer
I updated my macOS yesterday,from macOS Mojave(10.14.6)to macOS Catalina(10.15.7),I was executing "git" command in my project. I get same errors。
run:
xcode-select --install
After Updating macOS to Monterey (12.3) from BigSur getting such issue
only worked-
xcode-select --install
Done!
With previous app development experience, may I say with confidence that the git version delivered with apple always create problems. So the sooner you get rid of apple git the better, so may I suggest:
brew uninstall git
brew update
brew install git
# which git
/usr/local/bin/git
For me It happened after Mac OS update to Mojave and git was not functioning in Intellij
Solution:-
Go to Settings, then File | Settings | Version Control | Git and edit Path to Git executable field which is /usr/local/bin/git
I had the same issue and couldn't use SVN after the update,
Just in case if doing xcode-select --install didn't fix the issue,
You might see,
svn: error: The subversion command line tools are no longer provided by Xcode.
Refer : https://developer.apple.com/documentation/macos_release_notes/macos_catalina_10_15_release_notes
Try installing the svn by brew
brew install svn
This should get you going.
For Ventura 13.1
I updated from macOS BigSur to Ventura 13.1 (Jan 2023). I only installed Xcode on the apple store and it worked for me.

How to resolve Unmet dependencies issue in Ubuntu 14.04

Recently, I tried to download the Google Chrome in Ubuntu. But I couldn't installed it correctly. Now I am getting a red minus sign in upper right corner, stating that I have unmet dependencies. I tried to run the following command:
apt-get install -f
I got this output:
E: Could not open lock file /var/lib/dpkg/lock - -open(13: Permission denied)
E:Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Please help. I am new to Ubuntu. so please explain what exactly I did wrong initially, and what is this all about?
The error you are getting is common for one of two reasons:
You didn't run the command as root (should be sudo apt-get install -f google-chrome)
You have an updater open somewhere else (hence the lock).
I would try the command above with all other programs closed if that doesn't work see this post on the Ubuntu SO (which is where you should post your Ubuntu questions from now on, BTW) on how to install Google Chrome.
Good luck!

How to get latest cmake version from CentOS 6.5

Is there a good way to install latest cmake version from CentOS 6.5?
I'm doing yum install cmake but it's giving me 2.6.4 from base repo which I don't want.
I tried installing cmake28 but the problem is that when I try to do ./configure it throws an error saying cmake is not available.
rpm -Uv ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/Application:/Geo/CentOS_6/x86_64/cmake-3.0.0-143.1.x86_64.rpm
Hope this helps to somebody. If you have any problems with it let me know. Have fun.
I know this is an ancient question, but I got here by google searching and wanted to share what I knew so far.
when you sudo yum install cmake28, you get a /usr/bin/cmake28 binary on your machine. You can setup a symlink to make your configure script work via the following:
sudo ln -s /usr/bin/cmake28 /usr/bin/cmake
Not sure why the cmake28 package doesn't do this for you.
Well, after looking at the tutorial CMake gives on their website, it says download this and after that you have too type "./bootstrap" followed by "make" and "make install".
If you get any errors type "sudo" in front of all the said commands. If that doesn't work, your best bet would be too login to the root account by typing "su" and the root password following that.
If you already have cmake installed you should either follow the steps cmake offers on their website or try the command "sudo yum remove cmake".

Yi failed to install

Would love to try the Yi editor, but unfortunately, it keeps failing during the installation.
First I get:
> cabal install yi
haskell-src-exts-1.13.0 failed during the configure step. The exception was:
ExitFailure 1
yi-0.6.5.0 depends on haskell-src-exts-1.13.0 which failed to install.
then when I try to install haskell-src-exts I am stumped by this:
setup: The program happy version >=1.17 is required but it could not be found.
cabal: Error: some packages failed to install:
haskell-src-exts-1.13.0 failed during the configure step. The exception was:
ExitFailure 1
installing happy cabal install happy (version 1.18.9 at that) does not help, as it still produces the error above!
I am trying to get this going on ArchLinux. Also, Windows installation didn't work either.
Any ideas?
cabal installs programs to ~/.cabal/bin (on Unix; no idea about Windows) if they are not already installed, and does not warn you to add it to your $PATH; it also (unless you have the latest unreleased version, built from its repo) does not know that it has done so, because it only tracks libraries, not executables. You will need to manually add $HOME/.cabal/bin to your $PATH so that it will be found
(edit be pedantic)
On ubuntu I installed happy using apt-get instead of through cabal, which worked.
Here is what I have done to install Yi with GTK+ under ArchLinux.
First, I tried cabal install yi and I got the same error as you.
To solve this error, I installed happy using this command:
yaourt -S happy
Then, I got another error because the alex package was needed. So, I installed it with:
yaourt -S alex
After that, I got some errors because of gtk2hs packages missing. I installed them with:
yaourt -S haskell-cairo haskell-glib haskell-gtk haskell-pango
Finally, I was able to install Yi with:
cabal install yi -fvty -fpango
I had the same issue in installing hprotoc which has a dependency on haskell-src-exts. The issue I believe was that I was running the sudo command which was modifying the path. When I took the recommended action in the following Q&A, it resolved the issue of finding happy.
sudo changes PATH - why?
Leksah uses Yi as a component, try installing leksah instead. I had similar error messages at one point, the haskell-src-exts error is due to running out of memory. Reboot your computer, have nothing else running except the console, and try again.

Resources