Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Import from .py trouble
#3
Files are now in own folder and I renamed everything.

from blargoraftical import * 
print(tile_size)
and
import blargoraftical  
print(tile_size)
Error:
Traceback (most recent call last): File "C:/Users/owner/Desktop/Python3/imporation/test.py", line 2, in <module> print(tile_size) NameError: name 'tile_size' is not defined
Same result in 2 editors. I have other programs that run fine. I'll try a restart.
Reply


Messages In This Thread
Import from .py trouble - by michael1789 - Nov-27-2019, 09:39 PM
RE: Import from .py trouble - by ichabod801 - Nov-27-2019, 09:52 PM
RE: Import from .py trouble - by michael1789 - Nov-27-2019, 10:54 PM
RE: Import from .py trouble - by Ray - Nov-27-2019, 11:16 PM
RE: Import from .py trouble - by michael1789 - Nov-27-2019, 11:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Having trouble with a circula import SuchUmami 2 796 Jul-05-2023, 06:28 PM
Last Post: deanhystad
  Trouble with "from…import…as" arbiel 2 2,828 Apr-14-2020, 03:38 PM
Last Post: arbiel

Forum Jump:

User Panel Messages

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