Python Forum
Getting Import error in Python program
Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Import error in Python program
#4
Hello!
The dir2.py must be in the same directory as main.py. Or you have to add the path to it in the PYTHONPATH environment variable.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
RE: Getting Import error in Python program - by wavic - Feb-23-2017, 08:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error on import: SyntaxError: source code string cannot contain null bytes kirkwilliams2049 7 8,174 Aug-03-2023, 06:00 PM
Last Post: Gribouillis
  import module error tantony 5 3,735 Dec-15-2022, 01:55 PM
Last Post: Lauraburmrs
  Cryptic Error with import statement Led_Zeppelin 2 2,721 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 11,032 Jan-04-2022, 01:05 PM
Last Post: Anldra12
  getting an import statement to work in my program barryjo 1 1,758 Dec-06-2021, 04:28 PM
Last Post: snippsat
  import module with syntax error Skaperen 7 5,647 Jun-22-2021, 10:38 AM
Last Post: Skaperen
  Import Error Christian 3 3,381 Apr-17-2021, 11:27 PM
Last Post: bowlofred
  Folium import error kashif_flavio 2 3,853 Dec-07-2020, 08:58 AM
Last Post: bowlofred
  Import error Beingcode 0 2,595 Nov-20-2020, 02:57 AM
Last Post: Beingcode
Smile Import error with local file colt 1 2,042 Nov-08-2020, 07:56 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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