Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File Import Problem
#3
(Aug-04-2018, 02:12 AM)Larz60+ Wrote: you need to provide more information. how are you importing, is the file in the same directory as the program importing it? if not, have you set up an __init__.py which shows project structure? is the spelling correct (including case if on Linux) It would be most helpful if we could see your code.
The file isn't in the same directory as the program importing it, but I have other files in the same directory as threenames which do work. The spelling is correct I have done it multiple times and I have also had other people try which also didn't work.
Down below is what I have been typing. I have done the same things for other files and those have all been successful.
>>> import threenames
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named threenames
Reply


Messages In This Thread
File Import Problem - by St_Patrick - Aug-04-2018, 12:18 AM
RE: File Import Problem - by Larz60+ - Aug-04-2018, 02:12 AM
RE: File Import Problem - by St_Patrick - Aug-04-2018, 02:23 AM
RE: File Import Problem - by Larz60+ - Aug-04-2018, 04:38 AM
RE: File Import Problem - by Skaperen - Aug-04-2018, 05:07 AM
RE: File Import Problem - by St_Patrick - Aug-04-2018, 10:59 AM
RE: File Import Problem - by Larz60+ - Aug-04-2018, 11:33 AM
RE: File Import Problem - by St_Patrick - Aug-04-2018, 12:42 PM
RE: File Import Problem - by St_Patrick - Aug-04-2018, 02:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  problem in import module from other folder akbarza 5 1,731 Sep-01-2023, 07:48 AM
Last Post: Gribouillis
  [WORKED AROUND] Problem installing elitech-datareader, 'cannot import build_py_2to3' NeilUK 4 1,906 Jul-09-2023, 10:01 AM
Last Post: NeilUK
Video doing data treatment on a file import-parsing a variable EmBeck87 15 3,135 Apr-17-2023, 06:54 PM
Last Post: EmBeck87
  Import XML file directly into Excel spreadsheet demdej 0 919 Jan-24-2023, 02:48 PM
Last Post: demdej
  How from sklearn.datasets import load_diabetes change to import to CSV file Anldra12 0 1,924 Dec-25-2021, 07:20 PM
Last Post: Anldra12
  How to import file and function in another folder SriRajesh 1 3,342 Dec-18-2021, 08:35 AM
Last Post: Gribouillis
  Import requests/beautifulsoup problem Jokadaro_ 3 2,142 Dec-05-2021, 01:22 PM
Last Post: Jokadaro_
  Python - Import file sequence into Media Pool jensenni 1 2,229 Feb-02-2021, 05:11 PM
Last Post: buran
Smile Import error with local file colt 1 2,011 Nov-08-2020, 07:56 AM
Last Post: Gribouillis
  Problem with Flask Bcrypt import module marcello86 2 5,930 Aug-31-2020, 08:10 PM
Last Post: marcello86

Forum Jump:

User Panel Messages

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