Skip to content

Error: AttributeError: 'Text' object has no attribute 'set_pos' #4

@besi

Description

@besi

Hello I wanted to give this script a shot and I ran in the following error:

Please note that I'm using Python3

python3 --version
Python 3.9.6
z ruler # go to my working directory
Successfully installed ezdxf-1.0.2 pyparsing-3.0.9 typing-extensions-4.5.0
WARNING: You are using pip version 21.2.4; however, version 23.0.1 is available.
You should consider upgrading via the '/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip' command.
➜  Ruler python3 -m dxf_ruler_generator 7

Traceback (most recent call last):
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/besi/Fablab/Ruler/dxf_ruler_generator.py", line 74, in <module>
    run()
  File "/Users/besi/Fablab/Ruler/dxf_ruler_generator.py", line 50, in run
    msp.add_text(
AttributeError: 'Text' object has no attribute 'set_pos'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions