error en sys.excepthook

95 views
Skip to first unread message

guillermo lorca

unread,
Mar 2, 2018, 8:47:33 AM3/2/18
to VPython-users
hello. installed vpython following this instruccions:

·         In a Power Shell or Command Prompt (Windows) or Terminal (Mac / Linux) run this command, which will install VPython 7 for Python 2.7, 3.4, 3.5, or 3.6:
pip install vpython

      Or if using Anaconda, conda install -c vpython vpython

 

     There will be frequent updates to this module. You can get the latest version this way:
pip install vpython --upgrade

      Or if using Anaconda, conda update -c vpython vpython

df

the error is:


Traceback (most recent call last):
  File "prueba.py", line 2, in <module>
    from vpython import *
ModuleNotFoundError: No module named 'vpython'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>
    import subprocess, tempfile, os.path, re, pwd, grp, os, time
  File "/usr/lib/python3.6/subprocess.py", line 136, in <module>
    import _posixsubprocess
ModuleNotFoundError: No module named '_posixsubprocess'

Original exception was:
Traceback (most recent call last):
  File "prueba.py", line 2, in <module>
    from vpython import *
ModuleNotFoundError: No module named 'vpython'


vVersion Python Installed:python 3.7

linux: ubuntu 17.10


thnaks for your help!


Bruce Sherwood

unread,
Mar 2, 2018, 10:18:51 AM3/2/18
to VPython-users
You don't say whether you used pip or conda to install, but it appears that you did not install Anaconda, which provides better support. It installs many dependencies that make installation of vpython have fewer problems.

Do try installing Anaconda and using the conda command to install vpython. 

Bruce

guillermo lorca

unread,
Mar 2, 2018, 12:27:10 PM3/2/18
to vpytho...@googlegroups.com
i reinstalled ubuntu and installed vpython with pip and conda. that worked fine. thanks!!

--
You received this message because you are subscribed to a topic in the Google Groups "VPython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vpython-users/DmaYVp7i8Yk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages