Discussion:
Installation for python3 on Debian
s***@public.gmane.org
2014-08-17 14:32:10 UTC
Permalink
Hi,
It's mentioned in the changelogs
<http://code.google.com/p/guiqwt/wiki/ChangeLog> that python3 is supported
by guiqwt since version 2.3.0. I guess the documentation lags somewhat
since python3 it's not yet mentioned as a dependency in the documentation
<https://pythonhosted.org/guiqwt/installation.html> (for v.2.2.1).

Anyway, there is no package for guiqwt and python3 in the Debian
repositories. There is python-guiqwt
<https://packages.debian.org/search?suite=all&searchon=names&keywords=guiqwt>
ver 2.3.1 in testing but not a python3-guiqwt package.

What would be the recommended way to install guiqwt for python3 on Debian?
Or can I in any way make use of my current installation (guiqwt ver 2.3.1
for python 2.x)? Do I need to build from source? The instructions on the
installation page is a little short for me.

Any help is highly appreciated!
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
s***@public.gmane.org
2014-08-18 18:57:05 UTC
Permalink
Hi,
Some more info. I now tried to install from the downloaded package from the
command prompt. Instructions says "python setup.py build install" but that
seemed somewhat missleading since that would imply pyhton2.7 (also
installed). So I tried "python3 setup.py build install". This is the failed
result

$ python3 setup.py build install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler
options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler
options
running build_src
build_src
building extension "guiqwt.histogram2d" sources
building extension "guiqwt.mandelbrot" sources
building extension "guiqwt._scaler" sources
build_src: building npy-pkg config files
running build_py
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
building 'guiqwt.histogram2d' extension
compiling C sources
C compiler: x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -
Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security
-D_FORTIFY_SOURCE=2 -fPIC

compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include
-I/usr/lib/python3/dist-packages/numpy/core/include
-I/usr/include/python3.4m -c'
x86_64-linux-gnu-gcc: src/histogram2d.c
x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-fstack-
protector-strong’
x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-fstack-
protector-strong’
error: Command "x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -g -fstack-protector-strong -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC
-I/usr/lib/python3/dist-packages/numpy/core/include
-I/usr/lib/python3/dist-packages/numpy/core/include
-I/usr/include/python3.4m -c src/histogram2d.c -o
build/temp.linux-x86_64-3.4/src/histogram2d.o" failed with exit status 1


