Comments (5)
I suspect that the string returned from PBS has changed following machine downtime. It now returns something like
$JOBID.chadmin1.ib0.cheyenne.ucar
and sjob=${s%.*}
is everything before the last ".". I changed this to sjob=${s%%.*}
and it works.
However, I am not getting another error from Jupyter
WARNING: The conda.compat module is deprecated and will be removed in a future release.
[I 07:05:11.183 LabApp] [nb_conda_kernels] enabled, 5 kernels found
Traceback (most recent call last):
File "/glade/work/mclong/miniconda3/lib/python3.7/site-packages/traitlets/traitlets.py", line 528, in get
value = obj._trait_values[self.name]
KeyError: 'runtime_dir'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/glade/work/mclong/miniconda3/bin/jupyter-lab", line 11, in <module>
sys.exit(main())
File "/glade/work/mclong/miniconda3/lib/python3.7/site-packages/jupyter_core/application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/glade/work/mclong/miniconda3/lib/python3.7/site-packages/traitlets/config/application.py", line 657, in launch_instance
app.initialize(argv)
File "</glade/work/mclong/miniconda3/lib/python3.7/site-packages/decorator.py:decorator-gen-7>", line 2, in initialize
File "/glade/work/mclong/miniconda3/lib/python3.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/glade/work/mclong/miniconda3/lib/python3.7/site-packages/notebook/notebookapp.py", line 1628, in initialize
self.init_configurables()
File "/glade/work/mclong/miniconda3/lib/python3.7/site-packages/notebook/notebookapp.py", line 1319, in init_configurables
connection_dir=self.runtime_dir,
File "/glade/work/mclong/miniconda3/lib/python3.7/site-packages/traitlets/traitlets.py", line 556, in __get__
return self.get(obj, cls)
File "/glade/work/mclong/miniconda3/lib/python3.7/site-packages/traitlets/traitlets.py", line 535, in get
value = self._validate(obj, dynamic_default())
File "/glade/work/mclong/miniconda3/lib/python3.7/site-packages/jupyter_core/application.py", line 99, in _runtime_dir_default
ensure_dir_exists(rd, mode=0o700)
File "/glade/work/mclong/miniconda3/lib/python3.7/site-packages/jupyter_core/utils/__init__.py", line 13, in ensure_dir_exists
os.makedirs(path, mode=mode)
File "/glade/work/mclong/miniconda3/lib/python3.7/os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/glade/work/mclong/miniconda3/lib/python3.7/os.py", line 221, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/run/user/4267'
I haven't used this script in a while, since JupyterHub. jlab-dav
I use all the time without issue.
from ncar-python-tutorial.
from ncar-python-tutorial.
This looks similar to the issue I am encountering
jupyter/docker-stacks#718
from ncar-python-tutorial.
After replacing sjob=${s%.*}
with sjob=${s%%.*}
, I'm getting the same error that you're getting.
from ncar-python-tutorial.
Ok, I have a fix. I added
export JUPYTER_RUNTIME_DIR=${WORKDIR}
to the job here-document. This is documented here
https://jupyter.readthedocs.io/en/latest/projects/jupyter-directories.html#runtime-files
from ncar-python-tutorial.
Related Issues (20)
- Change to a Nikola site HOT 2
- Finish 0-30 Tutorial Content HOT 12
- Remove old Jekyll site
- Re-use "old-contents"? HOT 1
- Announcement Update for Spring 2020 Tutorial HOT 2
- Setup Instructions HOT 6
- Virtual Tutorial To-Do List - Part 1
- Grammar changes HOT 3
- Short Tutorial Seminar Series HOT 4
- Tutorial announcements HOT 1
- conda activate drops user in /
- bash kernel set x?
- Support self-guided as well as in-person tutorials HOT 2
- Edit tutorial notebooks to address common questions
- Remove need to change/update the user's base environment HOT 1
- Remove event-specific information from repo and make stand-alone (self-guided) HOT 1
- Update Pangeo kernel on JHub and use for tutorial HOT 3
- Update ssh tunnel scripts with option to select a default environment to use HOT 7
- Pull SSH launch scripts into separate package HOT 5
- Curriculum for beginner, intermediate & advanced tracks? HOT 4
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 ncar-python-tutorial.