I encounter the invalid syntax error below, when I run pypy, even when epto.py and conf_epto is located within the directory C:\Users\Acer\pypy2.7-v7.0.0-win32.
(snakes) C:\Users\Acer\pypy2.7-v7.0.0-win32>pypy
Python 2.7.13 (9112c8071614, Feb 06 2019, 23:10:08)
[PyPy 7.0.0 with MSC v.1500 32 bit] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>> pypy epto.py conf_epto 1
File "<stdin>", line 1
pypy epto.py conf_epto 1
^
SyntaxError: invalid syntax
>>>>
As per advise, I install the PyYaml package and I run again outside pypy console, as shown below:
(snakes) C:\Users\Acer\pypy2.7-v7.0.0-win32>pip install PyYaml
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting PyYaml
Downloading https://files.pythonhosted.org/packages/1a/d6/b082e72e4556c2ef3dd9ec122f886b341187d677f32ee3081888762ab38d/PyYAML-5.1-cp27-cp27m-win_amd64.whl (210kB)
100% |################################| 215kB 297kB/s
Installing collected packages: PyYaml
Successfully installed PyYaml-5.1
(snakes) C:\Users\Acer\pypy2.7-v7.0.0-win32>pypy epto.py conf_epto 1
Traceback (most recent call last):
File "epto.py", line 14, in <module>
import yaml
ImportError: No module named yaml