Skip to content
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

NameError: name 'raw_input' is not defined #5

Open
pixelwaster opened this issue May 10, 2021 · 1 comment
Open

NameError: name 'raw_input' is not defined #5

pixelwaster opened this issue May 10, 2021 · 1 comment

Comments

@pixelwaster
Copy link

Ladyada sent me here, sort of, https://www.youtube.com/watch?v=tAKLygjfO_U

I am using Python 3.9 on Windows 19. I am trying to run the script tagscript.py using PyNPP. All but one of the print statements were missing parentheses. While I am not versed in Python, I can read and understand some of it. The output below however has stopped me.

Make sure the python script is in the same folder as the file.
Traceback (most recent call last):
  File "C:\Users\Michael\Documents\Graphical_Datasheets\tagscript.py", line 107, in <module>
    myfile = raw_input("Enter file name without the .csv extension (eg. ESP8266/Thing): ")
NameError: name 'raw_input' is not defined
@bboyho
Copy link
Contributor

bboyho commented Jul 2, 2021

Hi!

Sorry, I just saw this when updating something. The script was originally written for Python 2 as opposed to Python 3. What I can say from the error is that it looks like a compatibility issue between Python 2 and 3 and the associated packages (e.g. certain functions that were defined for Python 2 do not work for Python 3). I've just been using the old packages and Python 2.

It's been on my mind to revisit mshorter's Python script. Hmm, I'll need to put this in my queue to update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants