configuration error when initializing jupyter lab - jupyter-lab

Following is the information of error when initializing Jupyter lab. The error seems not serious, but I cannot open the webpage. How do I fix it? To my surprise, Jupyter notebook works well.
[~] jupyter lab
[I ... ServerApp] jupyterlab | extension was
successfully linked. [W 2021-08-28 11:32:26.627 NotebookApp] 'browser'
has moved from NotebookApp to ServerApp. This config will be passed to
ServerApp. Be sure to update your config before our next release.
[W ... NotebookApp] 'notebook_dir' has moved from
NotebookApp to ServerApp. This config will be passed to ServerApp. Be
sure to update your config before our next release.
[C ... NotebookApp] Bad config encountered during
initialization: Trait, server_extensions, not found.
Thanks for the helps. All errors are vanished, except the last info: Bad config encountered during initialization: Trait, server_extensions, not found.
There is a json file in configuration dir, it writes
{
"NotebookApp": {
"server_extensions": [
"jupyter_nbextensions_configurator"
],
"nbserver_extensions": {
"jupyterlab": true
}
}
}
Finally, I reinstall jupyterlab after delete the config dir. It just works now. I should end the topic.

Please refer to this link, this works for JupyterLab:
[1]: https://jupyter-server.readthedocs.io/en/stable/operators/migrate-from-nbserver.html

If your Jupyter log shows "has moved from NotebookApp to ServerApp" warnings you should migrate from notebook server to jupyter server, thus:
rename (with backup) Jupyter config from ~/.jupyter/jupyter_notebook_config.py to jupyter_server_config.py, and
in the new config file rename all non-default (i.e. uncommented) c.NotebookApp.* entires to c.ServerApp.* (the entries to rename are shown in the log warnings as "moved" ones)

Related

SoapUI specify alternate logdir as a property defined on the command line

I'm upgrading from SoapUI 5.4.0 to 5.7.0 and trying to put the log files in a specific directory. Note: The alternate error logs directory was working prior to the upgrade.
I have both the following specified in my JAVA_OPTS for SoapUITestCaseRunner
-Dsoapui.logroot="%SOAPUI_LOGSDIR%"
-Dsoapui.log4j.config="%SOAPUI_HOME%/soapui-log4j.xml"
In my soapui-log4j.xml I specify the error file as:
<RollingFile name="ERRORFILE"
fileName="${soapui.logroot}/soapui-errors.log"
filePattern="${soapui.logroot}/soapui-errors.log.%i"
append="true">
The error file then gets created without resolving ${soapui.logroot} e.g.
$ find . -name "*errors*"
./${soapui.logroot}/soapui-errors.log
I also tried it as lookup but ended up with this:
ERROR Unable to create file ${sys:soapui.logroot}/soapui-errors.log java.io.IOException: The filename, directory name, or volume label syntax is incorrect
Am I missing anything? Any ideas for next steps?
I tried replacing
fileName="${soapui.logroot}/soapui-errors.log"
with
fileName="${sys:soapui.logroot}/soapui-errors.log"
and it worked for me.
I no longer see unresolved '${soapui.logroot}' directory created.
A

Where to put downloaded nltk data to solve HTTP Error 403 problem

I am facing HTTP Error 403 Forbidden problem when doing nltk.download('averaged_perceptron_tagger'). I searched online and found below workaround (I tried it out manually since I am not familiar with command line).
wget https://github.com/nltk/nltk_data/archive/gh-pages.zip
unzip gh-pages.zip
mv nltk_data-gh-pages/ $PATH_TO_NLTK_DATA
Basically, I went to https://github.com/nltk/nltk_data/archive/gh-pages.zip, download and upzip the folder, but I am not sure where I should place the unzipped folder?
I created a new folder called nltk_data in below several locations and put the unzipped folder in it.
But when I tried to run some Python code, e.g. nltk.pos_tag('xxxxxyyyyy'), I still run into below error. Why did it still say resource not found when I already put the folder there?
LookupError:
**********************************************************************
Resource averaged_perceptron_tagger not found.
Please use the NLTK Downloader to obtain the resource:
>>> import nltk
>>> nltk.download('averaged_perceptron_tagger')
For more information see: https://www.nltk.org/data.html
Attempted to load taggers/averaged_perceptron_tagger/averaged_perceptron_tagger.pickle
Searched in:
- 'C:\\Users\\myname/nltk_data'
- 'C:\\Users\\myname\\Anaconda3\\nltk_data'
- 'C:\\Users\\myname\\Anaconda3\\share\\nltk_data'
- 'C:\\Users\\myname\\Anaconda3\\lib\\nltk_data'
- 'C:\\Users\\myname\\AppData\\Roaming\\nltk_data'
- 'C:\\nltk_data'
- 'D:\\nltk_data'
- 'E:\\nltk_data'
**********************************************************************

File .log with "Could not load configuration: Failed to load configuration" VSCode

