Giter Site home page Giter Site logo

Comments (17)

den-run-ai avatar den-run-ai commented on June 3, 2024 1

This does not affect our build or installation, but new pythonnet users will keep bumping into this issue by incorrectly assuming that pip install clr is necessary before import clr.

Would you mind renaming your package before it is too late? I see that it is only about one month old?

from style.

vmuriart avatar vmuriart commented on June 3, 2024

The name clashes with IronPython which uses import clr as its import hook.

from style.

lmittmann avatar lmittmann commented on June 3, 2024

I noticed the package name conflict after publishing. Does this affect your build or installation process?

My understanding of pythonnet/pythonnet#388 is, that pip install clr was executed instead of pip install pythonnet, right?

from style.

lmittmann avatar lmittmann commented on June 3, 2024

It is actually really hard to find a good 3 letter name. How about a little compromise:

  • We update the pythonnet/README.md to show some installation instructions, since people who wrongly install clr instead of pythonnet just got a different error, before I published my package.
  • I will update the AttributeError to show a more explanatory error message, pointing to pythonnet

from style.

vmuriart avatar vmuriart commented on June 3, 2024

The problem is for users that install both like the original issue that made us detect it.

from style.

lmittmann avatar lmittmann commented on June 3, 2024

I thought the original issue was that a new pythonnet user installed the wrong package.

from style.

den-run-ai avatar den-run-ai commented on June 3, 2024

from style.

lmittmann avatar lmittmann commented on June 3, 2024

System is a toplevel module of pythonnet?

from style.

den-run-ai avatar den-run-ai commented on June 3, 2024

from style.

lmittmann avatar lmittmann commented on June 3, 2024

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.

from style.

vmuriart avatar vmuriart commented on June 3, 2024

from style.

vmuriart avatar vmuriart commented on June 3, 2024

from style.

filmor avatar filmor commented on June 3, 2024

@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 pip directly. If not, please at least say so now and we will put the corresponding information into our Readme and entry page.

Please don't try to hack around this by capturing import System or clr.AddReference.

from style.

lmittmann avatar lmittmann commented on June 3, 2024

I will rename the library later today. I am not sure about the best way to transfer ownership of a pypi package though. Any ideas @denfromufa @vmuriart @filmor?

from style.

filmor avatar filmor commented on June 3, 2024

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 :)

from style.

lmittmann avatar lmittmann commented on June 3, 2024

That worked, you should have access now.

from style.

koubaa avatar koubaa commented on June 3, 2024

@lmittmann could you please unlist clr from pypi?

from style.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.