Comments (6)
I have not idea why import sys
would ever fail, seems really weird.
from tendo.
Do you have any idea how to fix it? @ssbarnea
from tendo.
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.
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.
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.
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)
- Python 3.6.6, ModuleNotFoundError: import of os halted; None in sys.modules HOT 3
- logger.error vs logger.warning HOT 2
- Is necessary to include 'quitting' in log message? HOT 3
- Window flashing when packaged with PyInstaller. HOT 1
- SingleInstance prints log messages twice HOT 3
- Adding non blocking behavior in locking mechanism HOT 1
- BlockingIOError: [Errno 35] Resource temporarily unavailable HOT 1
- Compatibility with Python 3.7? HOT 1
- Opening in U mode has been deprecated and will be removed in Python 3.10 HOT 1
- 💖 looking for maintainers (cores) HOT 4
- Is singleton multi-threading safe? HOT 1
- NameError: name 'SingleInstance' is not defined HOT 1
- run process in popen and send kill will not remove the lock file HOT 3
- 'NoneType' has no attribute exit HOT 5
- v0.3 checklist
- New version on pypi? HOT 1
- BlockingIOError when running on Python 3.6 HOT 1
- Documentation link is broken (404)
- singleton.SingleInstance not releasing on program end
- Latest version on PyPi is 0.3.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.