-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError: invalid syntax ERROR: could not load C:\**\**\conftest.py #3354
Comments
it looks like you try to run python3 code with python2 the syntax on the last line is supported on python 3 and not on python2 as far as i can tell pytest cant help that at all, please set up your env correctly |
@RonnyPfannschmidt thanks for an update in env I have to set python.exe path or something more?? |
i am not fluent with python version setup on windows, |
I agree this isn't any kind of pytest issue. |
@akra7777 on Windows you can use the
But this is indeed not related to pytest itself, is basic Python environment setup. I'm sure there are plenty of tutorials on the web about that, you should also look in how to setup virtual environments or using |
Traceback (most recent call last):
File "c:\python27\lib\site-packages_pytest\config.py", line 371, in importco nftest
mod = conftestpath.pyimport()
File "c:\python27\lib\site-packages\py_path\local.py", line 668, in pyimport
import(modname)
File "c:\python27\lib\site-packages_pytest\assertion\rewrite.py", line 213, i n load_module
py.builtin.exec(co, mod.dict)
File "c:\python27\lib\site-packages\py_builtin.py", line 221, in exec_
exec2(obj, globals, locals)
File "", line 7, in exec2
File "C:**\conftest.py", line 8, in
from lambo_dbus import LamboDbus
File "C:**\samp_dbus.py", line 108
def on_signal_received(self, args, received_signal_name):
^
SyntaxError: invalid syntax
ERROR: could not load C:***\conftest.py
The text was updated successfully, but these errors were encountered: