Inkscape.org
Beyond the Basics Cannot import inkex
  1. #1
    mwayne0906 mwayne0906 @mwayne0906

    Hi, I am trying to get a circuit symbol extension to work, which relies on InkscapeMadeEasy, which needs inkex.py to work. I have traced the problem to the line in the extension where it tries to import inkex.
    Simply typing 'import inkex' gives the following error with Inkscape 1.0 x64, Python 3.8, and 1.18.5 Numpy. 
     

    Traceback (most recent call last):

      File "C:\Users\mwayn\AppData\Roaming\inkscape\extensions\inkscapeMadeEasy_Base.py", line 32, in <module>
        import inkex

      File "D:\Inkscape\share\inkscape\extensions\inkex\__init__.py", line 11, in <module>
        from .extensions import *

      File "D:\Inkscape\share\inkscape\extensions\inkex\extensions.py", line 35, in <module>
        from .base import InkscapeExtension, SvgThroughMixin, SvgInputMixin, SvgOutputMixin, TempDirMixin

      File "D:\Inkscape\share\inkscape\extensions\inkex\base.py", line 40, in <module>
        stdout = sys.stdout.buffer

    AttributeError: 'OutStream' object has no attribute 'buffer'

    Any suggestions? 

     

    Thank you.

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    A number of extensions have not been updated to be compatible with version 1.0x. Contact the extension developer for information on updates.

    If you need some common electric/electronic component symbols, the attached svg file can be put in the user profile's extension directory.

  3. #3
    mwayne0906 mwayne0906 @mwayne0906

    Oh okay. Thank you.