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]
Hi,
after trying to compile Python for .NET on ArchLinux x86_64 I have run
into several issues which the attached patches fix:
1. Enable Mono config file loading. Otherwise a Python build with UCS4
Unicode strings does not work as the Mono.Posix module cannot find
msvcrt (which is mapped to libc in Mono's config files).
2. Python.Runtime.dll.config is missing mappings for Python 2.7
3. The architecture detection code in the Makefile did not work
correctly (checking for the 86 substring is …
[View More]true for both x86 as well as
x86_64 targets).
4. I have renamed the clrmodule.il target in the Makefile to
clrmodule_make.il. Otherwise a fresh SVN checkout would not build as
clrmodule.il is already included.
5. Adapt the clrmod Makefile to support Mono 2.8 pkgconfig change.
Additionally, retrieve Glib 2 options from its pkgconfig and compile
the x86_64 build with -fPIC.
6. Support the standard DESTDIR parameter for the install target.
Additionally, install Python.Runtime.dll and Python.Runtime.dll.config
to the site-packages folder so it is found by the clr module.
If you have any comments or if there are any issues with these patches
please let me know.
Philip
[View Less]
Greetings.
I have a test framework written in C# that handles test execution,
logging, reporting, etc., and some tests for some of our hardware that
are written in Python. Ideally, I'm wanting to call Setup(), Run() and
TearDown() methods defined in Python scripts, passing them an instance
of the object I have that handles logging as a parameter (or defining it
globally from the perspective of the loaded script). Whilst I can find
methods that load entire Python scripts and call them from …
[View More].NET, I can't
seem to find anything in the documentation or defined publicly in
Python.Runtime.dll. Is this doable? Is this documented?
Thanks,
Chris Meredith
Test Engineer, North American Embedded Professional Services
Email: christopher.meredith(a)nuance.com
[View Less]