Comments (5)
unfortunately even after upgrading via pip (tested it just now) i still got:
File "/usr/local/lib/python2.7/dist-packages/pysnooper/tracer.py", line 162, in trace
get_local_reprs(frame, variables=self.variables)
File "/usr/local/lib/python2.7/dist-packages/pysnooper/tracer.py", line 28, in get_local_reprs
locals_and_globals = collections.ChainMap(frame.f_locals, frame.f_globals)
AttributeError: 'module' object has no attribute 'ChainMap'
however this works in tracer.py but requires the chainmap pip package :/
locals_and_globals = None
if sys.version_info.major > 2:
locals_and_globals = collections.ChainMap(frame.f_locals, frame.f_globals)
else:
from chainmap import ChainMap
locals_and_globals = ChainMap(frame.f_locals, frame.f_globals)
from pysnooper.
from ConfigParser import _Chainmap as ChainMap
works fine in 2.7.
from pysnooper.
This was a bug that I fixed. Run pip install pysnooper --upgrade
and if it happens again, reopen this ticket.
from pysnooper.
I believe this was just fixed by #38 , please re-upgrade, try again and update here.
from pysnooper.
I believe this was just fixed by #38 , please re-upgrade, try again and update here.
Indeed, i upgraded again and now it works :>
from pysnooper.
Related Issues (20)
- Snoop recursively, but only in my code. HOT 2
- print value of a claas var HOT 1
- [feature request] Add command line color output for Windows HOT 7
- SOURCE IS UNAVAILABLE HOT 8
- Feature request: python -m pysnooper user_script.py HOT 4
- Compatibility issue with Debugger in Visual Studio Code HOT 2
- Print("come") HOT 1
- compatiblity with python 3.12 HOT 7
- No variable output from the last line HOT 3
- Can not install it in Kaggle platform HOT 1
- `return` event line missing when exception occurred HOT 9
- new features request/discussion HOT 2
- Add Callback HOT 1
- Fix the CI HOT 4
- Deactivate all snooping except explicitly specified "watch"es HOT 3
- snoop entire file or program HOT 3
- Evaluate using `sys.monitoring` to make PySnooper faster
- [feature] only trace functions in specific files HOT 1
- about using multiprocessing
- Please add support for async functions HOT 1
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.
from pysnooper.