Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic programming problem
#1
Could You tell me, what wrong with this code is, please?
python import myfile

Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: source code string cannot contain null bytes
Reply
#2
There is something wrong with the way you saved your file, and for some reason in has a null byte in it.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can someone help me solve this programming problem? SuchUmami 6 832 Nov-20-2023, 10:01 AM
Last Post: EdwardMatthew
Question Linear Programming Problem Axel_LF 0 698 Feb-23-2023, 11:03 PM
Last Post: Axel_LF
Lightbulb Object Oriented programming (OOP) problem OmegaRed94 6 2,860 May-31-2021, 07:19 PM
Last Post: OmegaRed94
  python 3 raspberry pi 4 dual control motor programming problem yome 0 1,938 Mar-21-2021, 05:17 PM
Last Post: yome
  Problem with Basic Rock Paper Scissors code BirinderSingh 3 2,384 Sep-13-2019, 03:28 PM
Last Post: ichabod801
  Very basic programming help needed: pig latin program bstocks 2 7,941 Dec-02-2017, 08:12 AM
Last Post: RickyWilson
  Incredibly basic coding problem AndyF 12 8,417 Feb-11-2017, 03:52 PM
Last Post: AndyF

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020