Python Forum
I can't import own package of file from file.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I can't import own package of file from file.
#5
Which are you running?

myfile.py won't work, since it's not part of a package.
myapp might work, as long as there's a python file you're running.

Importing the folder also doesn't really make sense, unless there's an __init__.py file inside it.

So really, in order for us to help, we need to know:
1) what files are in which folders
2) which file you're actually trying to run
Reply


Messages In This Thread
RE: I can't import own package of file from file. - by nilamo - Jun-07-2017, 06:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  file open "file not found error" shanoger 8 1,132 Dec-14-2023, 08:03 AM
Last Post: shanoger
  Not able to install package caldwellpy and requirement txt file Samta282006 1 717 Dec-07-2023, 11:59 PM
Last Post: Larz60+
  Need to replace a string with a file (HTML file) tester_V 1 772 Aug-30-2023, 03:42 AM
Last Post: Larz60+
  How can I change the uuid name of a file to his original file? MaddoxMB 2 932 Jul-17-2023, 10:15 PM
Last Post: Pedroski55
Video doing data treatment on a file import-parsing a variable EmBeck87 15 2,893 Apr-17-2023, 06:54 PM
Last Post: EmBeck87
  Reading data from excel file –> process it >>then write to another excel output file Jennifer_Jone 0 1,112 Mar-14-2023, 07:59 PM
Last Post: Jennifer_Jone
  Import XML file directly into Excel spreadsheet demdej 0 857 Jan-24-2023, 02:48 PM
Last Post: demdej
Thumbs Up Need to compare the Excel file name with a directory text file. veeran1991 1 1,128 Dec-15-2022, 04:32 PM
Last Post: Larz60+
Photo Making Zip file of a file and Directory Nasir 2 1,035 Oct-07-2022, 02:01 PM
Last Post: Nasir
  Need Help: Convert .pcl file to .pdf file ManuRaval 6 2,555 Sep-13-2022, 01:31 PM
Last Post: ManuRaval

Forum Jump:

User Panel Messages

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