Re: How to write partial of a buffer which was returned from a C function to a file?

2018-04-14 Thread Jach Fong
Gregory Ewing at 2018/4/15 PM 08:20 wrote: Jach Fong wrote:  >>> pvoid = ctypes.c_void_p(ctypes.addressof(buf0))  >>> pvoid.contents Traceback (most recent call last):   File "", line 1, in AttributeError: 'c_void_p' object has no attribute 'contents' I think the 'contents' attribute only app

[RELEASE] Python 2.7.15 release candidate 1

2018-04-14 Thread Benjamin Peterson
I'm pleased to announce the immediate availability of Python 2.7.15 release candidate 1. Python 2.7.15rc1 is a preview release of the next bug fix release in the Python 2.7.x series. Python 2.7.15rc1 may be downloaded in source and binary forms from https://www.python.org/downloads/release/p

Re: Python issue on Win64

2018-04-14 Thread MRAB
On 2018-04-14 03:19, Jatin Rajpura wrote: Hi Team, I am having an issue with Python on win 64, could you help me here? Installed: [cid:image001.png@01D3D1A6.6108F670] CMD doesn't work: [cid:image002.png@01D3D1A6.6108F670] Regards, Jatin Rajpura This is a text-only list; i

Re: Making matrix solver/ solver for X

2018-04-14 Thread Gregory Ewing
steffie.bo...@gmail.com wrote: Q = np.array(['Q1', 'Q2', 'Q3', 'Q4']) P = (X*Q)-X I'm assuming that 'Q1', etc. are placeholders for numbers here? Otherwise, you're doing arithmetic with strings, which doesn't make sense. So solve condition: P[0]+P[1] ,P[0]+P[2] ,P[0]+P[3] ,P[1]+P[2] ,P[1]+P[

Python issue on Win64

2018-04-14 Thread Jatin Rajpura
Hi Team, I am having an issue with Python on win 64, could you help me here? Installed: [cid:image001.png@01D3D1A6.6108F670] CMD doesn't work: [cid:image002.png@01D3D1A6.6108F670] Regards, Jatin Rajpura AWS Engineer | E1 Technology | EF Kids & Teens | Education First 3F Jiu

Re: How to write partial of a buffer which was returned from a C function to a file?

2018-04-14 Thread Gregory Ewing
Jach Fong wrote: >>> pvoid = ctypes.c_void_p(ctypes.addressof(buf0)) >>> pvoid.contents Traceback (most recent call last): File "", line 1, in AttributeError: 'c_void_p' object has no attribute 'contents' I think the 'contents' attribute only applies to pointers that are pointing at part o

Re: Levenberg-Marquardt Algorithm

2018-04-14 Thread Priya Singh
On Wednesday, April 11, 2018 at 12:49:59 PM UTC+5:30, Christian Gollwitzer wrote: > Am 11.04.18 um 08:38 schrieb Priya Singh: > > I have two 2D arrays one R and another T (which is also a 2D array). > > Do you know how can I fit T with R in order to find central > > coordinate x0,y0 for T relative

Re: Levenberg-Marquardt Algorithm

2018-04-14 Thread Priya Singh
On On Wednesday, April 11, 2018 at 12:49:59 PM UTC+5:30, Christian Gollwitzer wrote: > Am 11.04.18 um 08:38 schrieb Priya Singh: > > I have two 2D arrays one R and another T (which is also a 2D array). > > Do you know how can I fit T with R in order to find central > > coordinate x0,y0 f

Pip 10.0 has been released

2018-04-14 Thread Paul Moore
On behalf of the PyPA, I am pleased to announce that pip 10.0 has just been released. This release has been the culmination of many months of work by the community. To install pip 10.0, you can run python -m pip install --upgrade pip or use get-pip, as described in https://pip.pypa.io/en/lat

joblib AttributeError: 'module' object has no attribute

2018-04-14 Thread Ho Yeung Lee
Process PoolWorker-1: Traceback (most recent call last): File "C:\Python27\lib\multiprocessing\process.py", line 258, in _bootstrap self.run() File "C:\Python27\lib\multiprocessing\process.py", line 114, in run self._target(*self._args, **self._kwargs) File "C:\Python27\lib\multiproce