Closed robmarkcole closed 6 years ago
Ahh, bummer. Okay. As a workaround install jupyterlab, then install scriptedforms. I'll need to fix that.
Instead of focusing on jupyterhub compatibility tonight I'll need to focus on getting Travis CI set up. Having mistakes like this get through isn't really acceptable.
Alright this is fixed in scriptedforms 0.5.13. Can you run pip install scriptedforms --upgrade
If this is fixed on your end with 0.5.13 just close down this issue.
Tryin on my windows machine at work:
Running setup.py install for scriptedforms ... error
Complete output from command C:\ProgramData\Anaconda3\python.exe -u -c "impo
rt setuptools, tokenize;__file__='C:\\Users\\sca1el\\AppData\\Local\\Temp\\pip-b
uild-qlk85cgr\\scriptedforms\\setup.py';f=getattr(tokenize, 'open', open)(__file
__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, '
exec'))" install --record C:\Users\sca1el\AppData\Local\Temp\pip-6t8yhrpk-record
\install-record.txt --single-version-externally-managed --compile:
running install
error: [Errno 2] No such file or directory: 'C:\\Users\\sca1el\\.jupyter\\ju
pyter_notebook_config.json'
----------------------------------------
Command "C:\ProgramData\Anaconda3\python.exe -u -c "import setuptools, tokenize;
__file__='C:\\Users\\sca1el\\AppData\\Local\\Temp\\pip-build-qlk85cgr\\scriptedf
orms\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replac
e('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --recor
d C:\Users\sca1el\AppData\Local\Temp\pip-6t8yhrpk-record\install-record.txt --si
ngle-version-externally-managed --compile" failed with error code 1 in C:\Users\
sca1el\AppData\Local\Temp\pip-build-qlk85cgr\scriptedforms\
I've already updated jupyterhub (0.8.1) and lab (0.31.8)
Can you run pip install scriptedforms --upgrade
Actually do this:
pip uninstall scriptedforms
pip install scriptedforms --no-cache
So, I just removed the trouble code. Now if you want scriptedforms to work as a notebook server extension (which is what is needed for jupyterhub) you'll have to do the following:
pip uninstall scriptedforms
pip install scriptedforms --no-cache
jupyter serverextension enable --py scriptedforms
OK scriptedforms installed which is good. I then get:
(C:\ProgramData\Anaconda3) C:\ProgramData\Anaconda3\etc\conda\activate.d>jupyter
serverextension enable --py scriptedforms
Traceback (most recent call last):
File "c:\programdata\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\programdata\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\Scripts\jupyter-serverextension.EXE\__main__.py
", line 9, in <module>
File "c:\programdata\anaconda3\lib\site-packages\jupyter_core\application.py",
line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "c:\programdata\anaconda3\lib\site-packages\traitlets\config\application.
py", line 658, in launch_instance
app.start()
File "c:\programdata\anaconda3\lib\site-packages\notebook\serverextensions.py"
, line 293, in start
super(ServerExtensionApp, self).start()
File "c:\programdata\anaconda3\lib\site-packages\jupyter_core\application.py",
line 255, in start
self.subapp.start()
File "c:\programdata\anaconda3\lib\site-packages\notebook\serverextensions.py"
, line 210, in start
self.toggle_server_extension_python(arg)
File "c:\programdata\anaconda3\lib\site-packages\notebook\serverextensions.py"
, line 199, in toggle_server_extension_python
m, server_exts = _get_server_extension_metadata(package)
File "c:\programdata\anaconda3\lib\site-packages\notebook\serverextensions.py"
, line 329, in _get_server_extension_metadata
raise KeyError(u'The Python module {} does not include any valid server exte
nsions'.format(module))
KeyError: 'The Python module scriptedforms does not include any valid server ext
ensions'
Thanks rob, sorry about that. I really messed up this notebook server extension thing. Okay, try scriptedforms 0.5.15
So:
pip uninstall scriptedforms
pip install scriptedforms --no-cache
jupyter serverextension enable --py scriptedforms
@robmarkcole any success?
I need to figure out how to run jupyterhub on my work PC first. jupyterhub
is not on the PATH, I have the same problem with source
and venv
I don't think it's worth trying to install jupyterhub on a windows machine...
Alright, Travis CI is set up :). I think I'm going to call it a night. I'll dig down into jupyterhub for you tomorrow night hopefully.
OK getting this error on my Mac. Not that the original issue is fixed in 5.15 so we can close and have jupyterhub as separate issue
kk
As per issue https://github.com/SimonBiggs/scriptedforms/issues/59 I am getting the error: