-
Notifications
You must be signed in to change notification settings - Fork 1
import clr clashes with pythonnet package #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The name clashes with |
I noticed the package name conflict after publishing. Does this affect your build or installation process? My understanding of pythonnet/pythonnet#388 is, that |
This does not affect our build or installation, but new pythonnet users will keep bumping into this issue by incorrectly assuming that Would you mind renaming your package before it is too late? I see that it is only about one month old? |
It is actually really hard to find a good 3 letter name. How about a little compromise:
|
The problem is for users that install both like the original issue that made us detect it. |
I thought the original issue was that a new pythonnet user installed the wrong package. |
import clr
import System
How would you report error on this?
…On Sat, Feb 18, 2017, 12:34 PM Victor Uriarte ***@***.***> wrote:
The problem is for users that install both like the original issue that
made us detect it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHgZ5fvbkhjJmnJD3GV9yk83C3bc561Kks5rdzm0gaJpZM4MDzqB>
.
|
|
"import clr" hooks up CPython with .NET runtime. "import System" imports
main .NET assembly namespace into CPython.
Same imports are used in IronPython.
…On Sat, Feb 18, 2017, 12:46 PM lmittmann ***@***.***> wrote:
System is a toplevel module of pythonnet?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHgZ5SgV0u4XgfJJi9mSll8L4r-kfSMLks5rdzyEgaJpZM4MDzqB>
.
|
The |
We modify the import hook to inject .net libraries. In this case it would
be difficult to decide if it's an import error because of clr vs pythonnet
or if the user is trying to import libraries from Python or from GAC
…On Sat, Feb 18, 2017 at 11:27 lmittmann ***@***.***> wrote:
The AttributeError caused by clr.AddReference can be easily detected.
Detecting the import System error might be more complicated. I will have
a look on how this "hook up" is done, it might be also catchable.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AMr87O6qvkmOIo7_aTyIzr5_L-E6hF9aks5rd0YtgaJpZM4MDzqB>
.
|
You can do a quick Google lookup of "import clr" to see the amount of usage
it has.
…On Sat, Feb 18, 2017 at 12:47 Victor Uriarte ***@***.***> wrote:
We modify the import hook to inject .net libraries. In this case it would
be difficult to decide if it's an import error because of clr vs pythonnet
or if the user is trying to import libraries from Python or from GAC
On Sat, Feb 18, 2017 at 11:27 lmittmann ***@***.***> wrote:
> The AttributeError caused by clr.AddReference can be easily detected.
> Detecting the import System error might be more complicated. I will have
> a look on how this "hook up" is done, it might be also catchable.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#1 (comment)>, or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/AMr87O6qvkmOIo7_aTyIzr5_L-E6hF9aks5rd0YtgaJpZM4MDzqB>
> .
>
|
@lmittmann Please take a stance on this now. Are you going to rename your library? You are clashing with both Python.NET and IronPython and are causing confusion for people using Please don't try to hack around this by capturing |
Does this link work? https://pypi.python.org/pypi?:action=role_form&package_name=clr You can add one of us as owners and we will handle it from there. Many thanks for the renaming :) |
That worked, you should have access now. |
@lmittmann could you please unlist clr from pypi? |
pythonnet/pythonnet#388
pythonnet has been available since 2003.
The text was updated successfully, but these errors were encountered: