# Fatal error Unable to import automationhat python library

**URL:** <https://discourse.nodered.org/t/fatal-error-unable-to-import-automationhat-python-library/24326>\
**Category:** General\
**Created:** [6 April 2020 15:18 UTC](https://discourse.nodered.org/t/fatal-error-unable-to-import-automationhat-python-library/24326 "2020-04-06T15:18:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drikos\_pag](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@drikos\_pag](https://discourse.nodered.org/u/drikos_pag)\
**Post date:** [6 April 2020 15:18 UTC](https://discourse.nodered.org/t/fatal-error-unable-to-import-automationhat-python-library/24326/1 "2020-04-06T15:18:32Z")

</div>

Hello to everybody,

I would like to give me your help regarding one issue that I have.

I have installed the node red to my Mac and when I tried to start today the node-red I have the following error:

6 Apr 18:05:59 - [info] Starting flows

6 Apr 18:05:59 - [error] [serial out:14c18f45.aae2b9] missing serial config

6 Apr 18:05:59 - [error] [serial out:f511973f.bc0fc] missing serial config

6 Apr 18:05:59 - [error] [serial out:2e1815b0.1769ea] missing serial config

6 Apr 18:05:59 - [error] [serial out:45d2c78e.b66068] missing serial config

6 Apr 18:05:59 - [info] Started flows

6 Apr 18:05:59 - [red] Uncaught Exception:

_**6 Apr 18:05:59 - Error: FATAL(Unknown Device): Unable to import automationhat python library**_

This problem probably occurred when I made the upgrade on the python.

**I tried to install it again but I have the following error:**

Andreass-MacBook-Pro:~ andreaspagkos$ sudo pip3 install automationhat  
WARNING: The directory '/Users/andreaspagkos/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.  
WARNING: The directory '/Users/andreaspagkos/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.  
Collecting automationhat  
Downloading [https://files.pythonhosted.org/packages/1c/15/97f2198707df3007e55c2a6e22dcc26b1d18a59552bcda3115de7b10dbdc/automationhat-0.2.2.tar.gz](https://files.pythonhosted.org/packages/1c/15/97f2198707df3007e55c2a6e22dcc26b1d18a59552bcda3115de7b10dbdc/automationhat-0.2.2.tar.gz)  
Collecting RPi.GPIO (from automationhat)  
Downloading [https://files.pythonhosted.org/packages/cb/88/d3817eb11fc77a8d9a63abeab8fe303266b1e3b85e2952238f0da43fed4e/RPi.GPIO-0.7.0.tar.gz](https://files.pythonhosted.org/packages/cb/88/d3817eb11fc77a8d9a63abeab8fe303266b1e3b85e2952238f0da43fed4e/RPi.GPIO-0.7.0.tar.gz)  
Collecting sn3218 (from automationhat)  
Downloading [https://files.pythonhosted.org/packages/0c/b2/67284ad229aeed419b14b28d49247e983141b5e9dd86525a868d9d24da02/sn3218-1.2.7.tar.gz](https://files.pythonhosted.org/packages/0c/b2/67284ad229aeed419b14b28d49247e983141b5e9dd86525a868d9d24da02/sn3218-1.2.7.tar.gz)  
Collecting ST7735 (from automationhat)  
Downloading [https://files.pythonhosted.org/packages/7f/78/843417869bb2b1d7e42b5f97a76850f87e45ba4e610bd0e55b8fc7757267/ST7735-0.0.4-py3-none-any.whl](https://files.pythonhosted.org/packages/7f/78/843417869bb2b1d7e42b5f97a76850f87e45ba4e610bd0e55b8fc7757267/ST7735-0.0.4-py3-none-any.whl)  
Collecting spidev\>=3.4 (from ST7735-\>automationhat)  
Downloading [https://files.pythonhosted.org/packages/fb/14/4c2e1640f0cb04862c76d9d76ed7c945b0f67876e503ac02f7f675fe86a0/spidev-3.4.tar.gz](https://files.pythonhosted.org/packages/fb/14/4c2e1640f0cb04862c76d9d76ed7c945b0f67876e503ac02f7f675fe86a0/spidev-3.4.tar.gz)  
Installing collected packages: RPi.GPIO, sn3218, spidev, ST7735, automationhat  
Running setup.py install for RPi.GPIO ... error  
ERROR: Command errored out with exit status 1:  
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-s\_9vd4e8/RPi.GPIO/setup.py'"'"'; **file** ='"'"'/private/tmp/pip-install-s\_9vd4e8/RPi.GPIO/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/tmp/pip-record-0v65omvl/install-record.txt --single-version-externally-managed --compile  
cwd: /private/tmp/pip-install-s\_9vd4e8/RPi.GPIO/  
Complete output (16 lines):  
running install  
running build  
running build\_py  
creating build  
creating build/lib.macosx-10.9-x86\_64-3.8  
creating build/lib.macosx-10.9-x86\_64-3.8/RPi  
copying RPi/ **init**.py -\> build/lib.macosx-10.9-x86\_64-3.8/RPi  
creating build/lib.macosx-10.9-x86\_64-3.8/RPi/GPIO  
copying RPi/GPIO/ **init**.py -\> build/lib.macosx-10.9-x86\_64-3.8/RPi/GPIO  
running build\_ext  
building 'RPi.\_GPIO' extension  
creating build/temp.macosx-10.9-x86\_64-3.8  
creating build/temp.macosx-10.9-x86\_64-3.8/source  
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86\_64 -g -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c source/py\_gpio.c -o build/temp.macosx-10.9-x86\_64-3.8/source/py\_gpio.o  
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun  
error: command 'gcc' failed with exit status 1  
----------------------------------------  
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-s\_9vd4e8/RPi.GPIO/setup.py'"'"'; **file** ='"'"'/private/tmp/pip-install-s\_9vd4e8/RPi.GPIO/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/tmp/pip-record-0v65omvl/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.  
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.  
You should consider upgrading via the 'pip install --upgrade pip' command.

I'm wondering how I can delete the from the pallet the Automation hat ?

Thank you for your time.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 April 2020 15:47 UTC](https://discourse.nodered.org/t/fatal-error-unable-to-import-automationhat-python-library/24326/2 "2020-04-06T15:47:32Z")

</div>

Depending on the version of NR, you could start NR in `safe` mode  
`node-red --safe`  
and remove all occurances of the node and then in the palette manager, remove the node.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 June 2020 15:47 UTC](https://discourse.nodered.org/t/fatal-error-unable-to-import-automationhat-python-library/24326/3 "2020-06-05T15:47:38Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
