Spyder 5 Disable Warning: "No QCoreApplication instance found. Application patches not applied" - spyder

I get the following warning when I run Spyder 5:
No QCoreApplication instance found. Application patches not applied
In an answer to this question, a spyder maintainer replied saying this warning can just be ignored.
Is there a way to disable it though?

(Spyder maintainer here) No, there's no way to disable it.

Related

Spyder not launching - No QCoreApplication instance found

I get the following when I try to run Spyder from a Python 3.7 32 bit environment:
I don't really know how resolve this so any help would be greatly appreciated.
I read the below fix but I am not getting any Windows like in the below to try it.
Spyder 5 No QCoreApplication instance found. Application patches not applied
Seems like the error is related with DLLs required for the ssl module:
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed: The specified module could not be found.
To fix that you will need to either make available for your python installation the missing DLL (probably libssl.dll and libcrypto.dll) or maybe try to use a python version bellow 3.7.
Also, the message Spyder 5 No QCoreApplication instance found. Application patches not applied... is just a warning as described in one of the responses here: https://stackoverflow.com/a/66979214/15954282

Error with Slick Module when clearing cache during installation

Has anyone run into this before?
I am doing a local install of Drupal 8 with docker and composer. I'm on a Windows machine using WSL. When I clear the cache (drush cr), I get this error:
Service "slick.manager": Parent definition "blazy.manager.base" does not exist.
Both Slick and Blazy modules and libraries are present. When I try to go to the site it says "The website encountered an unexpected error. Please try again later."
Any help would be greatly appreciated.
Just uninstall the slick module, load the site, install blazy, then enable the slick module again. It's an "ordering" issue due to a new dependency.
See; https://www.drupal.org/project/slick/issues/2702241
It's a bit of a workaround but it should solve your problem.
If this isn't the issue, then please update your question with the output of;
drush pml --status=enabled
(Just for the two modules if you don't wish to copy everything here).

Set environment variables on Mac OS X Sierra?

For example, I want to follow this guide on how to disable Brew analytics (under warning) but I have no idea how to find my environmental variables.
Most of the guides out there I found, such as this one, are all outdated; ~/.bash_profile doesn't exist according to how the answer described it. Can some please explain to a new MacOS user how all this now works?
Please note my understanding of Unix-based filesystems are limited. Treat me as a noob.
You can create ~/.bash_profile. The easiest way to create it is to use the touch utility: touch .bash_profile . It is common to have a .profile which is read if bash can not find .bash_profile. You can get the documentation from a terminal with man bash. You can edit either of these files with any text type editor (not word processor).
In case you're using zsh like me, you need to modify ~/.zshrc
I Android Gradle project root I do
gradle app:assembleDebug --stacktrace
but I get error
Minimum supported Gradle version is 5.4.1. Current version is 5.1.
and message says
/gradle/wrapper/gradle-wrapper.properties to gradle-5.4.1-all.zip
but it is
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
so why is Gradle not building?

Error in if (download_method_secure()) from installing native R kernel for Jupyter

I tried to install R Kernel to my Jupyter notebook on Windows from
devtools::install_github('IRkernel/IRkernel')
but I ran into this error
Error in if (download_method_secure()) { :
missing value where TRUE/FALSE needed
Any suggestions on how to fix it will be appreciated.
This issue came up for me when I was relying on the default r-essentials version of devtools instead of the newest version. After I did a conda install -f -c r r-devtools and got the newest version, the error went away. YMMV of course.
I had this issue when dealing with conda and devtools. In order to figure it out I looked at the download_method function in devtools, which is throwing the error. The solution for me was to set the global options in R for download.file.method. It seems the issue is really with Devtools trying unsuccessfully to download from a secure site.
On windows, this line fixed the problem: options(download.file.method = "wininet")
For Mac/Linux, the line would be options(download.file.method = "libcurl")
I found these lines on this page. There are some other options as well, for older versions of R.
https://support.rstudio.com/hc/en-us/articles/206827897-Secure-Package-Downloads-for-R

homebrew: ngspice not building (x11.c:29:12: fatal error: 'X11/IntrinsicP.h' file not found and then some)

I'm a homebrew newbie (broob?). Trying to build ngspice I encounter the error described in the title. Before I get into that though, it turns out I actually don't even really want/need X11 support at the moment. I'm such a newbie I don't even know how to tell brew to leave out X. In the formula I see:
option "with-x", "Build with X support"
But if I build "--without-x" I still see the same error. How do you say "not --with-x"?
OK, on to the compile trouble:
I can see the file is really there in the X11 directories:
$ find /opt/X11/ -name IntrinsicP.h
/opt/X11//include/X11/IntrinsicP.h
But somehow homebrew is not seeing that include path. What the best way to alert brew to the location of this file? I tried:
ln -s /opt/X11/include/X11 /usr/local/include/X11
which works, in the sense that the include problem goes away, but it produces a linker problem:
ld: library not found for -lXaw
Again, I found some Xaw libs in /opt/X11, but I've not sorted out how to educate homebrew enough to actually link to them. ;-(
$ find /opt/X11/ -name "*Xaw*"
/opt/X11//include/X11/Xaw
/opt/X11//include/X11/Xaw/XawImP.h
/opt/X11//include/X11/Xaw/XawInit.h
/opt/X11//include/X11/Xaw3d
/opt/X11//include/X11/Xaw3d/Xaw3dP.h
/opt/X11//include/X11/Xaw3d/XawImP.h
/opt/X11//include/X11/Xaw3d/XawInit.h
/opt/X11//lib/libXaw.6.dylib
/opt/X11//lib/libXaw.7.dylib
/opt/X11//lib/libXaw.8.dylib
/opt/X11//lib/libXaw.dylib
/opt/X11//lib/libXaw3d.8.dylib
/opt/X11//lib/libXaw3d.dylib
/opt/X11//lib/libXaw6.6.dylib
/opt/X11//lib/libXaw6.dylib
/opt/X11//lib/libXaw7.7.dylib
/opt/X11//lib/libXaw7.dylib
/opt/X11//lib/libXaw8.8.dylib
/opt/X11//lib/libXaw8.dylib
/opt/X11//share/doc/libXaw3d
/opt/X11//share/man/man3/Xaw.3
Thanks for any suggestions!
-steve
I could reproduce this. This reflects an inconsistency in ngspice's configure that was not accommodated by the Homebrew formula. ngspice needs --without-x in configure to stop trying to link to X even though it needs --with-x to actually build X support.
This will be fixed once this pull request is accepted.
Homebrew welcomes these kinds of issues at the Github issue tracker; maintainers don't come around here much. Following the troubleshooting advice that brew recommends ("READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting") will make diagnosing problems easier in any venue. :)

Resources