Import sys; ... and not running my code

Answered

I am a Noob. I am following a course, and I have triple checked that everything is a-okay with my code, compared to professors. But I simply cant run my code. This comes up in the console: 

/Users/MadsTrundte/PycharmProjects/Battle/venv/bin/python "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevconsole.py" 56968 56969


import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['/Users/MadsTrundte/PycharmProjects/Battle'])

 

The console is working, I can perform rudimentary actions, but I cant event print from my code. 

This is from a new project, and my other projects does not show the same message as above, and work fine. 

0
2 comments

Hello,
>  I simply cant run my code

Could you please clarify, how do you try to run your code in Pycharm? Do you see any errors? Could you please attach a screenshot that shows the problem? Please also see https://www.jetbrains.com/help/pycharm/running-applications.html#run-script.

 

0
Avatar
Permanently deleted user

Hi Anna, 

I very much appreciate your help!

I been on the help page, no luck. 

Thank you





0

Please sign in to leave a comment.