Hi!
Can someone tell me how to set PYTHONPATH variable in code when working with Python.Runtime.dll without changing the value in the system variables before.
Thanks
SHARON
________________________________
PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any …
[View More]review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).
[View Less]
Thank you very much!
It will be helpful for us to know which platform (Windows [Mono or .NET]
vs Linux) where this is happening.
On 05/17/11 10:52, SourceForge.net wrote:
> Bugs item #3303462, was opened at 2011-05-18 02:52
> Message generated for change (Tracker Item Submitted) made by christallire
> You can respond by visiting:
> https://sourceforge.net/tracker/?func=detail&atid=823891&aid=3303462&group_…
>
> Please note that this message will contain a full …
[View More]copy of the comment thread,
> including the initial issue submission, for this request,
> not just the latest update.
> Category: None
> Group: None
> Status: Open
> Resolution: None
> Priority: 5
> Private: No
> Submitted By: xeph (christallire)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: Stack corruption
>
> Initial Comment:
> I'm using python.net heavily in my server/client project
>
> I found Stack buffer overflow exception OR stack corruption exception is caused when python script throws an exception, which is caught by CLR code especially when GC is collecting its own objects.
> I think this problem is caused when allocated objects are unwinded by CLR engine.
> (threw in CLR GC Collection/GC Security Cookie Check)
>
> I found problem this 2 months ago, been struggling to solve this problem, because it happens rarely, randomly when GC is collecting objects
> I solved this problem via removing all of pythonexception throwing code from PythonEngine, changed to return parameters to null
>
> Hope you have better solution for solve this problem :)
>
> ----------------------------------------------------------------------
>
> You can respond by visiting:
> https://sourceforge.net/tracker/?func=detail&atid=823891&aid=3303462&group_…
>
[View Less]
Hello,
has anyone successfully used multithreading or multiprocessing with Python.Net?
I tried to multi-thread from the .Net side and the Python.Net libraries seem to have issues in the RunScript method. I had to take an implementation off the web of that method because the shipped method doesn’t seem to work.
I then had a working multi-processing example from CPython that I tried from Python.Net but it gives an error
'module' object has no attribute 'argv'
When trying to create a …
[View More]process pool by executing the line
pool = Pool(processes=4)
Is it possible to do multithreading or multiprocessing with Python.Net?
Thanks,
Alan
[View Less]
If you haven't checked it out, you really should. It lets you write both CPython and IronPython in Visual Studio and you can debug both. It does a pretty good job of dependency and usage tracking so that things like "find all references" and "go to definition" work pretty well, and it even lets you attach to a running process to do debugging in Python and/or a mixed environment. It is a Microsoft open source project, and 3rd party contributions are welcome, but as a DevStudio language plugin, …
[View More]you will need an expensive version of DevStudio to participate.
http://pytools.codeplex.com/
Brett
[View Less]
Hi,
I have been using Python for .Net quite successfully to access an I/O
library that allows me to perform some numerical calculations in Numpy.
This library primarily requires the data to be fed back as Single Arrays.
However when I perform many conversions from numpy arrays (or even just
lists) to Single[] I am experiencing a memory leak that eventually causes a
crash.
The following distills the problem. By switching between the two different
Array types (Single & Double) the leak is …
[View More]controlled so it would seem there
is some issues with Single. It does not appear to matter whether change the
dtype of the numpy array to float32. I have also tried Array.ConvertAll but
the same problem arrises.
import numpy as np
import clr
from System import Array, Single, Double
N = 100000
M = 1000
for i in range(N):
# Numpy calculations
A = np.random.random( M )
# Convert to single array - creates memory leak
sgl_arry = Array[Single](A)
# Convert to double array - does NOT create memory leak
#dbl_arry = Array[Double](A)
# call library requiring Single[]
# ....
Any help would be appreciated.
Thanks,
James
[View Less]