Python Forum
Day 1 - as newbie as you can get
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Day 1 - as newbie as you can get
#3
It looks like you're having trouble importing the pcb-tools module in your Python script. The issue might be that the module is named differently than what you're trying to import. From your error message and the package name, it seems like you should be importing from gerber instead of pcb. Try changing your script to this: from gerber import Gerber from gerber import primitives # Create a new Gerber file gerber = Gerber() If this still doesn't work, it might be helpful to check the documentation or the source code of the pcb-tools module to verify the correct import statements. Also, make sure your script file is not named gerber.py as it could conflict with the module name.
Reply


Messages In This Thread
Day 1 - as newbie as you can get - by boss_hogg - Jun-27-2024, 12:18 PM
RE: Day 1 - as newbie as you can get - by AdamHensley - Jul-01-2024, 06:15 PM

Forum Jump:

User Panel Messages

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