problem importing HP-GL

Bug #1747106 reported by tyler knosis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

Getting errors like this:

# inkscape stuff/computing/test-files/graphics/HP-GL/inter.hp
stuff/computing/test-files/graphics/HP-GL/inter.hp:1: parser error : Start tag expected, '<' not found
IN;SP1;CA7;PU3598,4271;PD673,4271,673,7197,;PU3598,4259;PD660,4259,660,7197,;PU6
^

python2/hpgl is installed. Do I need something else?

Inkscape 0.92.2 compiled with GCC 7.1.0 on linux 64 LFS

Revision history for this message
Alvin Penner (apenner) wrote :

could you attach the .hpgl file for testing purposes?

Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
  • cp.hp Edit (317 bytes, application/octet-stream)
Revision history for this message
tyler knosis (tyler-knosis) wrote :
  • di.hp Edit (142 bytes, application/octet-stream)
Revision history for this message
tyler knosis (tyler-knosis) wrote :
  • dt.plt Edit (329 bytes, application/octet-stream)
Revision history for this message
tyler knosis (tyler-knosis) wrote :
  • dv.hpg Edit (96 bytes, application/octet-stream)
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
tyler knosis (tyler-knosis) wrote :
Revision history for this message
Alvin Penner (apenner) wrote :

for hpgl files, it is necessary that the extension must be .hpgl, otherwise Inkscape will not recognize this file as being hpgl.

if you rename one of these files to be something like inter.hpgl, then you should get a disclaimer from the Inkscape extension, like the attached file hpgl.png:

if you do not see this disclaimer then it is quite likely that the Inkscape code for hpgl is not being executed. On Windows, the hpgl code is at:

C:\Program Files (x86)\Inkscape\share\extensions\hpgl_input.py

Revision history for this message
tyler knosis (tyler-knosis) wrote :

OK, so I renamed to test.hpgl, and get this:

Traceback (most recent call last):
  File "hpgl_input.py", line 54, in <module>
    doc, warnings = myHpglDecoder.getSvg()
  File "/usr/share/inkscape/extensions/hpgl_decoder.py", line 68, in getSvg
    actualLayer = int(command[2:])
ValueError: ('', <type 'exceptions.ValueError'>, ValueError("invalid literal for int() with base 10: ''",))

 probably because python3 is not supported.

Revision history for this message
tyler knosis (tyler-knosis) wrote :

I see the disclaimer, and inkscape will open the hpgl file that it created, and not the others.

For the others, renaming to .plt just gives me an "unrecognized file type" from uniconvertor.

Revision history for this message
tyler knosis (tyler-knosis) wrote :

Some work, some don't.

Thanks for the help.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.