Code Monkey home page Code Monkey logo

Comments (19)

tomweber-sas avatar tomweber-sas commented on September 17, 2024

Hey @generic11 , the sas_kernel has no requirements on how you install anaconda. In fact, anaconda isn't required either, it's just that it has jupyter and lots of other stuff included that most people would use if using the sas_kernel, so those instructions were just to help out, not be any kind of restriction. It doesn't matter where you install it; system location or user directory.
I'm guessing you also posted to an old thread in the SAS communities? That said you tried installing sas_kernel from within the anaconda prompt? Can you try installing it from the command prompt? The anaconda specific tools tend to limit where packages are found, and that might be the trouble you're having. But, I can't be sure without seeing more information. Can you try pip install sas_kernel from outside the acaconda shell, just a normal windows shell?

Thanks,
Tom

from sas_kernel.

generic11 avatar generic11 commented on September 17, 2024

Hey Tom, thanks for replying. In terms of getting this working with jupyter, should I post elsewhere?

When running pip install sas_kernel from command line, I get:

Requirement already satisfied: sas_kernel in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (2.2.0)
Requirement already satisfied: saspy>=2.2.7 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from sas_kernel) (3.1.8)
Requirement already satisfied: pygments in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from sas_kernel) (2.4.2)
Requirement already satisfied: metakernel>=0.18.0 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from sas_kernel) (0.24.3)
Requirement already satisfied: jupyter_client>=4.4.0 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from sas_kernel) (5.3.3)
Requirement already satisfied: ipython>=4.0.0 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from sas_kernel) (7.8.0)
Requirement already satisfied: ipyparallel in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from metakernel>=0.18.0->sas_kernel) (6.2.4)
Requirement already satisfied: ipykernel in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from metakernel>=0.18.0->sas_kernel) (5.1.3)
Requirement already satisfied: pexpect>=4.2 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from metakernel>=0.18.0->sas_kernel) (4.7.0)
Requirement already satisfied: portalocker in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from metakernel>=0.18.0->sas_kernel) (1.5.2)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from jupyter_client>=4.4.0->sas_kernel) (2.8.0)
Requirement already satisfied: jupyter-core in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from jupyter_client>=4.4.0->sas_kernel) (4.5.0)
Requirement already satisfied: pyzmq>=13 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from jupyter_client>=4.4.0->sas_kernel) (18.1.0)
Requirement already satisfied: traitlets in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from jupyter_client>=4.4.0->sas_kernel) (4.3.3)
Requirement already satisfied: pywin32>=1.0; sys_platform == "win32" in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from jupyter_client>=4.4.0->sas_kernel) (223)
Requirement already satisfied: tornado>=4.1 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from jupyter_client>=4.4.0->sas_kernel) (6.0.3)
Requirement already satisfied: colorama; sys_platform == "win32" in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from ipython>=4.0.0->sas_kernel) (0.4.1)
Requirement already satisfied: setuptools>=18.5 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from ipython>=4.0.0->sas_kernel) (41.4.0)
Requirement already satisfied: backcall in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from ipython>=4.0.0->sas_kernel) (0.1.0)
Requirement already satisfied: pickleshare in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from ipython>=4.0.0->sas_kernel) (0.7.5)
Requirement already satisfied: jedi>=0.10 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from ipython>=4.0.0->sas_kernel) (0.15.1)
Requirement already satisfied: decorator in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from ipython>=4.0.0->sas_kernel) (4.4.0)
Requirement already satisfied: prompt-toolkit<2.1.0,>=2.0.0 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from ipython>=4.0.0->sas_kernel) (2.0.10)
Requirement already satisfied: ipython-genutils in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from ipyparallel->metakernel>=0.18.0->sas_kernel) (0.2.0)
Requirement already satisfied: ptyprocess>=0.5 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from pexpect>=4.2->metakernel>=0.18.0->sas_kernel) (0.6.0)
Requirement already satisfied: six>=1.5 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from python-dateutil>=2.1->jupyter_client>=4.4.0->sas_kernel) (1.12.0)
Requirement already satisfied: parso>=0.5.0 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from jedi>=0.10->ipython>=4.0.0->sas_kernel) (0.5.1)
Requirement already satisfied: wcwidth in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from prompt-toolkit<2.1.0,>=2.0.0->ipython>=4.0.0->sas_kernel) (0.1.7)

