install yotta error

Questions and discussion about running MicroPython on a micro:bit board.
Target audience: MicroPython users with a micro:bit.
Post Reply
shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

install yotta error

Post by shaoziyang » Sat Oct 08, 2016 4:47 am

When I install yotta in ubuntu, it get error as below. How to solve this problem?
building '_openssl' extension
creating build/temp.linux-i686-3.4/build
creating build/temp.linux-i686-3.4/build/temp.linux-i686-3.4
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c build/temp.linux-i686-3.4/_openssl.c -o build/temp.linux-i686-3.4/build/temp.linux-i686-3.4/_openssl.o
build/temp.linux-i686-3.4/_openssl.c:12:24: fatal error: pyconfig.h: No such file or directory
# include <pyconfig.h>
^
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-5mlym1r5/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-d2s3mvxy-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-5mlym1r5/cryptography/

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: install yotta error

Post by deshipu » Sat Oct 08, 2016 11:54 am

I think you need python-devel installed.

shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

Re: install yotta error

Post by shaoziyang » Sat Oct 08, 2016 1:30 pm

deshipu wrote:I think you need python-devel installed.
I have try to install last version python-dev 3.6.0b1, get same result.

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: install yotta error

Post by deshipu » Sat Oct 08, 2016 1:32 pm

Actually, that file is part of libpython, which should be installed together with python itself (see http://packages.ubuntu.com/search?searc ... l&arch=any). Are you sure you have the correct version of python installed in your system?

shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

Re: install yotta error

Post by shaoziyang » Sat Oct 08, 2016 2:46 pm

deshipu wrote:Actually, that file is part of libpython, which should be installed together with python itself (see http://packages.ubuntu.com/search?searc ... l&arch=any). Are you sure you have the correct version of python installed in your system?
Yes, I have install libpython, and I install both python 2.7.12 and python 3.5.

Post Reply