Re: How to port a python package to a embedded system

2017-04-24 Thread chenchao
Hi, all: I installed it by 'pip install numpy' or 'python setup.cfg install' on my PC, but I do not know how to do this on my arm board. Because of my arm board does not have tool of pip. could you please tell me any idea? Thanks! On 04/24/2017 11:39 PM, Michael Torrie wrote: On 04/24

Re: How to port a python package to a embedded system

2017-04-24 Thread Michael Torrie
On 04/24/2017 08:47 PM, chenchao wrote: >I have x-compiled the cpython-2.7.10 and ported it on my ARM > board(it is not the Raspberry Pi and the Beaglebone Black). But now, I > have to use numpy python package on my board. So how do i x-compile this > package? Is there anybody know how to

Re: How to port a python package to a embedded system

2017-04-24 Thread chenchao
Hi, all: My board is the ARM Cortex-A8 processor and support floating point arithmetic. On 04/24/2017 10:37 PM, Michael Torrie wrote: On 04/24/2017 08:04 PM, chenchao wrote: Hi, everybody: I have x-compiled the cpython-2.7.10 and ported it on my ARM board(it is not the Raspberry

Re: How to port a python package to a embedded system

2017-04-24 Thread chenchao
Hi, everybody: I have x-compiled the cpython-2.7.10 and ported it on my ARM board(it is not the Raspberry Pi and the Beaglebone Black). But now, I have to use numpy python package on my board. So how do i x-compile this package? Is there anybody know how to do this? Thanks! My embedded sy

Re: How to port a python package to a embedded system

2017-04-24 Thread Michael Torrie
On 04/24/2017 08:04 PM, chenchao wrote: > Hi, everybody: > > I have x-compiled the cpython-2.7.10 and ported it on my ARM > board(it is not the Raspberry Pi and the Beaglebone Black). But now, I > have to use numpy python package on my board. So how do i x-compile this > package? Is ther

Re: How to port a python package to a embedded system

2017-04-24 Thread Michael Torrie
On 04/24/2017 08:04 PM, chenchao wrote: > Hi, everybody: > > I have x-compiled the cpython-2.7.10 and ported it on my ARM > board(it is not the Raspberry Pi and the Beaglebone Black). But now, I > have to use numpy python package on my board. So how do i x-compile this > package? Is ther

Re: Rosetta: Range extraction

2017-04-24 Thread breamoreboy
On Tuesday, April 25, 2017 at 12:13:42 AM UTC+1, Gregory Ewing wrote: > bartc wrote: > > On 24/04/2017 09:20, Robert L. wrote: > > > >> old = list[0] > >> list.slice_before{|n| [n-old>1,old=n][0]}. > >> map{|a| a.size<3 ? a.join(",") : [a[0],a[-1]].join("-")}. > >> join "," > > > > Is this suppos

Re: How to port a python package to a embedded system

2017-04-24 Thread chenchao
Hi, everybody: I have x-compiled the cpython-2.7.10 and ported it on my ARM board(it is not the Raspberry Pi and the Beaglebone Black). But now, I have to use numpy python package on my board. So how do i x-compile this package? Is there anybody know how to do this? Thanks! -- https:/

Re: Battle of the garbage collectors, or ARGGHHHHHH!!!!

2017-04-24 Thread Jon Ribbens
On 2017-04-24, CFK wrote: > Long version: I'm trying to write bindings for python via ctypes to control > a library written in C that uses the bdwgc garbage collector ( > http://www.hboehm.info/gc/). The bindings mostly work, except for when > either bdwgc or python's garbage collector decide to

Re: Battle of the garbage collectors, or ARGGHHHHHH!!!!

2017-04-24 Thread Cem Karan
On Apr 24, 2017, at 6:59 PM, Terry Reedy wrote: > On 4/24/2017 6:24 PM, CFK wrote: >> TLDR version: the bdwgc garbage collector (http://www.hboehm.info/gc/) and >> python's collector are not playing nice with one another, and I need to >> make them work with each other. >> Long version: I'm tryi

Re: Rosetta: Range extraction

2017-04-24 Thread Gregory Ewing
bartc wrote: On 24/04/2017 09:20, Robert L. wrote: old = list[0] list.slice_before{|n| [n-old>1,old=n][0]}. map{|a| a.size<3 ? a.join(",") : [a[0],a[-1]].join("-")}. join "," Is this supposed to be Python code? I think it's Ruby. Maybe posted to the wrong group? -- Greg -- https://mail.pyt

Re: Battle of the garbage collectors, or ARGGHHHHHH!!!!

2017-04-24 Thread Terry Reedy
On 4/24/2017 6:24 PM, CFK wrote: TLDR version: the bdwgc garbage collector (http://www.hboehm.info/gc/) and python's collector are not playing nice with one another, and I need to make them work with each other. Long version: I'm trying to write bindings for python via ctypes to control a librar

Battle of the garbage collectors, or ARGGHHHHHH!!!!

2017-04-24 Thread CFK
TLDR version: the bdwgc garbage collector (http://www.hboehm.info/gc/) and python's collector are not playing nice with one another, and I need to make them work with each other. Long version: I'm trying to write bindings for python via ctypes to control a library written in C that uses the bdwgc

Re: Trying to run a program within a python script on multiple output files creating by the same script

2017-04-24 Thread Unaiza Batool
On Monday, April 24, 2017 at 3:52:09 PM UTC-4, Peter Otten wrote: > Unaiza Batool wrote: > > > i'm confused here as the script gives an error saying simple_to_fasta and > > fasta_to_mafft are not defined. > > You have to write this functions yourself (I gave one example) and make sure > that th

Re: Trying to run a program within a python script on multiple output files creating by the same script

2017-04-24 Thread Peter Otten
Unaiza Batool wrote: > i'm confused here as the script gives an error saying simple_to_fasta and > fasta_to_mafft are not defined. You have to write this functions yourself (I gave one example) and make sure that they are defined before the 'for barcode' loop. > How do I combine the part of in

Re: Trying to run a program within a python script on multiple output files creating by the same script

2017-04-24 Thread Unaiza Batool
On Monday, April 24, 2017 at 2:44:38 PM UTC-4, Peter Otten wrote: > ubat...@ufl.edu wrote: > > > I'm writing a script that takes two command line options, a file > > containing barcodes and a file containing sequences. I've managed to > > create output files for each barcode with the matching and

Re: Trying to run a program within a python script on multiple output files creating by the same script

2017-04-24 Thread Peter Otten
ubat...@ufl.edu wrote: > I'm writing a script that takes two command line options, a file > containing barcodes and a file containing sequences. I've managed to > create output files for each barcode with the matching and corresponding > sequences in it. > > For the next part of my script, I'm tr

Trying to run a program within a python script on multiple output files creating by the same script

2017-04-24 Thread ubatool
I'm writing a script that takes two command line options, a file containing barcodes and a file containing sequences. I've managed to create output files for each barcode with the matching and corresponding sequences in it. For the next part of my script, I'm trying to create more output files b

Re: How to port a python package to a embedded system

2017-04-24 Thread Michael Torrie
On 04/24/2017 03:45 AM, chenchao wrote: > Hi, everybody: > > I have port python-2.7 to my arm board. But i don't know how to > port a python package to my embedded system. For example, numpy pakage. > Therefore, is there anybody know how to do this? Thanks! Are you running a Linux distro

Re: How to port a python package to a embedded system

2017-04-24 Thread justin walters
On Mon, Apr 24, 2017 at 2:45 AM, chenchao wrote: > Hi, everybody: > > I have port python-2.7 to my arm board. But i don't know how to port > a python package to my embedded system. For example, numpy pakage. > Therefore, is there anybody know how to do this? Thanks! > > > > -- > https://mail

Re: plot graph from data

2017-04-24 Thread breamoreboy
On Monday, April 24, 2017 at 12:51:26 PM UTC+1, Prasenjit Dutta wrote: > Hi All, > > I have a exported data as below: > > [2J [HNAME CPU % MEM USAGE / > LIMIT > goofy_wozniak0.53% 256.8 MiB / 7.64 GiB > kibana.1

Re: Inheritance in Python

2017-04-24 Thread Steve D'Aprano
On Mon, 24 Apr 2017 10:10 pm, id23...@gmail.com wrote: > I do not quite understand how inheritance works in Python. [...] > class mainCL(): > def __init__(self): > self.path1 = "/a" > self.path2 = "/b" > > class secondCL(mainCL): > def __init__(newID): > self

Inheritance in Python

2017-04-24 Thread id23...@gmail.com
I do not quite understand how inheritance works in Python. I use python 3.6.1. Let say I have a directory structure /a, /b. These two paths described in main class. The second class describes additional structure in one of the main structures, say on /b and it should look like this: /b/id1 /b/i

plot graph from data

2017-04-24 Thread Prasenjit Dutta
Hi All, I have a exported data as below: NAME CPU % MEM USAGE / LIMIT goofy_wozniak0.53% 256.8 MiB / 7.64 GiB kibana.1.i5shzj5kc7ck4x6s6s3m3wxjl 0.00% 597.2 MiB / 7.64 GiB agitated_bhaskara

ANN: PyDDF Python Spring Sprint 2017

2017-04-24 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a Python sprint in Düsseldorf, Germany] ANKÜNDIGUNG PyDDF Python Frühling-Sprint 2017 in Düsseldorf Samstag, 0

Re: Rosetta: Range extraction

2017-04-24 Thread bartc
On 24/04/2017 09:20, Robert L. wrote: Create a function that takes a list of integers in increasing order and returns a correctly formatted string in the range format. Use the function to compute and print the range formatted version of the following ordered list of integers. (The correct answe

EuroPython 2017: How you can sponsor us

2017-04-24 Thread M.-A. Lemburg
Check out our brand new brochure with all details about our sponsor packages, options and lounge events, available on our website. Sponsoring EuroPython guarantees you highly targeted visibility and the opportunity to present yourself and your company in a professional and innovative environment.

How to port a python package to a embedded system

2017-04-24 Thread chenchao
Hi, everybody: I have port python-2.7 to my arm board. But i don't know how to port a python package to my embedded system. For example, numpy pakage. Therefore, is there anybody know how to do this? Thanks! -- https://mail.python.org/mailman/listinfo/python-list

Re: Bigotry (you win, I give up)

2017-04-24 Thread Antoon Pardon
Op 22-04-17 om 13:17 schreef Rustom Mody: > On Friday, April 21, 2017 at 2:38:08 PM UTC+5:30, Antoon Pardon wrote: >> Op 20-04-17 om 17:25 schreef Rustom Mody: >>> But more importantly thank you for your polite and consistent pointing out >>> to >>> Ben Finney that his religion-bashing signature l