Closed Kochise closed 1 year ago
Out of curiosity, how do you run the examples I never noticed this issue before ?
Microsoft Windows [version 10.0.19042.1165]
(c) Microsoft Corporation. Tous droits réservés.
C:\Program Files\Spyder\Python>python --version
Python 3.7.9
C:\Program Files\Spyder\Python>set
HOMEDRIVE=C:
HOMEPATH=\Users\dkoch
LOCALAPPDATA=C:\Users\dkoch\AppData\Local
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files (x86)
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PYSDL2_DLL_PATH=C:\Program Files\Spyder\lib
PYTHONHOME=C:\Program Files\Spyder\Python
PYTHONPATH=C:\Program Files\Spyder\Python;C:\Program Files\Spyder\Python\Lib;C:\Program Files\Spyder\Python\Scripts
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\dkoch\AppData\Local\Temp
TMP=C:\Users\dkoch\AppData\Local\Temp
USERNAME=dkoch
USERPROFILE=C:\Users\dkoch
windir=C:\WINDOWS
C:\Program Files\Spyder\Python>python "c:\Users\dkoch\Downloads\DIVERS\enaml-main\examples\tutorial\employee\employee.py"
received new phone number for Mary: {'type': 'create', 'object': <__main__.Employee object at 0x000001180BE0AF48>, 'name': 'phone', 'value': (555, 555, 5555)}
Traceback (most recent call last):
File "c:\Users\dkoch\Downloads\DIVERS\enaml-main\examples\tutorial\employee\employee.py", line 109, in <module>
main()
File "c:\Users\dkoch\Downloads\DIVERS\enaml-main\examples\tutorial\employee\employee.py", line 99, in main
from employee_view import EmployeeView
ModuleNotFoundError: No module named 'employee_view'
C:\Program Files\Spyder\Python>cd C:\Users\dkoch\Downloads\DIVERS\enaml-main\examples\tutorial\employee\
C:\Users\dkoch\Downloads\DIVERS\enaml-main\examples\tutorial\employee>"C:\Program Files\Spyder\Python\python.exe" employee.py
received new phone number for Mary: {'type': 'create', 'object': <__main__.Employee object at 0x000002B39DFED148>, 'name': 'phone', 'value': (555, 555, 5555)}
Traceback (most recent call last):
File "employee.py", line 109, in <module>
main()
File "employee.py", line 99, in main
from employee_view import EmployeeView
ModuleNotFoundError: No module named 'employee_view'
Making the change :
C:\Program Files\Spyder\Python>python "c:\Users\dkoch\Downloads\DIVERS\enaml-main\examples\tutorial\employee\employee.py"
received new phone number for Mary: {'type': 'create', 'object': <__main__.Employee object at 0x00000242F4590408>, 'name': 'phone', 'value': (555, 555, 5555)}
C:\Program Files\Spyder\Python>cd C:\Users\dkoch\Downloads\DIVERS\enaml-main\examples\tutorial\employee\
C:\Users\dkoch\Downloads\DIVERS\enaml-main\examples\tutorial\employee>"C:\Program Files\Spyder\Python\python.exe" employee.py
received new phone number for Mary: {'type': 'create', 'object': <__main__.Employee object at 0x00000201C7690508>, 'name': 'phone', 'value': (555, 555, 5555)}
C:\Users\dkoch\Downloads\DIVERS\enaml-main\examples\tutorial\employee>
For reference, obviously someone else did experience a similar issue and made this :
Some examples requires it somehow