Comments (5)
Hello @dcoles,
I can reproduce this on a Python script that simply imports pickle, so that's definitely not acceptable.
Copied the test case from the 'pickle' implementation from a desire to narrow the issue a bit
Will test the changes and make a new release shortly.
Thanks for your time dude :-)
Cheers,
from snaketrace.
@emmedve1 Thank you for the bug report!
I can reproduce this on a Python script that simply imports pickle
, so that's definately not acceptable.
My suspicion is that _compat_pickle
has been loaded as an indirect dependency of runpy
, so when we clear sys.modules
prior to running the target, it ends up in a weird "imported but not in sys.modules
state.
Will look into ways to address this.
from snaketrace.
Right. So it appears to be due to us replacing the sys.modules
dict rather than updating it. Python still has the reference to the old one.
A quick fix is to change
snaketrace/snaketrace/trace.py
Line 57 in dcf6ba4
sys.modules.clear()
sys.modules.update(MODULES)
Will test the changes and make a new release shortly.
from snaketrace.
Thanks for your time dude :-)
No worries! Thanks for taking the time to report the bug!
Fix included in snaketrace-0.3.1
.
from snaketrace.
Fix included in snaketrace-0.3.1
Looks good. Thanks again :-)
from snaketrace.
Related Issues (2)
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 snaketrace.