However, getting a "kernel error" when trying to create a new jupyter notebook using the SAS kernel.

from sas_kernel.

tomweber-sas avatar tomweber-sas commented on September 17, 2024

Well, that shows that it didn't install anything, I'm guessing it was installed from you downloading it and installing directly? But you got some other error then?
Can you do an uninstall then a new install to see if that cleans it up?

from sas_kernel.

generic11 avatar generic11 commented on September 17, 2024

Thanks Tom. I uinstalled via pip uninstall sas_kernel, then attempted re-install. It looks like there are errors:
pip install sas_kernel
Collecting sas_kernel
Downloading https://files.pythonhosted.org/packages/af/9c/b22da1cf887a8aed6b59288d02c53671e67151e650143228f3c7f30bb983/SAS_kernel-2.2.0.tar.gz (84kB)
|████████████████████████████████| 92kB 1.5MB/s
Requirement already satisfied: saspy>=2.2.7 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from sas_kernel) (3.1.8)
Requirement already satisfied: pygments in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from sas_kernel) (2.4.2)
Requirement already satisfied: metakernel>=0.18.0 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from sas_kernel) (0.24.3)
Requirement already satisfied: jupyter_client>=4.4.0 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from sas_kernel) (5.3.3)
Requirement already satisfied: ipython>=4.0.0 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from sas_kernel) (7.8.0)
Requirement already satisfied: portalocker in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from metakernel>=0.18.0->sas_kernel) (1.5.2)
Requirement already satisfied: ipyparallel in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from metakernel>=0.18.0->sas_kernel) (6.2.4)
Requirement already satisfied: pexpect>=4.2 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from metakernel>=0.18.0->sas_kernel) (4.7.0)
Requirement already satisfied: ipykernel in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from metakernel>=0.18.0->sas_kernel) (5.1.3)
Requirement already satisfied: pywin32>=1.0; sys_platform == "win32" in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from jupyter_client>=4.4.0->sas_kernel) (223)
Requirement already satisfied: jupyter-core in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from jupyter_client>=4.4.0->sas_kernel) (4.5.0)
Requirement already satisfied: pyzmq>=13 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from jupyter_client>=4.4.0->sas_kernel) (18.1.0)
Requirement already satisfied: traitlets in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from jupyter_client>=4.4.0->sas_kernel) (4.3.3)
Requirement already satisfied: tornado>=4.1 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from jupyter_client>=4.4.0->sas_kernel) (6.0.3)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from jupyter_client>=4.4.0->sas_kernel) (2.8.0)
Requirement already satisfied: colorama; sys_platform == "win32" in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from ipython>=4.0.0->sas_kernel) (0.4.1)
Requirement already satisfied: setuptools>=18.5 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from ipython>=4.0.0->sas_kernel) (41.4.0)
Requirement already satisfied: decorator in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from ipython>=4.0.0->sas_kernel) (4.4.0)
Requirement already satisfied: prompt-toolkit<2.1.0,>=2.0.0 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from ipython>=4.0.0->sas_kernel) (2.0.10)
Requirement already satisfied: pickleshare in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from ipython>=4.0.0->sas_kernel) (0.7.5)
Requirement already satisfied: jedi>=0.10 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from ipython>=4.0.0->sas_kernel) (0.15.1)
Requirement already satisfied: backcall in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from ipython>=4.0.0->sas_kernel) (0.1.0)
Requirement already satisfied: ipython-genutils in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from ipyparallel->metakernel>=0.18.0->sas_kernel) (0.2.0)
Requirement already satisfied: ptyprocess>=0.5 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from pexpect>=4.2->metakernel>=0.18.0->sas_kernel) (0.6.0)
Requirement already satisfied: six in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from traitlets->jupyter_client>=4.4.0->sas_kernel) (1.12.0)
Requirement already satisfied: wcwidth in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from prompt-toolkit<2.1.0,>=2.0.0->ipython>=4.0.0->sas_kernel) (0.1.7)
Requirement already satisfied: parso>=0.5.0 in c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages (from jedi>=0.10->ipython>=4.0.0->sas_kernel) (0.5.1)
Building wheels for collected packages: sas-kernel
Building wheel for sas-kernel (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\userName\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\setup.py'"'"'; file='"'"'C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\userName\AppData\Local\Temp\pip-wheel-s7ei2fa0' --python-tag cp37
cwd: C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel
Complete output (123 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\lib\sas_kernel
copying sas_kernel\install.py -> build\lib\sas_kernel
copying sas_kernel\kernel.py -> build\lib\sas_kernel
copying sas_kernel\version.py -> build\lib\sas_kernel
copying sas_kernel_init_.py -> build\lib\sas_kernel
copying sas_kernel_main_.py -> build\lib\sas_kernel
creating build\lib\sas_kernel\data
copying sas_kernel\data_init_.py -> build\lib\sas_kernel\data
creating build\lib\sas_kernel\doc
copying sas_kernel\doc_init_.py -> build\lib\sas_kernel\doc
creating build\lib\sas_kernel\magics
copying sas_kernel\magics\log_magic.py -> build\lib\sas_kernel\magics
copying sas_kernel\magics\prompt4var_magic.py -> build\lib\sas_kernel\magics
copying sas_kernel\magics_init_.py -> build\lib\sas_kernel\magics
creating build\lib\sas_kernel\showSASLog
copying sas_kernel\showSASLog_init_.py -> build\lib\sas_kernel\showSASLog
creating build\lib\sas_kernel\theme
copying sas_kernel\theme_init_.py -> build\lib\sas_kernel\theme
creating build\lib\sas_kernel\doc\source
copying sas_kernel\doc\source\conf.py -> build\lib\sas_kernel\doc\source
copying sas_kernel\doc\source_init_.py -> build\lib\sas_kernel\doc\source
copying sas_kernel\Readme.md -> build\lib\sas_kernel
copying sas_kernel\data\sasgrammardictionary.json -> build\lib\sas_kernel\data
copying sas_kernel\data\sasgrammerdictionary.json -> build\lib\sas_kernel\data
copying sas_kernel\data\sasproclist.json -> build\lib\sas_kernel\data
copying sas_kernel\data\logo-64x64.png -> build\lib\sas_kernel\data
copying sas_kernel\magics\README.md -> build\lib\sas_kernel\magics
copying sas_kernel\showSASLog\main.js -> build\lib\sas_kernel\showSASLog
copying sas_kernel\showSASLog\readme.md -> build\lib\sas_kernel\showSASLog
copying sas_kernel\showSASLog\showSASLog.yaml -> build\lib\sas_kernel\showSASLog
copying sas_kernel\theme\theme_selector.js -> build\lib\sas_kernel\theme
copying sas_kernel\theme\readme.md -> build\lib\sas_kernel\theme
copying sas_kernel\theme\theme_selector.yaml -> build\lib\sas_kernel\theme
copying sas_kernel\theme\base16-sas-light.css -> build\lib\sas_kernel\theme
installing to build\bdist.win-amd64\wheel
running install
running install_lib
creating build\bdist.win-amd64
creating build\bdist.win-amd64\wheel
creating build\bdist.win-amd64\wheel\sas_kernel
creating build\bdist.win-amd64\wheel\sas_kernel\data
copying build\lib\sas_kernel\data\logo-64x64.png -> build\bdist.win-amd64\wheel.\sas_kernel\data
copying build\lib\sas_kernel\data\sasgrammardictionary.json -> build\bdist.win-amd64\wheel.\sas_kernel\data
copying build\lib\sas_kernel\data\sasgrammerdictionary.json -> build\bdist.win-amd64\wheel.\sas_kernel\data
copying build\lib\sas_kernel\data\sasproclist.json -> build\bdist.win-amd64\wheel.\sas_kernel\data
copying build\lib\sas_kernel\data_init_.py -> build\bdist.win-amd64\wheel.\sas_kernel\data
creating build\bdist.win-amd64\wheel\sas_kernel\doc
creating build\bdist.win-amd64\wheel\sas_kernel\doc\source
copying build\lib\sas_kernel\doc\source\conf.py -> build\bdist.win-amd64\wheel.\sas_kernel\doc\source
copying build\lib\sas_kernel\doc\source_init_.py -> build\bdist.win-amd64\wheel.\sas_kernel\doc\source
copying build\lib\sas_kernel\doc_init_.py -> build\bdist.win-amd64\wheel.\sas_kernel\doc
copying build\lib\sas_kernel\install.py -> build\bdist.win-amd64\wheel.\sas_kernel
copying build\lib\sas_kernel\kernel.py -> build\bdist.win-amd64\wheel.\sas_kernel
creating build\bdist.win-amd64\wheel\sas_kernel\magics
copying build\lib\sas_kernel\magics\log_magic.py -> build\bdist.win-amd64\wheel.\sas_kernel\magics
copying build\lib\sas_kernel\magics\prompt4var_magic.py -> build\bdist.win-amd64\wheel.\sas_kernel\magics
copying build\lib\sas_kernel\magics\README.md -> build\bdist.win-amd64\wheel.\sas_kernel\magics
copying build\lib\sas_kernel\magics_init_.py -> build\bdist.win-amd64\wheel.\sas_kernel\magics
copying build\lib\sas_kernel\Readme.md -> build\bdist.win-amd64\wheel.\sas_kernel
creating build\bdist.win-amd64\wheel\sas_kernel\showSASLog
copying build\lib\sas_kernel\showSASLog\main.js -> build\bdist.win-amd64\wheel.\sas_kernel\showSASLog
copying build\lib\sas_kernel\showSASLog\readme.md -> build\bdist.win-amd64\wheel.\sas_kernel\showSASLog
copying build\lib\sas_kernel\showSASLog\showSASLog.yaml -> build\bdist.win-amd64\wheel.\sas_kernel\showSASLog
copying build\lib\sas_kernel\showSASLog_init_.py -> build\bdist.win-amd64\wheel.\sas_kernel\showSASLog
creating build\bdist.win-amd64\wheel\sas_kernel\theme
copying build\lib\sas_kernel\theme\base16-sas-light.css -> build\bdist.win-amd64\wheel.\sas_kernel\theme
copying build\lib\sas_kernel\theme\readme.md -> build\bdist.win-amd64\wheel.\sas_kernel\theme
copying build\lib\sas_kernel\theme\theme_selector.js -> build\bdist.win-amd64\wheel.\sas_kernel\theme
copying build\lib\sas_kernel\theme\theme_selector.yaml -> build\bdist.win-amd64\wheel.\sas_kernel\theme
copying build\lib\sas_kernel\theme_init_.py -> build\bdist.win-amd64\wheel.\sas_kernel\theme
copying build\lib\sas_kernel\version.py -> build\bdist.win-amd64\wheel.\sas_kernel
copying build\lib\sas_kernel_init_.py -> build\bdist.win-amd64\wheel.\sas_kernel
copying build\lib\sas_kernel_main_.py -> build\bdist.win-amd64\wheel.\sas_kernel
running install_egg_info
running egg_info
writing SAS_kernel.egg-info\PKG-INFO
writing dependency_links to SAS_kernel.egg-info\dependency_links.txt
writing requirements to SAS_kernel.egg-info\requires.txt
writing top-level names to SAS_kernel.egg-info\top_level.txt
reading manifest file 'SAS_kernel.egg-info\SOURCES.txt'
writing manifest file 'SAS_kernel.egg-info\SOURCES.txt'
Copying SAS_kernel.egg-info to build\bdist.win-amd64\wheel.\SAS_kernel-2.2.0-py3.7.egg-info
C:\Users\userName\AppData\Local\Continuum\anaconda3\lib\site-packages\IPython\kernel_init_.py:13: ShimWarning: The IPython.kernel package has been deprecated since IPython 4.0.You should import from ipykernel or jupyter_client instead.
"You should import from ipykernel or jupyter_client instead.", ShimWarning)
Traceback (most recent call last):
File "C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\sas_kernel\install.py", line 58, in install_my_kernel_spec
install_kernel_spec(td, kernel_name, user=user, replace=True, prefix=prefix)
NameError: name 'install_kernel_spec' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\setup.py", line 66, in
"Topic :: System :: Shells"]
File "C:\Users\userName\AppData\Local\Continuum\anaconda3\lib\site-packages\setuptools_init_.py", line 145, in setup
return distutils.core.setup(**attrs)
File "C:\Users\userName\AppData\Local\Continuum\anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\userName\AppData\Local\Continuum\anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\userName\AppData\Local\Continuum\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\userName\AppData\Local\Continuum\anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 228, in run
self.run_command('install')
File "C:\Users\userName\AppData\Local\Continuum\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\userName\AppData\Local\Continuum\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\setup.py", line 43, in run
kernel_install.main(argv=sys.argv)
File "C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\sas_kernel\install.py", line 75, in main
install_my_kernel_spec(user=user, prefix=prefix)
File "C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\sas_kernel\install.py", line 60, in install_my_kernel_spec
install_kernel_spec(td, kernel_name, user=not user, replace=True, prefix=prefix)
NameError: name 'install_kernel_spec' is not defined
Please install either Jupyter to IPython before continuing
C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\sas_kernel\data

