[IPython-dev] Packaging also the debug version ipython_d.exe for MS-Windows
Chuanren Wu
me at crwu.de
Mon Oct 17 11:56:09 EDT 2016
Hi,
it is still not correct, even after launching `python_d -m IPython` and do
nothing except quiting. The following error message is shown:
Debug memory block at address p=0000000003C436C0: API 'm'
> 3 bytes originally requested
> The 7 pad bytes at p-7 are FORBIDDENBYTE, as expected.
> The 8 pad bytes at tail=0000000003C436C3 are FORBIDDENBYTE, as
> expected.
> The block was made by call #1268489 to debug malloc/realloc.
> Data at p: 79 0a 00
> Fatal Python error: bad ID: Allocated using API 'm', verified using API 'r'
>
> Thread 0x000030c4 (most recent call first):
> File "C:\Program Files\Python35\lib\threading.py", line 293 in wait
> File "C:\Program Files\Python35\lib\threading.py", line 549 in wait
> File
> "C:\Users\user1\AppData\Roaming\Python\Python35\site-packages\IPython\core\history.py",
> line 834 in run
> File
> "C:\Users\user1\AppData\Roaming\Python\Python35\site-packages\IPython\core\history.py",
> line 60 in needs_sqlite
> File "<decorator-gen-23>", line 2 in run
> File "C:\Program Files\Python35\lib\threading.py", line 914 in
> _bootstrap_inner
> File "C:\Program Files\Python35\lib\threading.py", line 882 in _bootstrap
>
> Current thread 0x00001a0c (most recent call first):
> File
> "C:\Users\user1\AppData\Roaming\Python\Python35\site-packages\IPython\utils\py3compat.py",
> line 152 in input
> File
> "C:\Users\user1\AppData\Roaming\Python\Python35\site-packages\IPython\utils\io.py",
> line 172 in ask_yes_no
> File
> "C:\Users\user1\AppData\Roaming\Python\Python35\site-packages\IPython\core\interactiveshell.py",
> line 3077 in ask_yes_no
> File
> "C:\Users\user1\AppData\Roaming\Python\Python35\site-packages\IPython\terminal\interactiveshell.py",
> line 426 in interact
> File
> "C:\Users\user1\AppData\Roaming\Python\Python35\site-packages\IPython\terminal\interactiveshell.py",
> line 440 in mainloop
> File
> "C:\Users\user1\AppData\Roaming\Python\Python35\site-packages\IPython\terminal\ipapp.py",
> line 348 in start
> File
> "C:\Users\user1\AppData\Roaming\Python\Python35\site-packages\traitlets\config\application.py",
> line 596 in launch_instance
> File
> "C:\Users\user1\AppData\Roaming\Python\Python35\site-packages\IPython\__init__.py",
> line 119 in start_ipython
> File
> "C:\Users\user1\AppData\Roaming\Python\Python35\site-packages\IPython\__main__.py",
> line 14 in <module>
> File "C:\Program Files\Python35\lib\runpy.py", line 85 in _run_code
> File "C:\Program Files\Python35\lib\runpy.py", line 184 in
> _run_module_as_main
>
Is there any way to fix this issue?
Best regards
C. Wu
2016-10-17 13:29 GMT+02:00 Thomas Kluyver <takowl at gmail.com>:
> Hi,
>
> I don't think we can easily make such a shortcut, but if you have a debug
> build of Python, you can launch IPython in it by running:
>
> debug-python -m IPython
>
> On 17 October 2016 at 09:28, Chuanren Wu <me at crwu.de> wrote:
>
>> Dear developers,
>>
>> is it possible also to package a ipython_d.exe for the debug-version of
>> (officially packaged) python under windows? Since MSVC has different CRTs
>> for debug and released objs, it is not good (perhaps not possible) to mix
>> them.
>> I am relatively new to python, mainly for the reason that I want to
>> provide a binding to my C++ numerical library. With a debug version of
>> ipython_d alongside with the release version is very convenient to debug
>> the binding. Btw, the default numpy packaging for windows has a debug
>> version as well, I did not investigate on how do they achieved that but I
>> think this would not be difficult for ipython.
>>
>> I even don't know whether this request is suitable for a Github ticket,
>> therefore I'd rather send you a email to ask.
>>
>> Best regards
>> C. Wu
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> https://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> https://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20161017/64254b70/attachment.html>
More information about the IPython-dev
mailing list