Python Forum
Error on import: SyntaxError: source code string cannot contain null bytes
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error on import: SyntaxError: source code string cannot contain null bytes
#2
Make sure your python program has a different filename than the module you are importing.
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply


Messages In This Thread
RE: Error on import: SyntaxError: source code string cannot contain null bytes - by DPaul - Aug-01-2023, 03:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  delivery exe without source code py loky62 2 436 Apr-04-2024, 05:47 PM
Last Post: loky62
  Algorithm for extracting comments from Python source code Pavel1982 6 742 Feb-28-2024, 09:52 PM
Last Post: Pavel1982
  How to express null value klatlap 3 951 Mar-25-2023, 10:40 AM
Last Post: klatlap
  import module error tantony 5 3,639 Dec-15-2022, 01:55 PM
Last Post: Lauraburmrs
  Cryptic Error with import statement Led_Zeppelin 2 2,660 Jan-11-2022, 01:13 PM
Last Post: Led_Zeppelin
  Install any library via pip get an error cannot import name 'SCHEME_KEYS' from 'pip. Anldra12 2 10,893 Jan-04-2022, 01:05 PM
Last Post: Anldra12
  value null when update in json file 3lnyn0 6 3,589 Dec-30-2021, 05:52 PM
Last Post: ndc85430
  No Module found in other directory than source code [SOLVED] AlphaInc 1 2,158 Nov-10-2021, 04:34 PM
Last Post: AlphaInc
  Generating classes diagram from source code Pavel_47 3 5,932 Oct-01-2021, 03:31 AM
Last Post: Lou
  How do I open the Source code of a library? JaneTan 1 2,359 Aug-18-2021, 02:12 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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