Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
import not working properly
#6
you need to reference it via

x=foo.Foo()
modulename.Classname()
Star import imports all from the module into your namespace. When you import foo, you have to refer to the module first.
Recommended Tutorials:
Reply


Messages In This Thread
import not working properly - by mepyyeti - Jan-18-2018, 05:24 AM
RE: import not working properly - by metulburr - Jan-18-2018, 05:30 AM
RE: import not working properly - by mepyyeti - Jan-18-2018, 06:36 AM
RE: import not working properly - by metulburr - Jan-18-2018, 06:39 AM
RE: import not working properly - by mepyyeti - Jan-18-2018, 06:57 AM
RE: import not working properly - by metulburr - Jan-18-2018, 07:08 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  File Handling not working properly TheLummen 8 758 Feb-17-2024, 07:47 PM
Last Post: TheLummen
  Pathlib import not working chriswrcg 9 3,738 May-29-2022, 07:37 PM
Last Post: snippsat
  fpdf orientation not working properly KatMac 1 3,352 May-02-2021, 10:47 AM
Last Post: Pedroski55
Lightbulb Jupyter is not working properly brunolelli 3 3,001 Apr-23-2021, 03:22 AM
Last Post: Larz60+
  Properly import from sub/parent folders? oclmedyb 2 2,073 Dec-14-2020, 12:22 AM
Last Post: snippsat
  How to keep a loop containing a web import working in python executable? coder1384 3 2,896 Feb-22-2020, 06:49 PM
Last Post: snippsat
  file.write not working properly mnh001 11 4,504 Nov-09-2019, 10:20 PM
Last Post: mnh001
  hatching not working properly with matplotlib Staph 3 3,040 Jul-28-2019, 07:17 AM
Last Post: ThomasL
  import logging not working segerhult 3 13,247 Feb-07-2019, 05:31 PM
Last Post: buran
  CSV import is not working gehrenfeld 7 4,251 Dec-12-2018, 12:26 PM
Last Post: gehrenfeld

Forum Jump:

User Panel Messages

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