crpurcell / friendlyvri Goto Github PK
View Code? Open in Web Editor NEWA Virtual Radio Interferometer application
License: MIT License
A Virtual Radio Interferometer application
License: MIT License
Hi everyone,
If i try to run using python3, i get the following error:
File "vriTk.py", line 115, in
from matplotlib.backends.backend_tkagg import NavigationToolbar2TkAgg
ImportError: cannot import name 'NavigationToolbar2TkAgg' from 'matplotlib.backends.backend_tkagg'
Cheers,
B
Hey there, thanks for building this tool, I'm eager to use it.
Followed your install instructions, but having a GUI/display issue when running the main Python script.
Both the plot window and the control windows pop up as expected, but other than a couple scroll bars, and a few icons, nothing is displayed.
My hunch says this is probably an Apple silicon issue. I'll give things another go either via Rosetta, or on a PC and will update this issue.
Hopefully you're still maintaining this tool, thanks!
I'm trying to run the program on Windows 10 with python 3.7 (and all the required modules except opencv), but running vriTk.py from the command prompt this doesn't cause anything and when I run it in an interactive IDLE Shell the beforementioned error pops up.
I don't know what it is I'm doing wrong or if there's something wrong with the installation. I'd appreciate your help!
Here the full error:
Traceback (most recent call last):
File "C:\Users\Emiliano Zaldívar\friendlyVRI\vriTk.py", line 1544, in
app = App(root, bgColour).pack(side="top", fill="both", expand=True)
File "C:\Users\Emiliano Zaldívar\friendlyVRI\vriTk.py", line 200, in init
self.pltFrm = PlotFrame(self.dispWin, bgColour=self.bgColour)
File "C:\Users\Emiliano Zaldívar\friendlyVRI\vriTk.py", line 1256, in init
self.fig = Figure(figsize=(13.0, 8.0), facecolor=bgColour)
File "C:\Users\Emiliano Zaldívar\AppData\Local\Programs\Python\Python37-32\lib\site-packages\matplotlib\figure.py", line 363, in init
visible=frameon)
File "C:\Users\Emiliano Zaldívar\AppData\Local\Programs\Python\Python37-32\lib\site-packages\matplotlib\patches.py", line 707, in init
Patch.init(self, **kwargs)
File "C:\Users\Emiliano Zaldívar\AppData\Local\Programs\Python\Python37-32\lib\site-packages\matplotlib\patches.py", line 82, in init
self.set_facecolor(facecolor)
File "C:\Users\Emiliano Zaldívar\AppData\Local\Programs\Python\Python37-32\lib\site-packages\matplotlib\patches.py", line 319, in set_facecolor
self._set_facecolor(color)
File "C:\Users\Emiliano Zaldívar\AppData\Local\Programs\Python\Python37-32\lib\site-packages\matplotlib\patches.py", line 307, in _set_facecolor
self._facecolor = colors.to_rgba(color, alpha)
File "C:\Users\Emiliano Zaldívar\AppData\Local\Programs\Python\Python37-32\lib\site-packages\matplotlib\colors.py", line 177, in to_rgba
rgba = _to_rgba_no_colorcycle(c, alpha)
File "C:\Users\Emiliano Zaldívar\AppData\Local\Programs\Python\Python37-32\lib\site-packages\matplotlib\colors.py", line 233, in _to_rgba_no_colorcycle
raise ValueError("Invalid RGBA argument: {!r}".format(orig_c))
ValueError: Invalid RGBA argument: 'SystemButtonFace'
In order to execute the code with Python 3.x those steps are needed:
vriTk.py: replace NavigationToolbar2TkAgg
with NavigationToolbar2Tk
and self.figCanvas.show()
with self.figCanvas.draw()
Imports/util_tk.py: replace NavigationToolbar2TkAgg
with NavigationToolbar2Tk
Hello,
I've encountered a problem while running the code "vriTk.py" on Spyder (Python 3.7) | Windows 10. I'm getting this error:
ImportError: Cannot load backend 'TkAgg' which requires the 'tk' interactive framework, as 'qt5' is currently running
Can you please point out how to fix it?
Best regards,
Mohamed
Hello crpurcell!
Really cool software, great for simple interferometric observation simulations.
For some reason, the plotter windows is not showing any ticks, only the label.
As an example, on the uv-coverage plot, it simple says u (k\lambda) and v (k\lambda), but not the values.
I know that values are possible, as displayed on some of the test figures on https://crpurcell.github.io/friendlyVRI/.
Is this an options that needs to be toggled somewhere, or is this an issue on my system?
I'm emulating Ubuntu 20.04 LTS on my windows using Oracle VM.
Aside from that all seems to be working well.
Cheers from Denmark
Nicolas
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.