rirze / interactive-strong-lensing Goto Github PK
View Code? Open in Web Editor NEWAn interactive-slider-demo for a simple gravitational lens.
An interactive-slider-demo for a simple gravitational lens.
I'm trying to run interactive_lens.py on a 64-bit iMac running OS X 10.12.3 (Sierra). Python is v 3.5.2 under Anaconda 4.1.1. It also fails when I revert to Python 2.7.12. I'm using the command line in the terminal window. The interactive Python graphics window appears briefly, then disappears, and these errors appear in terminal:
fiets:interactive-strong-lensing-master james$ python interactive_lens.py
objc[64674]: Class TKApplication is implemented in both /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk (0x10978f188) and /Applications/anaconda/lib/libtk8.5.dylib (0x10a31ae40). One of the two will be used. Which one is undefined.
objc[64674]: Class TKMenu is implemented in both /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk (0x10978f1d8) and /Applications/anaconda/lib/libtk8.5.dylib (0x10a31c020). One of the two will be used. Which one is undefined.
objc[64674]: Class TKContentView is implemented in both /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk (0x10978f228) and /Applications/anaconda/lib/libtk8.5.dylib (0x10a31c8a0). One of the two will be used. Which one is undefined.
objc[64674]: Class TKWindow is implemented in both /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk (0x10978f278) and /Applications/anaconda/lib/libtk8.5.dylib (0x10a31cda0). One of the two will be used. Which one is undefined.
Exception in Tkinter callback
Traceback (most recent call last):
File "/Applications/anaconda/lib/python3.5/site-packages/matplotlib/backends/tkagg.py", line 22, in blit
id(data), colormode, id(bbox_array))
_tkinter.TclError: invalid command name "PyAggImagePhoto"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Applications/anaconda/lib/python3.5/tkinter/init.py", line 1550, in call
return self.func(*args)
File "/Applications/anaconda/lib/python3.5/site-packages/matplotlib/backends/backend_tkagg.py", line 283, in resize
self.show()
File "/Applications/anaconda/lib/python3.5/site-packages/matplotlib/backends/backend_tkagg.py", line 355, in draw
tkagg.blit(self._tkphoto, self.renderer._renderer, colormode=2)
File "/Applications/anaconda/lib/python3.5/site-packages/matplotlib/backends/tkagg.py", line 30, in blit
id(data), colormode, id(bbox_array))
_tkinter.TclError
alloc: invalid block: 0x1005ec3b0: 0 0
Abort trap: 6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.