Inkscape.org
Using Inkscape with Other Programs Importing DXF into Inkscape
  1. #1
    Claus Claus @claus_01
    *

    Hi,

     

    right now, I would like to import a DWG file into Inkscape. I found a converter DWG2DXF (https://cloudconvert.com/dwg-to-dxf) & could convert the DWG file to DXF, but Inkscape doesn't open the latter. I am getting lots of error messages:

    Python path configuration:
      PYTHONHOME = '/tmp/.mount_InkscabmTr5R/usr/'
      PYTHONPATH = '/home/claus/.config/inkscape/extensions:/tmp/.mount_InkscabmTr5R/usr/lib/share/../../share/inkscape/extensions:/tmp/.mount_InkscabmTr5R/usr/lib/share/../../share/inkscape/extensions/inkex/deprecated-simple'
      program name = '/usr/bin/python3'
      isolated = 0
      environment = 1
      user site = 1
      import site = 1
      sys._base_executable = '/usr/bin/python3'
      sys.base_prefix = '/tmp/.mount_InkscabmTr5R/usr'
      sys.base_exec_prefix = '/tmp/.mount_InkscabmTr5R/usr'
      sys.executable = '/usr/bin/python3'
      sys.prefix = '/tmp/.mount_InkscabmTr5R/usr'
      sys.exec_prefix = '/tmp/.mount_InkscabmTr5R/usr'
      sys.path = [
        '/home/claus/.config/inkscape/extensions',
        '/tmp/.mount_InkscabmTr5R/usr/lib/share/../../share/inkscape/extensions',
        '/tmp/.mount_InkscabmTr5R/usr/lib/share/../../share/inkscape/extensions/inkex/deprecated-simple',
        '/tmp/.mount_InkscabmTr5R/usr/lib/python38.zip',
        '/tmp/.mount_InkscabmTr5R/usr/lib/python3.8',
        '/tmp/.mount_InkscabmTr5R/usr/lib/python3.8/lib-dynload',
      ]
    Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
    Python runtime state: core initialized
    ModuleNotFoundError: No module named 'encodings'
    
    Current thread 0x00007fddcc338740 (most recent call first):
    <no Python frame>
    

    My question is, how can I fix those errors?

     

    TIA,

     

    Claus

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    Here is a dxf that opens in Inkscape. Please see if it will open in your setup.

    Please share your file that does not open.

    Dxf Letters
  3. #3
    Claus Claus @claus_01
    *

    Hi Tyler,

    thanks for the file. Unfortunately, I got the same error messages in Inkscape (1.0). Here's the DXF file I used.

    Claus

    P. S.: As a workaround, I converted the DXF file to SVG using an online tool.