* [Buildroot] [Bug 7971] New: python-flask, python-flask. No module named zlib
@ 2015-03-24 20:43 bugzilla at busybox.net
2015-03-24 20:47 ` [Buildroot] [Bug 7971] " bugzilla at busybox.net
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2015-03-24 20:43 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=7971
Summary: python-flask, python-flask. No module named zlib
Product: buildroot
Version: 2015.02
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: nikita_23k at mail.ru
CC: buildroot at uclibc.org
Estimated Hours: 0.0
Target: raspberry pi 1
Host: Linux Mint 17.1
I'm trying to run a web-server using python-flask. A similar problem with
http://git.buildroot.net/buildroot/commit/?id=82e23f15a11c2cd66d0f6c6397906663c9c9e1d7
My steps:
1. cd /home/n1/test
2. download buildroot
3. cd buildroot
4. make nconfig # add nano, python (2.*), python-flask (zlib added auto)
,wchar, etc (for rpi)
6. make
7. upload to sd card
When I run the project (python-flask) on rpi:
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
app.run()
I get an error:
traceback (most recent call last):
File "test.py", line 1 in, in <module>
from flask import Flask
File
"home/n1/test/buildroot/output/target/usr/lib/python2.7/site-packeges/flask/__init__.py,
line 17, in <module>
File
"home/n1/test/buildroot/output/target/usr/lib/python2.7/site-packeges/werkzeug/__init__.py,
line 154, in <module>
...
ImportError: No module named zlib
I tried to compile with the help of https://github.com/gamaral/rpi-buildroot ,
but got the same error. My bug report:
https://github.com/gamaral/rpi-buildroot/issues/34
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [Bug 7971] python-flask, python-flask. No module named zlib
2015-03-24 20:43 [Buildroot] [Bug 7971] New: python-flask, python-flask. No module named zlib bugzilla at busybox.net
@ 2015-03-24 20:47 ` bugzilla at busybox.net
2015-03-24 20:48 ` [Buildroot] [Bug 7971] python-flask, python-werkzeug. " bugzilla at busybox.net
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2015-03-24 20:47 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=7971
Nikita <nikita_23k@mail.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P5 |P2
Severity|normal |major
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [Bug 7971] python-flask, python-werkzeug. No module named zlib
2015-03-24 20:43 [Buildroot] [Bug 7971] New: python-flask, python-flask. No module named zlib bugzilla at busybox.net
2015-03-24 20:47 ` [Buildroot] [Bug 7971] " bugzilla at busybox.net
@ 2015-03-24 20:48 ` bugzilla at busybox.net
2015-04-10 21:16 ` bugzilla at busybox.net
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2015-03-24 20:48 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=7971
Nikita <nikita_23k@mail.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|python-flask, python-flask. |python-flask,
|No module named zlib |python-werkzeug. No module
| |named zlib
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [Bug 7971] python-flask, python-werkzeug. No module named zlib
2015-03-24 20:43 [Buildroot] [Bug 7971] New: python-flask, python-flask. No module named zlib bugzilla at busybox.net
2015-03-24 20:47 ` [Buildroot] [Bug 7971] " bugzilla at busybox.net
2015-03-24 20:48 ` [Buildroot] [Bug 7971] python-flask, python-werkzeug. " bugzilla at busybox.net
@ 2015-04-10 21:16 ` bugzilla at busybox.net
2015-04-19 12:53 ` bugzilla at busybox.net
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2015-04-10 21:16 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=7971
Peter Korsgaard <jacmet@uclibc.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Peter Korsgaard <jacmet@uclibc.org> 2015-04-10 21:16:09 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
>>>
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [Bug 7971] python-flask, python-werkzeug. No module named zlib
2015-03-24 20:43 [Buildroot] [Bug 7971] New: python-flask, python-flask. No module named zlib bugzilla at busybox.net
` (2 preceding siblings ...)
2015-04-10 21:16 ` bugzilla at busybox.net
@ 2015-04-19 12:53 ` bugzilla at busybox.net
2015-04-19 12:54 ` bugzilla at busybox.net
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2015-04-19 12:53 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=7971
--- Comment #2 from Nikita <nikita_23k@mail.ru> 2015-04-19 12:53:42 UTC ---
(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
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [Bug 7971] python-flask, python-werkzeug. No module named zlib
2015-03-24 20:43 [Buildroot] [Bug 7971] New: python-flask, python-flask. No module named zlib bugzilla at busybox.net
` (3 preceding siblings ...)
2015-04-19 12:53 ` bugzilla at busybox.net
@ 2015-04-19 12:54 ` bugzilla at busybox.net
2015-04-20 22:00 ` bugzilla at busybox.net
2015-06-03 1:09 ` bugzilla at busybox.net
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2015-04-19 12:54 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=7971
Nikita <nikita_23k@mail.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [Bug 7971] python-flask, python-werkzeug. No module named zlib
2015-03-24 20:43 [Buildroot] [Bug 7971] New: python-flask, python-flask. No module named zlib bugzilla at busybox.net
` (4 preceding siblings ...)
2015-04-19 12:54 ` bugzilla at busybox.net
@ 2015-04-20 22:00 ` bugzilla at busybox.net
2015-06-03 1:09 ` bugzilla at busybox.net
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2015-04-20 22:00 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=7971
--- Comment #3 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2015-04-20 22:00:15 UTC ---
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.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [Bug 7971] python-flask, python-werkzeug. No module named zlib
2015-03-24 20:43 [Buildroot] [Bug 7971] New: python-flask, python-flask. No module named zlib bugzilla at busybox.net
` (5 preceding siblings ...)
2015-04-20 22:00 ` bugzilla at busybox.net
@ 2015-06-03 1:09 ` bugzilla at busybox.net
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2015-06-03 1:09 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=7971
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2015-06-03 01:09:24 UTC ---
Fixed by
http://git.buildroot.net/buildroot/commit/package/python?id=238bf198cf4f31a3301b81a924d5e22044945955
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-06-03 1:09 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-24 20:43 [Buildroot] [Bug 7971] New: python-flask, python-flask. No module named zlib bugzilla at busybox.net
2015-03-24 20:47 ` [Buildroot] [Bug 7971] " bugzilla at busybox.net
2015-03-24 20:48 ` [Buildroot] [Bug 7971] python-flask, python-werkzeug. " bugzilla at busybox.net
2015-04-10 21:16 ` bugzilla at busybox.net
2015-04-19 12:53 ` bugzilla at busybox.net
2015-04-19 12:54 ` bugzilla at busybox.net
2015-04-20 22:00 ` bugzilla at busybox.net
2015-06-03 1:09 ` bugzilla at busybox.net
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.