Inkscape and Inkcut v1.0

Post about using Inkscape with cutters or plotters.
BigBill
Posts: 4
Joined: Sun Mar 12, 2017 2:10 am

Inkscape and Inkcut v1.0

Postby BigBill » Sun Mar 12, 2017 2:31 am

Hi
I'm trying to use Inkcut v1.0 on Inkscape on a Ubuntu16.10 machine. My vinyl cutter is a Redsail RS500C. Plugged with the USB cable.
lsusb gives:
Bus 002 Device 003: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter


Inkcut is installed in the Inkscape extentions.
I drawed a simple 3d box, converted to paths and ungrouped. Selecting the hole thing and selecting Inkcut gives :

Traceback (most recent call last):
File "inkcutext.py", line 71, in <module>
effect.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 268, in affect
self.effect()
File "inkcutext.py", line 47, in effect
from app.main import InkscapePlugin
ImportError: No module named app.main


What's wrong?

Thanks

User avatar
brynn
Posts: 9534
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Inkscape and Inkcut v1.0

Postby brynn » Sun Mar 12, 2017 11:39 am

As far as I understand, InkCut is deprecated. (outdated, hasn't been developed for a few years).

However, there's a newer extension which provides the same HPGL export (and maybe even more features, I'm not sure). I think it's Extensions menu > Export > Plot

BigBill
Posts: 4
Joined: Sun Mar 12, 2017 2:10 am

Re: Inkscape and Inkcut v1.0

Postby BigBill » Sun Mar 12, 2017 11:25 pm

Thanks for your answer brynn.

I tried the extention you suggested. I still have the following error message. This time I remarked the following: "could not open port".

Traceback (most recent call last):
File "plotter.py", line 227, in <module>
e.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 268, in affect
self.effect()
File "plotter.py", line 96, in effect
self.sendHpglToSerial()
File "plotter.py", line 162, in sendHpglToSerial
if 'ould not open port' in inst.args[0]:
TypeError: argument of type 'int' is not iterable


This time I remarked the following: "could not open port".
It means the program can't find the port to the cutter.
I'm on Ubuntu 16.10 and my machine doesn't have a com port so I specified "/dev/ttyUSB0" as a serial port as proposed by the app.
Is there any configuration I must do in order to have one USB port dedicated to the cutter?
The maker of the cutter doesn't provide linux config app or driver.

Here's part of the hardware list prodiced by lshw -short :

Code: Select all

Chemin matériel  Périphérique  Classe      Description
=========================================================

/0/2                              bus         MCP61 USB 1.1 Controller
/0/2/1            usb2            bus         OHCI PCI host controller
/0/2/1/1                          input       Natural
/0/2/1/2                          generic     USB2.0-Serial
/0/2.1                            bus         MCP61 USB 2.0 Controller
/0/2.1/1          usb1            bus         EHCI Host Controller
/0/100                            bridge      MCP61 PCI bridge



Here I can see that there is a device named "generic" on the "USB2.0-Serial' port. Could that be the actual cutter? and how ot access it ?

BigBill
Posts: 4
Joined: Sun Mar 12, 2017 2:10 am

Re: Inkscape and Inkcut v1.0

Postby BigBill » Sun Mar 12, 2017 11:41 pm

I did lshw again without parameters. It gives:

Code: Select all

           *-usb:1
                description: Périphérique USB générique
                produit: USB2.0-Serial
                fabriquant: QinHeng Electronics
                identifiant matériel: 2
                information bus: usb@2:2
                version: 2.54
                fonctionnalités: usb-1.10
                configuration: driver=ch341 maxpower=96mA speed=12Mbit/s


So the cutter is realy there but I can't access it. I tried ttyusb0 to 3 as serial port with no success, always the same error message.

User avatar
brynn
Posts: 9534
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Inkscape and Inkcut v1.0

Postby brynn » Tue Mar 14, 2017 7:24 am

Oh gosh! This is outside my knowledge.....

I think I heard that Timewaster....either wrote that extension (the new one), or knows a lot about it. See if you can contact him on his website: https://www.timewasters-place.com/inksc ... s-the-3rd/ (I think he's a member, but don't see him here very often.)

Actually we had a recent message on a different Inkscape forum, who was connected with a USB port, but the extension only offers serial port, for some reason. That seems rather odd to me, not to be able to accomodate both kinds of ports. Let me re-read it, maybe I can find more info for you....

Edit
Ok, now I remember. They happened to be on Linux, and decided to buy TuxPlot. So they gave up (despite being also referred to Timewasters Place) and decided to use something else. Their traceback was very similar to yours. Not identical, but similar.

But I really would like to get this fixed. Will you let us know what you decide to do, and if you're able to contact him? If you can't find a way to contact, let me know, and I'll contact him from a mailing list, and ask him to visit.

BigBill
Posts: 4
Joined: Sun Mar 12, 2017 2:10 am

Re: Inkscape and Inkcut v1.0

Postby BigBill » Wed Mar 15, 2017 2:01 am

Thanks again brynn for your help

This morning I was on line with the maker's tech. We connected via Teamviewer. They couldn't even start the cutter software or inquiry my system. They don't know linux at all. Result? they learned more watching me walk through the system terminal than I learned from them about their equipment. They said that I should remove linux or buy another computer on windows. Professional ain't it? ! So I'm still left alone with my problem.

I can't understand a company who's saving pennies using rs232 instead of usb especially when they go on the net. Not serious at all. Remember that one, it's Redsail.

I've appointed somebody who supposedly can fix that. He claims being an expert in connecting thing with linux. I'll see. If it works then i'll publish it here.

Moini
Posts: 2053
Joined: Mon Oct 05, 2015 10:44 am

Re: Inkscape and Inkcut v1.0

Postby Moini » Wed Mar 15, 2017 11:01 am

If it doesn't, please ask for help with the plot extension on timewaster's website.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Inkscape & Cutters/Plotters”

Who is online

Users browsing this forum: No registered users and 2 guests