Re: [newbie] how to make program suggest to install missing modules

2014-12-12 Thread hugocoolens
On Monday, December 8, 2014 9:00:13 PM UTC+1, sohca...@gmail.com wrote: On Monday, December 8, 2014 10:46:47 AM UTC-8, Jean-Michel Pichavant wrote: - Original Message - From: sohcahto...@gmail.com try: import someModule except ImportError: print Module is missing

[newbie] how to make program suggest to install missing modules

2014-12-09 Thread hugocoolens
I'd like to add the following to a python-program: when a module (take rtlsdr as an example) is not installed on the system I'd like to ask the program something like: module rtlsdr is missing, shall I install it? y or n if n --sorry but then I can't run this program and quit program if y

[newbie] how to make program suggest to install missing modules

2014-12-08 Thread hugocoolens
I'd like to add the following to a python-program: when a module (take rtlsdr as an example) is not installed on the system I'd like to ask the program something like: module rtlsdr is missing, shall I install it? y or n if n --sorry but then I can't run this program and quit program if y

how to install automatically missing modules on a debian-system

2014-02-19 Thread hugocoolens
It often happens I start a python-script I wrote some time ago on another system and get messages like module_x is missing. I then perform an apt-cache search module_x, followed by an apt-get install name_of_missing_module.deb I was wondering whether someone here has a kind of method which

[newbie] plotting pairs of data

2012-12-19 Thread hugocoolens
I have a data set for which x and y-values are presented as pairs of floating point numbers: e.g. 0.0364771 0.55569 is the first pair . 0.132688 0.808496 is the second pair . . The data is available in Python in this format: ['0.0364771 0.55569', '0.132688 0.808496', '0.232877 0.832833',

Re: plotting pairs of data

2012-12-19 Thread hugocoolens
On 19 dec, 15:38, Thomas Bach thb...@students.uni-mainz.de wrote: On Wed, Dec 19, 2012 at 05:47:30AM -0800,hugocoolenswrote: The data is available in Python in this format: ['0.0364771 0.55569', '0.132688 0.808496', '0.232877 0.832833', '0.332702 0.849128', '0.432695 0.862158'] I suppose