Hi, pip3 install failing with following.. how to f...
# troubleshooting
s
Hi, pip3 install failing with following.. how to fix it? thx! /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h372: error: architecture not supported   #error architecture not supported    ^   fatal error: too many errors emitted, stopping now [-ferror-limit=]   1 warning and 20 errors generated.   error: command 'clang' failed with exit status 1   ---------------------------------------- ERROR: Command errored out with exit status 1: /Users/sergeimaltchenko/Code/meltano-projects/.venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/vc/9l7w5mq97bj2fw6s3rbkc9300000gn/T/pip-install-4g84uwko/watchdog_49e42500209c46129dc257ec00663522/setup.py'"'"'; file='"'"'/private/var/folders/vc/9l7w5mq97bj2fw6s3rbkc9300000gn/T/pip-install-4g84uwko/watchdog_49e42500209c46129dc257ec00663522/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/vc/9l7w5mq97bj2fw6s3rbkc9300000gn/T/pip-record-jm7t6i60/install-record.txt --single-version-externally-managed --compile --install-headers /Users/sergeimaltchenko/Code/meltano-projects/.venv/include/site/python3.8/watchdog Check the logs for full command output. (.venv)
a
Hi, @sergei_maltchenko. Apologies if this is a red herring, but are you on M1 by chance? There are potentially some outstanding issues with the MacBook M1 processor and it’s python compatibility.
s
Hi @aaronsteers, don't think so (also I am new to Mac), here is screenshot
message has been deleted
a
@sergei_maltchenko - Thanks for confirming. You are correct - you have the Intel-based chip and not the M1, so those M1 issues should not pertain to your situation. Can you tell me if you are running directly from
pip3
or via
meltano add
? It is best to install with
meltano add
, since that ensures proper environment isolation and it registers the plugin with meltano. If you are still stuck, also, can you provide the exact install command(s) you’ve tried.
In case it helps, your error looks possibly related to this issue or this one. Some users have suggested installing and using python with brew instead of the default-installs Mac python.
s
@aaronsteers - I am using commands provided at the main meltano page (I have python 3.8)
Copy code
# For these examples to work, ensure that:
# - you are running Linux or macOS
# - Python 3.6, 3.7 or 3.8 has been installed
python3 --version

# Create directory for Meltano projects
mkdir meltano-projects
cd meltano-projects

# Create and activate virtual environment
python3 -m venv .venv
source .venv/bin/activate

# Install Meltano
pip3 install meltano
failing at the last step...
@aaronsteers fixed after I ran:
Copy code
export ARCHFLAGS="-arch x86_64"
pip install watchdog
thx!
a
Wow - well, I’m glad it resolved but geez, that’s very persnickety issue. Which tap is this again?
s
@aaronsteers yeah, did even get to taps, it was main meltano install >
Copy code
pip3 install meltano
a
Oh! So not even at the step of installing taps. That’s a bummer. Thanks for letting me know. I think for this reason many people have changed their default python to a brew-managed one.
j
I just wanted to provide a slightly modified solution for this issue. I have the exact same machine as Sergei. I prefer to use Anaconda for my environment manager and pyenv for my Python installations (https://opensource.com/article/19/5/python-3-default-mac). I had the exact same error as Sergei but after running
pip install watchdog
, the
pip3 install meltano
finally worked.