ERROR: Failed building wheel for sas-kernel
Running setup.py clean for sas-kernel
Failed to build sas-kernel
Installing collected packages: sas-kernel
Running setup.py install for sas-kernel ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\userName\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\setup.py'"'"'; file='"'"'C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\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\userName\AppData\Local\Temp\pip-record-rdh5wq08\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel
Complete output (128 lines):
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\sas_kernel
copying sas_kernel\install.py -> build\lib\sas_kernel
copying sas_kernel\kernel.py -> build\lib\sas_kernel
copying sas_kernel\version.py -> build\lib\sas_kernel
copying sas_kernel_init_.py -> build\lib\sas_kernel
copying sas_kernel_main_.py -> build\lib\sas_kernel
creating build\lib\sas_kernel\data
copying sas_kernel\data_init_.py -> build\lib\sas_kernel\data
creating build\lib\sas_kernel\doc
copying sas_kernel\doc_init_.py -> build\lib\sas_kernel\doc
creating build\lib\sas_kernel\magics
copying sas_kernel\magics\log_magic.py -> build\lib\sas_kernel\magics
copying sas_kernel\magics\prompt4var_magic.py -> build\lib\sas_kernel\magics
copying sas_kernel\magics_init_.py -> build\lib\sas_kernel\magics
creating build\lib\sas_kernel\showSASLog
copying sas_kernel\showSASLog_init_.py -> build\lib\sas_kernel\showSASLog
creating build\lib\sas_kernel\theme
copying sas_kernel\theme_init_.py -> build\lib\sas_kernel\theme
creating build\lib\sas_kernel\doc\source
copying sas_kernel\doc\source\conf.py -> build\lib\sas_kernel\doc\source
copying sas_kernel\doc\source_init_.py -> build\lib\sas_kernel\doc\source
copying sas_kernel\Readme.md -> build\lib\sas_kernel
copying sas_kernel\data\sasgrammardictionary.json -> build\lib\sas_kernel\data
copying sas_kernel\data\sasgrammerdictionary.json -> build\lib\sas_kernel\data
copying sas_kernel\data\sasproclist.json -> build\lib\sas_kernel\data
copying sas_kernel\data\logo-64x64.png -> build\lib\sas_kernel\data
copying sas_kernel\magics\README.md -> build\lib\sas_kernel\magics
copying sas_kernel\showSASLog\main.js -> build\lib\sas_kernel\showSASLog
copying sas_kernel\showSASLog\readme.md -> build\lib\sas_kernel\showSASLog
copying sas_kernel\showSASLog\showSASLog.yaml -> build\lib\sas_kernel\showSASLog
copying sas_kernel\theme\theme_selector.js -> build\lib\sas_kernel\theme
copying sas_kernel\theme\readme.md -> build\lib\sas_kernel\theme
copying sas_kernel\theme\theme_selector.yaml -> build\lib\sas_kernel\theme
copying sas_kernel\theme\base16-sas-light.css -> build\lib\sas_kernel\theme
running install_lib
creating C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel
creating C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\data
copying build\lib\sas_kernel\data\logo-64x64.png -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\data
copying build\lib\sas_kernel\data\sasgrammardictionary.json -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\data
copying build\lib\sas_kernel\data\sasgrammerdictionary.json -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\data
copying build\lib\sas_kernel\data\sasproclist.json -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\data
copying build\lib\sas_kernel\data_init_.py -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\data
creating C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\doc
creating C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\doc\source
copying build\lib\sas_kernel\doc\source\conf.py -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\doc\source
copying build\lib\sas_kernel\doc\source_init_.py -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\doc\source
copying build\lib\sas_kernel\doc_init_.py -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\doc
copying build\lib\sas_kernel\install.py -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel
copying build\lib\sas_kernel\kernel.py -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel
creating C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\magics
copying build\lib\sas_kernel\magics\log_magic.py -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\magics
copying build\lib\sas_kernel\magics\prompt4var_magic.py -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\magics
copying build\lib\sas_kernel\magics\README.md -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\magics
copying build\lib\sas_kernel\magics_init_.py -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\magics
copying build\lib\sas_kernel\Readme.md -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel
creating C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\showSASLog
copying build\lib\sas_kernel\showSASLog\main.js -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\showSASLog
copying build\lib\sas_kernel\showSASLog\readme.md -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\showSASLog
copying build\lib\sas_kernel\showSASLog\showSASLog.yaml -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\showSASLog
copying build\lib\sas_kernel\showSASLog_init_.py -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\showSASLog
creating C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\theme
copying build\lib\sas_kernel\theme\base16-sas-light.css -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\theme
copying build\lib\sas_kernel\theme\readme.md -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\theme
copying build\lib\sas_kernel\theme\theme_selector.js -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\theme
copying build\lib\sas_kernel\theme\theme_selector.yaml -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\theme
copying build\lib\sas_kernel\theme_init_.py -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\theme
copying build\lib\sas_kernel\version.py -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel
copying build\lib\sas_kernel_init_.py -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel
copying build\lib\sas_kernel_main_.py -> C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel
byte-compiling C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\data_init_.py to init.cpython-37.pyc
byte-compiling C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\doc\source\conf.py to conf.cpython-37.pyc
byte-compiling C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\doc\source_init_.py to init.cpython-37.pyc
byte-compiling C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\doc_init_.py to init.cpython-37.pyc
byte-compiling C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\install.py to install.cpython-37.pyc
byte-compiling C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\kernel.py to kernel.cpython-37.pyc
byte-compiling C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\magics\log_magic.py to log_magic.cpython-37.pyc
byte-compiling C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\magics\prompt4var_magic.py to prompt4var_magic.cpython-37.pyc
byte-compiling C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\magics_init_.py to init.cpython-37.pyc
byte-compiling C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\showSASLog_init_.py to init.cpython-37.pyc
byte-compiling C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\theme_init_.py to init.cpython-37.pyc
byte-compiling C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel\version.py to version.cpython-37.pyc
byte-compiling C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel_init_.py to init.cpython-37.pyc
byte-compiling C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\sas_kernel_main_.py to main.cpython-37.pyc
running install_egg_info
running egg_info
writing SAS_kernel.egg-info\PKG-INFO
writing dependency_links to SAS_kernel.egg-info\dependency_links.txt
writing requirements to SAS_kernel.egg-info\requires.txt
writing top-level names to SAS_kernel.egg-info\top_level.txt
reading manifest file 'SAS_kernel.egg-info\SOURCES.txt'
writing manifest file 'SAS_kernel.egg-info\SOURCES.txt'
Copying SAS_kernel.egg-info to C:\Users\userName\AppData\Local\Continuum\anaconda3\Lib\site-packages\SAS_kernel-2.2.0-py3.7.egg-info
writing list of installed files to 'C:\Users\userName\AppData\Local\Temp\pip-record-rdh5wq08\install-record.txt'
C:\Users\userName\AppData\Local\Continuum\anaconda3\lib\site-packages\IPython\kernel_init_.py:13: ShimWarning: The IPython.kernel package has been deprecated since IPython 4.0.You should import from ipykernel or jupyter_client instead.
"You should import from ipykernel or jupyter_client instead.", ShimWarning)
Traceback (most recent call last):
File "C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\sas_kernel\install.py", line 58, in install_my_kernel_spec
install_kernel_spec(td, kernel_name, user=user, replace=True, prefix=prefix)
NameError: name 'install_kernel_spec' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\setup.py", line 66, in <module>
    "Topic :: System :: Shells"]
  File "C:\Users\userName\AppData\Local\Continuum\anaconda3\lib\site-packages\setuptools\__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "C:\Users\userName\AppData\Local\Continuum\anaconda3\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Users\userName\AppData\Local\Continuum\anaconda3\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\Users\userName\AppData\Local\Continuum\anaconda3\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\setup.py", line 43, in run
    kernel_install.main(argv=sys.argv)
  File "C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\sas_kernel\install.py", line 75, in main
    install_my_kernel_spec(user=user, prefix=prefix)
  File "C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\sas_kernel\install.py", line 60, in install_my_kernel_spec
    install_kernel_spec(td, kernel_name, user=not user, replace=True, prefix=prefix)