I'm wondering and trying to figure out why every time that I open a .py file in an open folder in the VScode an untracked .log file is generated with the following output:
[ERROR Apr 30 13:58:07.394495100, defaults.go:139] Could not load configuration: Failed to load configuration.
Stacktrace: D:/a/cli/cli/internal/logging/logging.go:github.com/ActiveState/cli/internal/logging.Error:258
D:/a/cli/cli/internal/logging/defaults.go:github.com/ActiveState/cli/internal/logging.init.0:139
C:/hostedtoolcache/windows/go/1.15.11/x64/src/runtime/proc.go:runtime.doInit:5652
C:/hostedtoolcache/windows/go/1.15.11/x64/src/runtime/proc.go:runtime.doInit:5647
C:/hostedtoolcache/windows/go/1.15.11/x64/src/runtime/proc.go:runtime.doInit:5647
C:/hostedtoolcache/windows/go/1.15.11/x64/src/runtime/proc.go:runtime.main:191
C:/hostedtoolcache/windows/go/1.15.11/x64/src/runtime/asm_amd64.s:runtime.goexit:1374
[DEBUG Apr 30 13:58:07.423479400, locale.go:34] Init
There is no big problem because the .py files run perfectly but it's really exhausting to delete the .log file all the time.
Thanks!
I resolved the question uninstalling the extension "ActiveState Platform" in the VSCode.

Sybase 16 startserver failed due to missing libsapcrypto.so

We've installed Sybase 16 Express in our Linux box, it was able to startup right after the installation. When we recently try restarting it with the startserver -f RUN_FILE command, it failed to find the libsapcrypto.so file.
~/sap/ASE-16_0/bin> ../sap/ASE-16_0/bin/dataserver: error while loading shared libraries: libsapcrypto.so: cannot open shared object file: No such file or directory
We searched this file, multiple matches presented in the following paths:
./DM/OCS-16_0/lib3p/libsapcrypto.so
./DM/OCS-16_0/lib3p64/libsapcrypto.so
./DM/OCS-16_0/devlib3p64/libsapcrypto.so
./DM/OCS-16_0/devlib3p/libsapcrypto.so
./DM/REP-16_0/lib64/libsapcrypto.so
./DataAccess/ODBC/lib/libsapcrypto.so
./DataAccess64/ODBC/lib/libsapcrypto.so
./OCS-16_0/lib3p/libsapcrypto.so
./OCS-16_0/lib3p64/libsapcrypto.so
./OCS-16_0/devlib3p64/libsapcrypto.so
./OCS-16_0/devlib3p/libsapcrypto.so
Since this hasn't been answered yet, running this command worked for me:
. /opt/sap/SYBASE.sh
Note the different syntax to make sure the environment variables are set in the terminal session, as opposed to using this syntax:
/opt/sap/SYBASE.sh

Does Firefox disable plugins that failed to initialize?

I am trying to test a Mozilla plugin (developed using FireBreath) in the form of an .so shared object file. The plugin was developed on Ubuntu, where it works fine.
I am now trying it under OpenSUSE - so I first symlinked the .so file in ~/.mozilla/plugins:
> ln -s /path/to/npXXX.so ~/.mozilla/plugins/
... and then ran Firefox (7) from command line:
> /path/to/firefox -P myprofile
...
LoadPlugin: failed to initialize shared library libXext.so [libXext.so: cannot open shared object file: No such file or directory]
LoadPlugin: failed to initialize shared library /path/to/npXXX.so [/path/to/npXXX.so: undefined symbol: gtk_widget_get_mapped]
# and the LoadPlugin messages do NOT show a second time - probably because plugin is disabled (via about:addons).
And so I thought to try different stuff to look into this - but first, I restarted Firefox, and realized that on the second run I do not get the "LoadPlugin: failed to initialize" messages anymore! Then I tried removing the plugins symlink, and restarting FF; and adding it again, and restarting FF - still no error messages!
So, this tells me that probably Firefox somehow disabled/blacklisted the plugin (but which one: libXext, npXXX or both?) , but searching (grepping) for (np)XXX in '/path/to/myprofile/blocklist.xml' returns nothing (the plugin should use a email-like id, not those number GUIDs, so I'd expect that string to show in blocklist.xml if it's there).
Does anyone know: is the default behavior of Firefox to disable/blocklist plugins, that fail to load at first? If so, is there a way to force Firefox to load them again (and spit out error messages)? If you'd also have links to where this behavior is documented, it will be much appreciated :)
Many thanks in advance for any answers,
Cheers!
Note: after I stopped seeing the error messages, I did the following:
I am trying "about:plugins": "No enabled plugins found";
then trying "about:addons", and clicking under Plugins: "You don't have any add-ons of this type installed";
This plugin is not embedded in an extension, so nothing new should be added in "about:addons" under "Extensions" - and as expected, nothing new shows there. Under Ubuntu (where all works), just by symlinking the plugin to ~/.mozilla/plugins, the above two locations/screens start showing the plugin info.
This one of the things that puzzle me - if it just showed the plugin as "disabled", maybe I would have had a chance to re-enable it again (to get a new batch of error messages) - however, "about:plugins" and "about:addons" simply show nothing - so there's nothing I can use to enable from there. Which tells me Firefox has used a different method to disable the plugin(s) - but I cannot tell what it is...
Firefox has a cache for XPCOM modules ("fastload cache"), if a module fails to load Firefox won't try again. The cache is reset automatically if an extension is installed or if the application is updated. Starting with Firefox 4 you can also use -purgecaches command line flag to discard the cache.

Resources