-
-
Notifications
You must be signed in to change notification settings - Fork 197
WARNING: The Python 'six' package not found. #3534
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
Comments
@obiwankenoobi what is your OS perhaps El Capitan? If so try this solution
|
Hi @obiwankenoobi, Can you please try to execute |
my OS is High Sierra 10.13.4 and
|
Hi @obiwankenoobi, Can you please try to reinstall it?
|
|
I uninstalled NativeScript and reinstalled it and those are the packaged I missing `There seem to be issues with your configuration. ✔ Getting NativeScript components versions information... ✖ Component tns-core-modules is not installed. ✖ Component tns-android is not installed. ✖ Component tns-ios is not installed. ✔ Your ANDROID_HOME environment variable is set and points to correct directory. ✖ WARNING: The Python 'six' package not found. ` dont know what to do |
Hi @obiwankenoobi,
|
yeah but I can't |
Can you try to execute |
`$ pip install -U six $ tns run ios |
Just guesting, but it might be related two more than one python available on the machine.
@obiwankenoobi If I'm in this cause this is what I'll try:
|
Just reproduced the issue on brand new macOS High Sierra. Here is what happens: Here is how I was able to workaround it:
|
Hi @obiwankenoobi, Do you have the chance to try the above suggestion? |
The solution proposed by dtopuzov fixes the issue on MacOS High Sierra 10.13.4 |
@Fatme May be we can also consider doing this check only when user try to use the command that need this package. |
Also works on 10.13.6 plus I had to first install pip. then, only The first command failed on ownership and lack of cache setting. Without this, Sidekick failed to instantiate it's user interface. |
I had the same issue. I solved it with listing modules (Python 2.7.15)
I did after that
|
I am just installing local files to build local NS projects. Output tns doctor MacBook-Pro-7:TestApp augustopissarra$ tns doctor There seem to be issues with your configuration. I am using Mac OS 10.14.1 (Mojave) I have tried all of the above, none solved the issue. |
After many trials and errors, not sure if it will fix again but, I used the following command:
I removed the sudo to check the version. Latest is 1.11.0. |
I had to run the following to fix the issue
|
Solution for Mac OS Catalina. You can do this for your current termincal instance with: OR add it permanently to your See: |
I couldn't get NativeScript to switch to my Python 3 installation, and my system Python 2 framework didn't have pip.
|
I have run a few commands, and after run this "python -m pip install --upgrade six", I tried again, and it works. Maybe you can try run this first to see if if fixed or not. |
for me help. |
I tried what you explain but nothing changes. I suspect NS to use sh (where aliases are not configured) instead of zsh. If you have any trick for me, I'm taking it! ✖ WARNING: Couldn't retrieve installed python packages. ✖ WARNING: The Python 'six' package not found. Your environment is not configured properly and you will not be able to execute local builds. |
@phenric what are the symptoms, errors? When you run any Now there is an issue with the system installed python I noticed, it prompts to install additional command line tools, but then does nothing. I shared a workaround a few times on discord (and one of the github discussions) which should work: brew install python
sudo ln -s -f $(which python3) /usr/local/bin/python
# -s - symbolic
# -f - force - overrides existing links if necessary This may not work if somehow the freshly installed python isn't the default (brew will usually print a warning/instructions if that's the case), but essentially you need to create a symlink in |
Hi @rigor789 Thank you for your time. I use the command provided in the guide |
Not quite sure why the system installed python refuses to work when being symlinked - I'm guessing they are doing some funky invocation checking on boot... |
@rigor789 Thank you for the time you gave to the community. |
I was having the same issue as @phenric, ended up installing python through brew and symlinking to the path given by the brew install as well. For me the whole process looked like this:
Hope this helps someone, spent way too much time on just this issue. |
Looks like tns is trying to run python as For me it started working after I aliased python and pip to python3 and pip3, I also had to run @rigor789's symlink stuff for both python and pip. |
On MacOS Ventura (13.1) I had to create the following symlink to fix this issue:
Here's the output of
|
Can't believe I spent a whole day trying to figure this out lol Anyways, I'll post what worked for me here. So, I linked python 3.11 (brew installation) to python Then, downloaded the get-pip.py file and run it (Thank you @msisinni) Then, I simply installed six After a ton of trial and error this was what worked for me, hope it helps ^^ |
Starting with 8.5 - it should no longer be necessary to alias |
This isn't correct. I also experienced the same issue for |
I was getting the same error when running ✖ WARNING: The Python 'six' package not found. |
that helps, thanks! |
From @obiwankenoobi on April 18, 2018 11:52
after installing NativeScript on my macos using
ruby -e "$(curl -fsSL https://www.nativescript.org/setup/mac)"
I ran into error while typing
tns doctor
which tells meWARNING: The Python 'six' package not found.
and when I trying to install six bypip install six
I get the message :
Requirement already satisfied: six in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (1.4.1)
so there issix
installed but yet it wont let me move on because of itCopied from original issue: NativeScript/NativeScript#5699
The text was updated successfully, but these errors were encountered: