Code Monkey home page Code Monkey logo

Comments (6)

ssbarnea avatar ssbarnea commented on June 1, 2024

I have not idea why import sys would ever fail, seems really weird.

from tendo.

nhooey avatar nhooey commented on June 1, 2024

Do you have any idea how to fix it? @ssbarnea

from tendo.

nhooey avatar nhooey commented on June 1, 2024

This happens with Python 2.7.11 installed from Homebrew on Mac OS as of today.

Are you able to reproduce it with the example I gave? If so, what's your environment?

from tendo.

panofish avatar panofish commented on June 1, 2024

I just did a pip install tendo and when I used pyinstaller to compile an exe of my python code ... I got this same error. Fortunately, the error also says "ignored" and my exe is still created and still appears to work correctly with the tendo logic.

from tendo.

mvonthron avatar mvonthron commented on June 1, 2024

For what it's worth: I add the same error and explicitly calling del instance fixed the problem.

That being said, IMHO relying on __init__ and __del__ is not the correct approach for such a task, it would be much better to work with with statements instead.

from tendo.

ssbarnea avatar ssbarnea commented on June 1, 2024

I am going to close this bug but I will reopen it if you can provide a snippet to reproduce it but not one that does run code inside the __init__.py of a module, something that may endup executed while the module is installed, which is very-very wrong.

Many things changed since original bug was raise which makes me think is safe to close.

from tendo.

Related Issues (20)

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.