NameError: name 'install_kernel_spec' is not defined
Please install either Jupyter to IPython before continuing
C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\sas_kernel\data
----------------------------------------

ERROR: Command errored out with exit status 1: 'C:\Users\userName\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\setup.py'"'"'; file='"'"'C:\Users\userName\AppData\Local\Temp\pip-install-4zokogyi\sas-kernel\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\userName\AppData\Local\Temp\pip-record-rdh5wq08\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

from sas_kernel.

tomweber-sas avatar tomweber-sas commented on September 17, 2024

Well, that seems to imply that Jupyter isn't installed, which seems off since that's been part of anaconda. Can you do a

pip show jupyter
pip show jupyter-client

And see what those show?

from sas_kernel.

generic11 avatar generic11 commented on September 17, 2024

Here is output from both commands. One thing to note, the "lib" folder referenced under Continuum/anaconda3 is capitalized as "Lib" with my current install of anaconda. (Not sure if that matters.)

pip show jupyter
Name: jupyter
Version: 1.0.0
Summary: Jupyter metapackage. Install all the Jupyter components in one go.
Home-page: http://jupyter.org
Author: Jupyter Development Team
Author-email: [email protected]
License: BSD
Location: c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages
Requires: jupyter-console, notebook, ipykernel, ipywidgets, qtconsole, nbconvert
Required-by:

pip show jupyter-client
Name: jupyter-client
Version: 5.3.3
Summary: Jupyter protocol implementation and client libraries
Home-page: https://jupyter.org
Author: Jupyter Development Team
Author-email: [email protected]
License: BSD
Location: c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages
Requires: pyzmq, traitlets, python-dateutil, pywin32, tornado, jupyter-core
Required-by: spyder-kernels, qtconsole, notebook, ipyparallel, ipykernel

from sas_kernel.

tomweber-sas avatar tomweber-sas commented on September 17, 2024

I'm unclear on what's going on here. I've looked at the source for jupyter_client.kernelspec, and it still has the same install_kernel_spec function. I wondered if it had changed in this newer version, but it hasn't.
The following is failing to find it when installing the sas_kernel.

try:
    from jupyter_client.kernelspec import install_kernel_spec
except ImportError:
    try:
        from IPython.kernel.kernelspec import install_kernel_spec
    except ImportError:
        print("Please install either Jupyter to IPython before continuing")

So, I don't know why install_kernel_spec isn't being found. It should be in the version you show.

Can you start that python, in the command prompt, and submit the import above and see if it fails?
from jupyter_client.kernelspec import install_kernel_spec

Do you have different anaconda environments, such that it's not in the one you have this installed in or something like that going on?

from sas_kernel.

tomweber-sas avatar tomweber-sas commented on September 17, 2024
C:\Users\sastpw>python
Python 3.6.0 |Anaconda 4.3.0 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from jupyter_client.kernelspec import install_kernel_spec
>>> install_kernel_spec
<function install_kernel_spec at 0x000001B4977A9E18>
>>> ^Z^Z

from sas_kernel.

generic11 avatar generic11 commented on September 17, 2024

Hi Tom, I dont have different anaconda environments. Do I need to be in the anaconda prompt for this? Just tried this in the standard cmd line...
Here is the result of trying python and then install_kernel_spec:

λ python
Python 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
Warning:
This Python interpreter is in a conda environment, but the environment has
not been activated. Libraries may fail to load. To activate this environment
please see https://conda.io/activation

Type "help", "copyright", "credits" or "license" for more information.

install_kernel_spec
Traceback (most recent call last):
File "", line 1, in
NameError: name 'install_kernel_spec' is not defined

from sas_kernel.

tomweber-sas avatar tomweber-sas commented on September 17, 2024

I don't see the import. This is what's failing:
from jupyter_client.kernelspec import install_kernel_spec

from sas_kernel.

tomweber-sas avatar tomweber-sas commented on September 17, 2024

It looks like this probably does have something to do with anaconda and the environment. You have the warning about it in that last post. What happens when you activate the envirnoment? I don't use Anaconda environments, so I just don't know what all has to be just right for them to work. I would expect that this would work, but I don't see what the error was when you tried this in the environment?

from sas_kernel.

generic11 avatar generic11 commented on September 17, 2024

"I don't see the import. This is what's failing:
from jupyter_client.kernelspec import install_kernel_spec"

What is the precise command to perform the import? Is it: import install_kernel_spec

Here is what I have tried:

From a cmd prompt, I enter:
λ conda activate base
C:
(base) λ python
Python 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.

import install_kernel_spec
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'install_kernel_spec'

from sas_kernel.

tomweber-sas avatar tomweber-sas commented on September 17, 2024

from jupyter_client.kernelspec import install_kernel_spec

from sas_kernel.

generic11 avatar generic11 commented on September 17, 2024

Ahh got it. It seems to install without errorrs:

>>> from jupyter_client.kernelspec import install_kernel_spec
>>> install_kernel_spec
<function install_kernel_spec at 0x000001889D69A0D8>
>>>

from sas_kernel.

tomweber-sas avatar tomweber-sas commented on September 17, 2024

So, is that in what shell? In anaconda, or without? Was that from the same place you ran the install for sas_kernel, that can't import that module?

from sas_kernel.

generic11 avatar generic11 commented on September 17, 2024

That was after running 'conda activate base' from a standard cmd prompt. The prompt includes (base) at his point. I assume it is now the anaconda prompt after issuing that command?

from sas_kernel.

tomweber-sas avatar tomweber-sas commented on September 17, 2024

So, then, that's not the way you ran the install. So what happens when you try to install now, after activating the environment? Probably need to uninstall/install. And, I still expect that if you had tried the import in the same state that you tried the install (not having activated the environment), it would have failed? But I don't have that test case.

from sas_kernel.

generic11 avatar generic11 commented on September 17, 2024

That did it. Seems to be working now. Thanks Tom!

from sas_kernel.

tomweber-sas avatar tomweber-sas commented on September 17, 2024

really? Well, that's good. Not sure I understand, but that's not really the important part I suppose :)

from sas_kernel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.