| Summary: | python-flask, python-werkzeug. No module named zlib | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Nikita <nikita_23k> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | buildroot |
| Priority: | P2 | ||
| Version: | 2015.02 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
Nikita
2015-03-24 20:43:41 UTC
Are you sure you have done a clean rebuild after adding flask? The symptoms sounds as if you have first built python (without zlib support) and then afterwards added flask.
I did a test here, and it works:
# python
Python 2.7.9 (default, Apr 10 2015, 23:10:24)
[GCC 4.8.3 20140320 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from flask import Flask
>>>
(In reply to comment #1) > Are you sure you have done a clean rebuild after adding flask? The symptoms > sounds as if you have first built python (without zlib support) and then > afterwards added flask. > > I did a test here, and it works: > > # python > Python 2.7.9 (default, Apr 10 2015, 23:10:24) > [GCC 4.8.3 20140320 (prerelease)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> from flask import Flask > >>> Yes. The problem occurs when the language is not en_US. When I do >export LC_ALL=en_US.UTF-8 >export LANG=en_US.UTF-8 >export LANGUAGE=en_US.UTF-8 all is well. My var is LANG=ru_RU.UTF-8 I am using a fr_FR.UTF-8 system. I've built the following defconfig: BR2_arm=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-arm-full-2015.02.tar.bz2" BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_18=y BR2_TOOLCHAIN_EXTERNAL_INET_IPV6=y BR2_TOOLCHAIN_EXTERNAL_LOCALE=y # BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set BR2_TOOLCHAIN_EXTERNAL_INET_RPC=y BR2_TOOLCHAIN_EXTERNAL_CXX=y BR2_PACKAGE_PYTHON=y BR2_PACKAGE_PYTHON_FLASK=y And Flask can be imported just fine: Welcome to Buildroot buildroot login: root # python >>> from flask import Flask >>> So I cannot reproduce the bug reported by Nikita. |