Any idea what wen't wrong and what the cure would be? Seems something needs
correction in histogram2d.c or is it false alaram?
Post by s***@public.gmane.org
Hi,
It's mentioned in the changelogs
<http://code.google.com/p/guiqwt/wiki/ChangeLog> that python3 is
supported by guiqwt since version 2.3.0. I guess the documentation lags
somewhat since python3 it's not yet mentioned as a dependency in the
documentation <https://pythonhosted.org/guiqwt/installation.html> (for
v.2.2.1).
Anyway, there is no package for guiqwt and python3 in the Debian
repositories. There is python-guiqwt
<https://packages.debian.org/search?suite=all&searchon=names&keywords=guiqwt>
ver 2.3.1 in testing but not a python3-guiqwt package.
What would be the recommended way to install guiqwt for python3 on Debian?
Or can I in any way make use of my current installation (guiqwt ver 2.3.1
for python 2.x)? Do I need to build from source? The instructions on the
installation page is a little short for me.
Any help is highly appreciated!
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Todd
2014-08-19 11:43:13 UTC
Permalink
You are using python 3.4. Python 3.4 had some backwards-incompatible
changes, so if I had to guess I would suspect that is the problem. I am
not sure, though.
Post by s***@public.gmane.org
Hi,
Some more info. I now tried to install from the downloaded package from
the command prompt. Instructions says "python setup.py build install" but
that seemed somewhat missleading since that would imply pyhton2.7 (also
installed). So I tried "python3 setup.py build install". This is the failed
result
$ python3 setup.py build install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler
options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler
options
running build_src
build_src
building extension "guiqwt.histogram2d" sources
building extension "guiqwt.mandelbrot" sources
building extension "guiqwt._scaler" sources
build_src: building npy-pkg config files
running build_py
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
building 'guiqwt.histogram2d' extension
compiling C sources
C compiler: x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -
Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security
-D_FORTIFY_SOURCE=2 -fPIC
compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include
-I/usr/lib/python3/dist-packages/numpy/core/include
-I/usr/include/python3.4m -c'
x86_64-linux-gnu-gcc: src/histogram2d.c
x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-fstack-
protector-strong’
x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-fstack-
protector-strong’
error: Command "x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2
-Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC
-I/usr/lib/python3/dist-packages/numpy/core/include
-I/usr/lib/python3/dist-packages/numpy/core/include
-I/usr/include/python3.4m -c src/histogram2d.c -o
build/temp.linux-x86_64-3.4/src/histogram2d.o" failed with exit status 1
Any idea what wen't wrong and what the cure would be? Seems something
needs correction in histogram2d.c or is it false alaram?
Post by s***@public.gmane.org
Hi,
It's mentioned in the changelogs
<http://code.google.com/p/guiqwt/wiki/ChangeLog> that python3 is
supported by guiqwt since version 2.3.0. I guess the documentation lags
somewhat since python3 it's not yet mentioned as a dependency in the
documentation <https://pythonhosted.org/guiqwt/installation.html> (for
v.2.2.1).
Anyway, there is no package for guiqwt and python3 in the Debian
repositories. There is python-guiqwt
<https://packages.debian.org/search?suite=all&searchon=names&keywords=guiqwt>
ver 2.3.1 in testing but not a python3-guiqwt package.
What would be the recommended way to install guiqwt for python3 on
Debian? Or can I in any way make use of my current installation (guiqwt ver
2.3.1 for python 2.x)? Do I need to build from source? The instructions on
the installation page is a little short for me.
Any help is highly appreciated!
--
You received this message because you are subscribed to the Google Groups
"guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
s***@public.gmane.org
2014-08-19 19:49:07 UTC
Permalink
Hi,
It seems the compiler flag "stack-protector-strong" is something fairly new
introduced in gcc 4.9. Python 3.4 probably assumes that's installed which
it wasn't. Anyhow, I managed to downgrade to Python 3.2 instead and could
build and install guiqwt. All good this far.
However, then it appeared that I hadn't PyQwt installed either. And I cant
find that in any Debian repository, not even testing or unstable.

Having the feeling these kind of hurdles will just keep piling up, guess I
will continue my serach for a fast plotting library. Really pitty since the
package seemed really promising. I hope it will make its way to the deb
repositories some day.

Thanks very much for your help!
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Carlos Pascual
2014-08-20 06:34:12 UTC
Permalink
Post by s***@public.gmane.org
Hi,
It seems the compiler flag "stack-protector-strong" is something
fairly new introduced in gcc 4.9. Python 3.4 probably assumes that's
installed which it wasn't. Anyhow, I managed to downgrade to Python
3.2 instead and could build and install guiqwt. All good this far.
However, then it appeared that I hadn't PyQwt installed either. And I
cant find that in any Debian repository, not even testing or
unstable.
The PyQwt package is called python-qwt5-qt4 in Debian. It exists in
testing at least.
But it is for python2, I think.

Also you should be aware that PyQwt has been unmaintained since Qwt
changed to version 6 (at least a couple of years).

guiqwt should in principle be able to switch to another plotting
backend, but I am not confident that the author (or anybody else) will be
willing to do it (please, somebody correct me if I am wrong).
Post by s***@public.gmane.org
Having the feeling these kind of hurdles will just keep piling up,
guess I will continue my serach for a fast plotting library. Really
pitty since the package seemed really promising. I hope it will make
its way to the deb repositories some day.
We (and many other people) use guiqwt and PyQwt for our projects but are
also preparing to substitute them by something that is maintained.

I suggest you to have a look at PyQtGraph

http://www.pyqtgraph.org/

And also to the more ambitious but not-yet-ready project called vispy:

http://vispy.org/
--
+----------------------------------------------------+
Carlos Pascual Izarra
Scientific Software Coordinator
Computing Division
ALBA Synchrotron [http://www.albasynchrotron.es]
Carretera BP 1413 de Cerdanyola-Sant Cugat, Km. 3.3
E-08290 Cerdanyola del Valles (Barcelona), Spain
E-mail: cpascual-***@public.gmane.org
Phone: +34 93 592 4428
+----------------------------------------------------+
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...