Re: [Python.NET] clr ImportError

Denis Akhiyarov <[email protected]>
Newsgroups gmane.comp.python.dotnet
Message-ID <CALxxJLQMXb4q6xdurPjsV_fQLA7CNMWj3nLSDMmaqnv5Yc-DeA@mail.gmail.com>
I had similar issue before. import clr has to be at the top, not sure why.

On Saturday, July 16, 2016, Daniel Fernandez <[email protected]>
wrote:

> Hi Denis,
>
> I was able to get it working on my side but I needed to execute import clr
> as the first command then my scripts. I will try the recommend path below
> and see what I can find out below.
>
> Thanks.
>
> Danny
>
> ------------------------------
> Date: Fri, 15 Jul 2016 02:37:43 -0500
> From: [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>
> To: [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>
> Subject: Re: [Python.NET] clr ImportError
>
> I would start with clean installation of pythonnet wheel from PyPi or
> source on master branch on github, preferable in conda env or virtualenv.
> Also make sure you have no left-over clr.pyd or Python.Runtime.dll files in
> system or python paths.
>
> I used pt(i)python with no problems before. But what happens if you remove
> it completely?
>
> It is possible to debug this, but let's first find out if this is
> repeatable?
>
> The way I normally debug this initialization code is by checking
> Debugger.IsAttached and sleeping the thread if the flag is false.
>
>
>
> On Thursday, July 14, 2016, Daniel Fernandez <[email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote:
>
> Hi All,
>
> I was wondering if anyone has ran into this before. I have latest
> pythonnet installed and everything is working great. I have been using for
> the last couple of weeks with python 3.5.2 (32 bit) on Win 7 box. I decided
> to try out ptpython so I pip install it. Now I am getting a
> "ImportError: dynamic module does not define module export function
> (PyInit_clr)" error.
>
> I go back to the normal python repl window and the same error occurs.  Has
> anyone seen this before and what's the best way to debug this?
>
> Thanks.
>
> Danny
>
>
> _________________________________________________ Python.NET mailing list
> - [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>
> https://mail.python.org/mailman/listinfo/pythondotnet
>

_________________________________________________
Python.NET mailing list - [email protected]
https://mail.python.org/mailman/listinfo/pythondotnet
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.