Skip to content

nPython.exe crashes with runtime error #43

Closed

Description

@davidanthoff

Install Python.Net with this command:

pip install git+https://github.com/pythonnet/pythonnet#egg=pythonnet

import clr works from a normal python.

Running npython.exe crashes with

image

Activity

  1. added this to the milestone on Apr 11, 2014
  2. tonyroberts commented on Apr 12, 2014

    @tonyroberts
    Contributor

    I think I know what this problem is... I think it will occur when you have
    python 2.7 installed for a single user only, and so python27.dll gets
    loaded from the path rather than from windows\system32 which the c runtime
    doesn't like. Adding a manifest to the npython exe should fix it. Thanks
    for the report, I'll take a look!

    On Fri, Apr 11, 2014 at 11:34 PM, David Anthoff notifications@github.comwrote:

    Install Python.Net with this command:

    pip install git+https://github.com/pythonnet/pythonnet#egg=pythonnet

    import clr works from a normal python.

    Running npython.exe crashes with

    [image: image]https://cloud.githubusercontent.com/assets/1036561/2685375/4b75ce46-c1c9-11e3-835c-b2c8775f48f7.png

    Reply to this email directly or view it on GitHubhttps://github.com//issues/43
    .

  3. tonyroberts commented on Apr 12, 2014

    @tonyroberts
    Contributor

    As an aside, I've never really understood the need for npython on windows,
    or why anyone would use it instead of python? On linux it's needed because
    the default way of building python is to have it statically linked and so
    the normal python interpreter doesn't work if you try and import clr. Guess
    we can't really just drop it from the build though... can we?? :)

    On Sat, Apr 12, 2014 at 10:29 AM, Tony Roberts tony@pyxll.com wrote:

    I think I know what this problem is... I think it will occur when you have
    python 2.7 installed for a single user only, and so python27.dll gets
    loaded from the path rather than from windows\system32 which the c runtime
    doesn't like. Adding a manifest to the npython exe should fix it. Thanks
    for the report, I'll take a look!

    On Fri, Apr 11, 2014 at 11:34 PM, David Anthoff notifications@github.comwrote:

    Install Python.Net with this command:

    pip install git+https://github.com/pythonnet/pythonnet#egg=pythonnet

    import clr works from a normal python.

    Running npython.exe crashes with

    [image: image]https://cloud.githubusercontent.com/assets/1036561/2685375/4b75ce46-c1c9-11e3-835c-b2c8775f48f7.png

    Reply to this email directly or view it on GitHubhttps://github.com//issues/43
    .

  4. self-assigned this
    on Apr 12, 2014
  5. added a commit that references this issue on Apr 12, 2014
    0416fda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions