Title: Exception on import · Issue #10 · vpython/visual · GitHub
Open Graph Title: Exception on import · Issue #10 · vpython/visual
X Title: Exception on import · Issue #10 · vpython/visual
Description: Vpython is unable to be imported on Ubuntu 16.04. $ virtualenv .env $ . .env/bin/activate $ pip install vpython Collecting vpython Downloading vpython-1.0.9.tar.gz (2.5MB) 100% |################################| 2.5MB 451kB/s Collecting ...
Open Graph Description: Vpython is unable to be imported on Ubuntu 16.04. $ virtualenv .env $ . .env/bin/activate $ pip install vpython Collecting vpython Downloading vpython-1.0.9.tar.gz (2.5MB) 100% |###################...
X Description: Vpython is unable to be imported on Ubuntu 16.04. $ virtualenv .env $ . .env/bin/activate $ pip install vpython Collecting vpython Downloading vpython-1.0.9.tar.gz (2.5MB) 100% |###################...
Opengraph URL: https://github.com/vpython/visual/issues/10
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Exception on import","articleBody":"Vpython is unable to be imported on Ubuntu 16.04.\n\n```\n$ virtualenv .env\n$ . .env/bin/activate\n$ pip install vpython\nCollecting vpython\n Downloading vpython-1.0.9.tar.gz (2.5MB)\n 100% |################################| 2.5MB 451kB/s \nCollecting jupyter (from vpython)\n Downloading jupyter-1.0.0-py2.py3-none-any.whl\nCollecting vpnotebook (from vpython)\n Downloading vpnotebook-0.1.3.zip\nCollecting ipykernel (from jupyter-\u003evpython)\n Downloading ipykernel-4.5.0-py2.py3-none-any.whl (97kB)\n 100% |################################| 102kB 1.5MB/s \nCollecting jupyter-console (from jupyter-\u003evpython)\n Downloading jupyter_console-5.0.0-py2.py3-none-any.whl\nCollecting qtconsole (from jupyter-\u003evpython)\n Downloading qtconsole-4.2.1-py2.py3-none-any.whl (104kB)\n 100% |################################| 112kB 1.2MB/s \nCollecting notebook (from jupyter-\u003evpython)\n Downloading notebook-4.2.3-py2.py3-none-any.whl (6.7MB)\n 100% |################################| 6.7MB 193kB/s \nCollecting ipywidgets (from jupyter-\u003evpython)\n Downloading ipywidgets-5.2.2-py2.py3-none-any.whl (43kB)\n 100% |################################| 51kB 4.5MB/s \nCollecting nbconvert (from jupyter-\u003evpython)\n Downloading nbconvert-4.2.0-py2.py3-none-any.whl (319kB)\n 100% |################################| 327kB 2.0MB/s \nCollecting ipython\u003e=4.0.0 (from ipykernel-\u003ejupyter-\u003evpython)\n Using cached ipython-5.1.0-py2-none-any.whl\nCollecting traitlets\u003e=4.1.0 (from ipykernel-\u003ejupyter-\u003evpython)\n Downloading traitlets-4.3.1-py2.py3-none-any.whl (74kB)\n 100% |################################| 81kB 2.7MB/s \nRequirement already satisfied (use --upgrade to upgrade): tornado\u003e=4.0 in /usr/lib/python2.7/dist-packages (from ipykernel-\u003ejupyter-\u003evpython)\nCollecting jupyter-client (from ipykernel-\u003ejupyter-\u003evpython)\n Downloading jupyter_client-4.4.0-py2.py3-none-any.whl (76kB)\n 100% |################################| 81kB 1.4MB/s \nCollecting prompt-toolkit\u003c2.0.0,\u003e=1.0.0 (from jupyter-console-\u003ejupyter-\u003evpython)\n Downloading prompt_toolkit-1.0.8-py2-none-any.whl (240kB)\n 100% |################################| 245kB 2.3MB/s \nRequirement already satisfied (use --upgrade to upgrade): pygments in /usr/lib/python2.7/dist-packages (from jupyter-console-\u003ejupyter-\u003evpython)\nCollecting jupyter-core (from qtconsole-\u003ejupyter-\u003evpython)\n Downloading jupyter_core-4.2.0-py2.py3-none-any.whl (76kB)\n 100% |################################| 81kB 5.5MB/s \nCollecting ipython-genutils (from notebook-\u003ejupyter-\u003evpython)\n Using cached ipython_genutils-0.1.0-py2.py3-none-any.whl\nCollecting nbformat (from notebook-\u003ejupyter-\u003evpython)\n Downloading nbformat-4.1.0-py2.py3-none-any.whl (140kB)\n 100% |################################| 143kB 2.1MB/s \nRequirement already satisfied (use --upgrade to upgrade): jinja2 in /myproject/.env/lib/python2.7/site-packages (from notebook-\u003ejupyter-\u003evpython)\nCollecting terminado\u003e=0.3.3; sys_platform != \"win32\" (from notebook-\u003ejupyter-\u003evpython)\n Downloading terminado-0.6.tar.gz\nCollecting widgetsnbextension\u003e=1.2.6 (from ipywidgets-\u003ejupyter-\u003evpython)\n Downloading widgetsnbextension-1.2.6-py2.py3-none-any.whl (1.5MB)\n 100% |################################| 1.5MB 829kB/s \nCollecting entrypoints (from nbconvert-\u003ejupyter-\u003evpython)\n Downloading entrypoints-0.2.2-py2.py3-none-any.whl\nCollecting mistune!=0.6 (from nbconvert-\u003ejupyter-\u003evpython)\n Downloading mistune-0.7.3-py2.py3-none-any.whl\nCollecting pickleshare (from ipython\u003e=4.0.0-\u003eipykernel-\u003ejupyter-\u003evpython)\n Using cached pickleshare-0.7.4-py2.py3-none-any.whl\nCollecting backports.shutil-get-terminal-size; python_version == \"2.7\" (from ipython\u003e=4.0.0-\u003eipykernel-\u003ejupyter-\u003evpython)\n Using cached backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.whl\nRequirement already satisfied (use --upgrade to upgrade): decorator in /usr/lib/python2.7/dist-packages (from ipython\u003e=4.0.0-\u003eipykernel-\u003ejupyter-\u003evpython)\nRequirement already satisfied (use --upgrade to upgrade): simplegeneric\u003e0.8 in /usr/lib/python2.7/dist-packages (from ipython\u003e=4.0.0-\u003eipykernel-\u003ejupyter-\u003evpython)\nRequirement already satisfied (use --upgrade to upgrade): pexpect; sys_platform != \"win32\" in /usr/lib/python2.7/dist-packages (from ipython\u003e=4.0.0-\u003eipykernel-\u003ejupyter-\u003evpython)\nCollecting pathlib2; python_version == \"2.7\" or python_version == \"3.3\" (from ipython\u003e=4.0.0-\u003eipykernel-\u003ejupyter-\u003evpython)\n Using cached pathlib2-2.1.0-py2.py3-none-any.whl\nRequirement already satisfied (use --upgrade to upgrade): setuptools\u003e=18.5 in /myproject/.env/lib/python2.7/site-packages (from ipython\u003e=4.0.0-\u003eipykernel-\u003ejupyter-\u003evpython)\nRequirement already satisfied (use --upgrade to upgrade): enum34; python_version == \"2.7\" in /usr/lib/python2.7/dist-packages (from traitlets\u003e=4.1.0-\u003eipykernel-\u003ejupyter-\u003evpython)\nRequirement already satisfied (use --upgrade to upgrade): six in /myproject/.env/lib/python2.7/site-packages (from traitlets\u003e=4.1.0-\u003eipykernel-\u003ejupyter-\u003evpython)\nRequirement already satisfied (use --upgrade to upgrade): pyzmq\u003e=13 in /usr/lib/python2.7/dist-packages (from jupyter-client-\u003eipykernel-\u003ejupyter-\u003evpython)\nCollecting wcwidth (from prompt-toolkit\u003c2.0.0,\u003e=1.0.0-\u003ejupyter-console-\u003ejupyter-\u003evpython)\n Using cached wcwidth-0.1.7-py2.py3-none-any.whl\nCollecting jsonschema!=2.5.0,\u003e=2.0 (from nbformat-\u003enotebook-\u003ejupyter-\u003evpython)\n Downloading jsonschema-2.5.1-py2.py3-none-any.whl\nRequirement already satisfied (use --upgrade to upgrade): MarkupSafe in /myproject/.env/lib/python2.7/site-packages (from jinja2-\u003enotebook-\u003ejupyter-\u003evpython)\nRequirement already satisfied (use --upgrade to upgrade): ptyprocess in /usr/lib/python2.7/dist-packages (from terminado\u003e=0.3.3; sys_platform != \"win32\"-\u003enotebook-\u003ejupyter-\u003evpython)\nRequirement already satisfied (use --upgrade to upgrade): configparser\u003e=3.5; python_version == \"2.7\" in /usr/local/lib/python2.7/dist-packages (from entrypoints-\u003enbconvert-\u003ejupyter-\u003evpython)\nCollecting functools32; python_version == \"2.7\" (from jsonschema!=2.5.0,\u003e=2.0-\u003enbformat-\u003enotebook-\u003ejupyter-\u003evpython)\n Downloading functools32-3.2.3-2.zip\nBuilding wheels for collected packages: vpython, vpnotebook, terminado, functools32\n Running setup.py bdist_wheel for vpython ... done\n Stored in directory: /home/chris/.cache/pip/wheels/90/06/31/8fc520c9ec44de940a4db5cd9e8bb93c2e24224e0b1c93c69b\n Running setup.py bdist_wheel for vpnotebook ... error\n Complete output from command /myproject/.env/bin/python -u -c \"import setuptools, tokenize;__file__='/tmp/pip-build-QU3baz/vpnotebook/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" bdist_wheel -d /tmp/tmpcYA7nRpip-wheel- --python-tag cp27:\n ImportError install_kernel_spec\n /myproject/.env/local/lib/python2.7/site-packages/setuptools/dist.py:331: UserWarning: Normalizing '0.1.03' to '0.1.3'\n normalized_version,\n running bdist_wheel\n running build\n running build_py\n creating build\n creating build/lib.linux-x86_64-2.7\n creating build/lib.linux-x86_64-2.7/vpnotebook\n copying vpnotebook/__init__.py -\u003e build/lib.linux-x86_64-2.7/vpnotebook\n creating build/lib.linux-x86_64-2.7/vpnotebook/data\n copying vpnotebook/data/kernel.json -\u003e build/lib.linux-x86_64-2.7/vpnotebook/data\n installing to build/bdist.linux-x86_64/wheel\n running install\n Installing Python module...\n running install_lib\n creating build/bdist.linux-x86_64\n creating build/bdist.linux-x86_64/wheel\n creating build/bdist.linux-x86_64/wheel/vpnotebook\n creating build/bdist.linux-x86_64/wheel/vpnotebook/data\n copying build/lib.linux-x86_64-2.7/vpnotebook/data/kernel.json -\u003e build/bdist.linux-x86_64/wheel/vpnotebook/data\n copying build/lib.linux-x86_64-2.7/vpnotebook/__init__.py -\u003e build/bdist.linux-x86_64/wheel/vpnotebook\n running install_egg_info\n running egg_info\n writing vpnotebook.egg-info/PKG-INFO\n writing top-level names to vpnotebook.egg-info/top_level.txt\n writing dependency_links to vpnotebook.egg-info/dependency_links.txt\n warning: manifest_maker: standard file '-c' not found\n\n reading manifest file 'vpnotebook.egg-info/SOURCES.txt'\n writing manifest file 'vpnotebook.egg-info/SOURCES.txt'\n Copying vpnotebook.egg-info to build/bdist.linux-x86_64/wheel/vpnotebook-0.1.3-py2.7.egg-info\n running install_scripts\n Installing custom kernel ...\n Traceback (most recent call last):\n File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\n File \"/tmp/pip-build-QU3baz/vpnotebook/setup.py\", line 30, in \u003cmodule\u003e\n package_data={'vpnotebook': ['data/kernel.json']},\n File \"/usr/lib/python2.7/distutils/core.py\", line 151, in setup\n dist.run_commands()\n File \"/usr/lib/python2.7/distutils/dist.py\", line 953, in run_commands\n self.run_command(cmd)\n File \"/usr/lib/python2.7/distutils/dist.py\", line 972, in run_command\n cmd_obj.run()\n File \"/myproject/.env/local/lib/python2.7/site-packages/wheel/bdist_wheel.py\", line 235, in run\n self.run_command('install')\n File \"/usr/lib/python2.7/distutils/cmd.py\", line 326, in run_command\n self.distribution.run_command(command)\n File \"/usr/lib/python2.7/distutils/dist.py\", line 972, in run_command\n cmd_obj.run()\n File \"vpnotebook/__init__.py\", line 72, in run\n run_kernel_install(False)\n File \"vpnotebook/__init__.py\", line 63, in run_kernel_install\n install_kernel_spec(source_dir, kernel_name='vpython', user=user)\n NameError: free variable 'install_kernel_spec' referenced before assignment in enclosing scope\n\n ----------------------------------------\n Failed building wheel for vpnotebook\n Running setup.py clean for vpnotebook\n Running setup.py bdist_wheel for terminado ... done\n Stored in directory: /home/chris/.cache/pip/wheels/3b/c2/ea/af635ffb63857a8c2ddd22da6a4b52f5b7ea3065db94ef5d7c\n Running setup.py bdist_wheel for functools32 ... done\n Stored in directory: /home/chris/.cache/pip/wheels/3c/d0/09/cd78d0ff4d6cfecfbd730782a7815a4571cd2cd4d2ed6e69d9\nSuccessfully built vpython terminado functools32\nFailed to build vpnotebook\nInstalling collected packages: pathlib2, pickleshare, wcwidth, prompt-toolkit, ipython-genutils, traitlets, backports.shutil-get-terminal-size, ipython, jupyter-core, jupyter-client, ipykernel, jupyter-console, qtconsole, functools32, jsonschema, nbformat, entrypoints, mistune, nbconvert, terminado, notebook, widgetsnbextension, ipywidgets, jupyter, vpnotebook, vpython\n Found existing installation: ipython 2.4.1\n Not uninstalling ipython at /usr/lib/python2.7/dist-packages, outside environment /myproject/.env\n Running setup.py install for vpnotebook ... done\nSuccessfully installed backports.shutil-get-terminal-size-1.0.0 entrypoints-0.2.2 functools32-3.2.3.post2 ipykernel-4.5.0 ipython-5.1.0 ipython-genutils-0.1.0 ipywidgets-5.2.2 jsonschema-2.5.1 jupyter-1.0.0 jupyter-client-4.4.0 jupyter-console-5.0.0 jupyter-core-4.2.0 mistune-0.7.3 nbconvert-4.2.0 nbformat-4.1.0 notebook-4.2.3 pathlib2-2.1.0 pickleshare-0.7.4 prompt-toolkit-1.0.8 qtconsole-4.2.1 terminado-0.6 traitlets-4.3.1 vpnotebook-0.1.3 vpython-1.0.9 wcwidth-0.1.7 widgetsnbextension-1.2.6\n$ python\nPython 2.7.12 (default, Jul 1 2016, 15:12:24) \n[GCC 5.4.0 20160609] on linux2\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\u003e\u003e\u003e import vpython\nTraceback (most recent call last):\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n File \"/myproject/.env/local/lib/python2.7/site-packages/vpython/__init__.py\", line 10, in \u003cmodule\u003e\n from .vpython import *\n File \"/myproject/.env/local/lib/python2.7/site-packages/vpython/vpython.py\", line 442, in \u003cmodule\u003e\n get_ipython().kernel.comm_manager.register_target('glow', GlowWidget)\nAttributeError: 'NoneType' object has no attribute 'kernel'\n```\n","author":{"url":"https://github.com/chrisspen","@type":"Person","name":"chrisspen"},"datePublished":"2016-10-24T14:10:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/10/visual/issues/10"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:865f81a3-e874-2097-0530-3e6d7ab2fe5a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8946:242157:945436A:C088B9A:6976129D |
| html-safe-nonce | ec649c161d06a856d7580b275942e40bc87d3c210d4317540effa2156a8f440d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTQ2OjI0MjE1Nzo5NDU0MzZBOkMwODhCOUE6Njk3NjEyOUQiLCJ2aXNpdG9yX2lkIjoiNTg0NzM4NjI0OTMwOTc2NDEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | af5e726adca1e9d34a8ac811c9957876caef6431aeec9deeda948bd3c377fc24 |
| hovercard-subject-tag | issue:184851751 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/vpython/visual/10/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8144e36d4636a72313dfca0acf9853c28d94759c13f55676d538d78977d7ba55/vpython/visual/issues/10 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8144e36d4636a72313dfca0acf9853c28d94759c13f55676d538d78977d7ba55/vpython/visual/issues/10 |
| og:image:alt | Vpython is unable to be imported on Ubuntu 16.04. $ virtualenv .env $ . .env/bin/activate $ pip install vpython Collecting vpython Downloading vpython-1.0.9.tar.gz (2.5MB) 100% |###################... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chrisspen |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6814b4cc7afd45cd6e64525d0cff0e76dd802f315a5b0e55a7abda1d1d070d0 |
| turbo-cache-control | no-preview |
| go-import | github.com/vpython/visual git https://github.com/vpython/visual.git |
| octolytics-dimension-user_id | 1280757 |
| octolytics-dimension-user_login | vpython |
| octolytics-dimension-repository_id | 3045458 |
| octolytics-dimension-repository_nwo | vpython/visual |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3045458 |
| octolytics-dimension-repository_network_root_nwo | vpython/visual |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4ea235bfed58ef16c8a5642b3ac64b74f10c9f52 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width