• Members 1 post
    June 3, 2021, 4:50 a.m.

    2021-05-30 19:26:50,212 | INFO | inkcut | ========================================
    2021-05-30 19:26:50,213 | INFO | inkcut | Inkcut launched
    2021-05-30 19:26:50,213 | INFO | inkcut | Version: 2.1.3
    2021-05-30 19:26:50,213 | INFO | inkcut | Python: 3.8.5 (default, Jan 27 2021, 15:41:15)
    [GCC 9.3.0]
    2021-05-30 19:26:50,217 | INFO | inkcut | System: uname_result(system='Linux', node='abid-ThinkPad-T420', release='5.8.0-53-generic', version='#60~20.04.1-Ubuntu SMP Thu May 6 09:52:46 UTC 2021', machine='x86_64', processor='x86_64')
    2021-05-30 19:26:50,218 | INFO | inkcut | Executable: /usr/bin/python3
    2021-05-30 19:26:50,218 | INFO | inkcut | Args: ['/home/abid/.local/bin/inkcut']
    2021-05-30 19:26:50,599 | INFO | inkcut | Qt: 5.12.8 Api:
    2021-05-30 19:26:50,599 | INFO | inkcut | ========================================
    2021-05-30 19:26:55,382 | DEBUG | inkcut | Starting plugin 'inkcut.core'
    2021-05-30 19:26:55,382 | DEBUG | inkcut | Inkcut loaded.
    2021-05-30 19:26:55,440 | DEBUG | inkcut | CLI | Commands loaded
    2021-05-30 19:26:55,441 | DEBUG | inkcut | CLI | No cli command was given.
    2021-05-30 19:26:55,488 | WARNING | inkcut | Translations not found at /home/abid/.local/lib/python3.8/site-packages/inkcut/res/translations/en_IN
    2021-05-30 19:26:59,725 | DEBUG | inkcut | CLI | Commands loaded
    2021-05-30 19:26:59,727 | DEBUG | inkcut | CLI | No cli command was given.
    2021-05-30 19:26:59,740 | INFO | inkcut | Loading plugin inkcut.joystick
    2021-05-30 19:26:59,743 | DEBUG | inkcut | Starting plugin 'inkcut.joystick'
    2021-05-30 19:27:00,102 | INFO | inkcut | Loading plugin inkcut.monitor
    2021-05-30 19:27:00,114 | DEBUG | inkcut | Starting plugin 'inkcut.monitor'
    2021-05-30 19:27:00,282 | INFO | inkcut | Loading plugin inkcut.device
    2021-05-30 19:27:00,962 | DEBUG | inkcut | Starting plugin 'inkcut.device'
    2021-05-30 19:27:01,536 | ERROR | inkcut | Traceback (most recent call last):
    File "/home/abid/.local/lib/python3.8/site-packages/inkcut/core/plugin.py", line 80, in start_default_workspace
    ui.select_workspace('inkcut.workspace')
    File "/home/abid/.local/lib/python3.8/site-packages/enaml/workbench/ui/ui_plugin.py", line 157, in select_workspace
    new_workspace.start()
    File "/home/abid/.local/lib/python3.8/site-packages/inkcut/ui/workspace.py", line 46, in start
    self.workbench.get_plugin('inkcut.ui')
    File "/home/abid/.local/lib/python3.8/site-packages/enaml/workbench/workbench.py", line 151, in get_plugin
    plugin.start()
    File "/home/abid/.local/lib/python3.8/site-packages/inkcut/ui/plugin.py", line 91, in start
    self._refresh_dock_items()
    File "/home/abid/.local/lib/python3.8/site-packages/inkcut/ui/plugin.py", line 194, in _refresh_dock_items
    DockItem = declaration.factory()
    File "/home/abid/.local/lib/python3.8/site-packages/inkcut/device/manifest.enaml", line 65, in device_progress_dock_item_factory
    from .view import DeviceProgressDockItem
    File "/home/abid/.local/lib/python3.8/site-packages/enaml/core/import_hooks.py", line 159, in exec_module
    exec(code, module.dict)
    File "/home/abid/.local/lib/python3.8/site-packages/inkcut/device/view.enaml", line 24, in
    from inkcut.preview.plot_view import PlotView
    File "/home/abid/.local/lib/python3.8/site-packages/inkcut/preview/plot_view.py", line 23, in <module>
    from pyqtgraph.widgets.PlotWidget import PlotWidget
    File "/home/abid/.local/lib/python3.8/site-packages/pyqtgraph/init.py", line 13, in <module>
    from .Qt import QtGui, mkQApp
    File "/home/abid/.local/lib/python3.8/site-packages/pyqtgraph/Qt.py", line 137, in <module>
    from PyQt5 import QtGui, QtCore, QtWidgets, sip, uic
    ImportError: cannot import name 'sip' from 'PyQt5' (/usr/lib/python3/dist-packages/PyQt5/init.py)

    2021-05-30 19:27:01,537 | CRITICAL | inkcut |
    <html>
    <h3>Sorry, an error prevented Inkcut from starting</h3>
    <p>
    This is either a bug or a required library may be missing on your system.
    As always you can request help on the forums at
    <a href="inkcut.org">inkcut.org</a>.
    </p>

    <p>
    First try to restart the application. If the error persists you can try
    clearing the saved settings in <a href="/home/abid/.config/inkcut">/home/abid/.config/inkcut</a>
    and restart the application again</a>.
    </p>

    <p>
    If that still doesn't work please report a new issue at
    <a href="github.com/codelv/inkcut">github.com/codelv/inkcut</a>
    with the following error:
    </p>

    <pre>exec(code, module.dict)
    File "/home/abid/.local/lib/python3.8/site-packages/inkcut/device/view.enaml", line 24, in
    from inkcut.preview.plot_view import PlotView
    File "/home/abid/.local/lib/python3.8/site-packages/inkcut/preview/plot_view.py", line 23, in <module>
    from pyqtgraph.widgets.PlotWidget import PlotWidget
    File "/home/abid/.local/lib/python3.8/site-packages/pyqtgraph/init.py", line 13, in <module>
    from .Qt import QtGui, mkQApp
    File "/home/abid/.local/lib/python3.8/site-packages/pyqtgraph/Qt.py", line 137, in <module>
    from PyQt5 import QtGui, QtCore, QtWidgets, sip, uic
    ImportError: cannot import name 'sip' from 'PyQt5' (/usr/lib/python3/dist-packages/PyQt5/init.py)</pre>

    <p> and include the logs from <a href="/home/abid/.config/inkcut/logs">/home/abid/.config/inkcut/logs</a>.
    </p>
    </html>

    2021-05-30 19:27:21,977 | DEBUG | inkcut | Starting plugin 'inkcut.job'
    2021-05-30 19:27:21,992 | INFO | inkcut | {'type': 'create', 'object': <inkcut.job.plugin.JobPlugin object at 0x7f190f725d80>, 'name': 'job', 'value': <inkcut.job.models.Job object at 0x7f1924520700>}
    2021-05-30 19:27:29,304 | INFO | inkcut | ========================================
    2021-05-30 19:27:29,305 | INFO | inkcut | Inkcut exited cleanly
    2021-05-30 19:27:29,305 | INFO | inkcut | ========================================

    i couldnot find a inkscape folder in /home/abid/.config/
    also, i couldnot find settings in /home/abid/.config/inkcut but there is only a logs folder

  • Members 1 post
    July 28, 2021, 7:05 p.m.

    I found a solution to the problem!
    You need to edit the file: ~/.local/lib/python3.7/site-packages/pyqtgraph/Qt.py
    line 137:
    from PyQt5 import QtGui, QtCore, QtWidgets, sip, uic
    replaced by:
    from PyQt5 import QtGui, QtCore, QtWidgets, uic
    import sip

    and install package sip if needed
    pip install sip