Hi Eric,

I guess that a way around it should be generating a manifest file - the dll's are searched there before the system folder. I will look into it and write the results to the bug you linked.

Rostislav.

On 07/10/2015 10:57, Heim, Eric wrote:

Hi Rostislav,

We are aware of this problem and filed in a bug. http://bugs.mitk.org/show_bug.cgi?id=19355

This was already in a previous version of the python wrapping, but obviously only partially fixed.

Cheers,

Eric

*Von:*Rostislav Khlebnikov [mailto:rostislav.khlebni...@kcl.ac.uk]
*Gesendet:* Mittwoch, 30. September 2015 18:44
*An:* mitk-users@lists.sourceforge.net
*Betreff:* Re: [mitk-users] Python's lib-dynload

Seems I have found the problem. The actual python dll was loaded from C:\Windows\System32 which is searched before PATH. Seemingly, the way to fix this is to put the python27.dll to the application folder (they are searched there before system folders).

Thoughts?

Rostislav.

On 30/09/2015 16:55, Rostislav Khlebnikov wrote:

    Hi guys,

    I am having a problem that python's Lib\lib-dynload libraries are
    not found when executing code from Mitk's python plugin.
    For example, if I execute "import socket" an error occurs:

    Traceback (most recent call last):

    File "<string>", line 1, in <module>

    File "P:\MITK_python\sb\ep\lib\python2.7\lib\socket.py", line 47,
    in <module>

    import _socket

    ImportError: No module named _socket


    I can get around this by manually adding the "...\Lib\lib-dynload"
    folder to "sys.path". This, however, is highly strange because
    when I run the interpreter directly from "ep\lib\python2.7\bin",
    import socket works smoothly.

    Can anyone explain this difference? What should I do to allow the
    lib-dynloadwork correctly?


    There are more differences in a followup e-mail about matplotlib.


    Rostislav.




    
------------------------------------------------------------------------------




    _______________________________________________

    mitk-users mailing list

    mitk-users@lists.sourceforge.net
    <mailto:mitk-users@lists.sourceforge.net>

    https://lists.sourceforge.net/lists/listinfo/mitk-users


------------------------------------------------------------------------------
Full-scale, agent-less Infrastructure Monitoring from a single dashboard
Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
Physical-Virtual-Cloud Infrastructure monitoring from one console
Real user monitoring with APM Insights and performance trend reports 
Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to