keiffster / program-y

Python 3.x based AIML 2.0 Chatbot interpreter, framework, related programs and knowledge files
https://keiffster.github.io/program-y/
Other
348 stars 138 forks source link

Install tries to build its own copy of OpenSSL and fails. #197

Closed John-Nagle closed 5 years ago

John-Nagle commented 5 years ago

Issue tracker is ONLY used for reporting bugs. NO NEW FEATURE ACCEPTED! Use stackoverflow for supporting issues.

Expected Behavior

Install completes.

Current Behavior

Install fails while running the build process for wheel "cryptography".

    building '_openssl' extension
    creating build/temp.linux-x86_64-3.5/build
    creating build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c build/temp.linux-x86_64-3.5/_openssl.c -o build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5/_openssl.o -Wconversion -Wno-error=sign-conversion
    build/temp.linux-x86_64-3.5/_openssl.c:498:30: fatal error: openssl/opensslv.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Looks like it has an unsatisfied dependency.

Why is a chatterbot trying to build its own version of OpenSSL, anyway?

Possible Solution

Steps to Reproduce

  1. Get Current Ubuntu 16.04 LTS.
  2. Do prerequisites per https://github.com/keiffster/program-y/wiki/Install_Linux_PreReqs
  3. pip3 install programy

Context (Environment)

Detailed Description

Possible Implementation

keiffster commented 5 years ago

That’s weird, it could be pulled down because the web client and all the rest based clients now use Https

I’ve not seen that before on an Ubuntu install which I use on multiple AWS installs.

I’ll run a clean install using your version and see what gives

John-Nagle commented 5 years ago

Thanks. It looks like it might want the dev version of SSL installed, with more headers. I don't have that installed. But why is it recompiling _openssl.c anyway?

keiffster commented 5 years ago

Build a VM with 16.04 from scratch and Program-Y installed fully with no issues around ssl headers

Can you send me the pip3 output so that I can see what is happening ?

John-Nagle commented 5 years ago

I updated Ubuntu 16.04 LTS to its latest version and tried

pip3 install programy

which succeeded. It still builds "cryptography" as a wheel, but I'm not seeing C compiles.

buildprogramy.txt

So now it works.