Skip to content
This repository was archived by the owner on Nov 12, 2019. It is now read-only.
This repository was archived by the owner on Nov 12, 2019. It is now read-only.

Failed pip Install of Adafruit_Python_DHT on Raspbian Stretch #99

Closed
@TheCedarPrince

Description

@TheCedarPrince

Hey all,

I am having an issue installing the Adafruit Python DHT library via pip3 on the Raspbian Stretch (specs below).

Basically, I am trying to install it via pip and I am getting a compilation error at "arm-linux-gnueabihf-gcc" saying that some drivers, which should have been built during install, are not there.

I was able to successfully install this from a direct install (e.g. clone the repository and run 'sudo python3 set_up.py install'). My suspicion is something is up with the build-essential package, but I have updated that package as well as python-dev per Adafruit's recommendations.

Any thoughts of what could be going on?

~ TheCedarPrince

Specs:

  • Platform/operating system (i.e. Raspberry Pi with Raspbian operating system,
    Windows 32-bit, Windows 64-bit, Mac OSX 64-bit, etc.):
    Raspberry Pi 3 B with Raspbian Stretch

  • Python version (run python -version or python3 -version): python3.5.3

  • Error message you are receiving, including any Python exception traces:

The main suspect lines are these:

'arm-linux-gnueabihf-gcc: error: source/_Raspberry_Pi_2_Driver.c: No such file or directory'
'arm-linux-gnueabihf-gcc: fatal error: no input files compilation terminated.'

The rest of the dump is here:

https://pastebin.com/9CazaEDk

  • List the steps to reproduce the problem below (if possible attach code or commands
    to run):

I executed the following on my RPi:

'sudo apt-get install build-essential'
'sudo apt-get install python-dev'
'pip3 install Adafruit_Python_DHT'

I also tried the following pip commands to no avail:

'pip install Adafruit_Python_DHT'
'sudo pip3 install Adafruit_Python_DHT'
'sudo pip install Adafruit_Python_DHT'

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions