can't open PDF or AI files in 0.48 SOLVED

Bug #593090 reported by Klaus Hvid Nielsen
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

I have been using 0.47 where I can open ai files, but I am trying off 0.48 and I can't open ai files. Uniconveter failed, not sure if it is simply because of 0.48 being alfa, thanks

Tags: build linux pdf
Revision history for this message
Alvin Penner (apenner) wrote :

could you attach an .ai file here?

Revision history for this message
Klaus Hvid Nielsen (klausindc) wrote :

It is any illustrator file

Revision history for this message
Klaus Hvid Nielsen (klausindc) wrote :

It is any illustrator file (ai)

Below is what inkscape 'says'

Inkscape has received additional data from the script executed. The script did not return an error, but this may indicate the results will not be as expected.

UniConvertor failed:

Cannot list directory /home/klaus/.uniconvertor:[Errno 2] No such file or directory: '/home/klaus/.uniconvertor'
ignoring it in font_path
Cannot list directory /home/klaus/.uniconvertor:[Errno 2] No such file or directory: '/home/klaus/.uniconvertor'
ignoring it in font_path
/usr/lib/pymodules/python2.6/uniconvertor/app/utils/locale_utils.py:9: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
  from popen2 import popen2
No plugin-type information in /usr/lib/pymodules/python2.6/uniconvertor/app/plugins/Filters/__init__.py
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/uniconvertor/__init__.py", line 82, in uniconv
    doc = load.load_drawing(input_file)
  File "/usr/lib/pymodules/python2.6/uniconvertor/app/io/load.py", line 364, in load_drawing
    return load_drawing_from_file(file, filename)
  File "/usr/lib/pymodules/python2.6/uniconvertor/app/io/load.py", line 346, in load_drawing_from_file
    raise SketchLoadError(_("unrecognised file type"))
app.events.skexceptions.SketchLoadError: unrecognised file type

Revision history for this message
su_v (suv-lp) wrote :

not reproduced with Inkscape 0.47 and 0.47+devel r9495 on OS X 10.5.8

The error can be reproduced when manually choosing the filetype 'Adobe Illustrator 8.0 and below (*.ai) - which is to be expected because the file is not in AI 0.8 format (and UniConvertor fails).

Your attached file is in PDF format and is opened without error as PDF file when letting Inkscape choose the filetype itself or when manually choosing "Adobe Illustrator 9.0 and above (*.ai)".

tags: added: ai importing
Revision history for this message
Klaus Hvid Nielsen (klausindc) wrote :

Thanks for the comments, I can get it to work with 0.47 but not 0.48 (neither import or normal 'open'

Revision history for this message
su_v (suv-lp) wrote :

What platform are you working on? Do you build the 0.47+devel (or 0.48pre0) version yourself?

Revision history for this message
su_v (suv-lp) wrote :

And related: can you open or import other PDF files in 047+devel / 0.48pre0?

Revision history for this message
Klaus Hvid Nielsen (klausindc) wrote :

Ubuntu 10.04. I installed 0.47 using Synatic PM, and 0.48 using Terminal using ./configure, then make then make install (and a lot of Synatic to allow the installation). I am pretty new to Ubuntu, but I don't think I am doing anything obvious wrong :-)

Revision history for this message
Klaus Hvid Nielsen (klausindc) wrote :

I can't not open or import .pdf files in 0.48 (I don't have 0.47 installed anymore), Hope that may help with what the problem is

Revision history for this message
su_v (suv-lp) wrote :

Which poppler version do you have installed? Can you attach the configure log?

tags: added: build linux pdf
removed: ai importing
Revision history for this message
Klaus Hvid Nielsen (klausindc) wrote :

I have libpoppler-glib4, libpoppler5 and poppler-utils installed, there are a lot more, maybe I need to install some of them? Which log file is it you want to see and I will try to find it, thanks

Revision history for this message
su_v (suv-lp) wrote :

I'm not using Ubuntu myself, but AFAIK you also need the dev packages of poppler (headers and development libraries needed to
 build applications using Poppler) for PDF support in Inkscape, as described here:
<http://wiki.inkscape.org/wiki/index.php/CompilingUbuntu#Additional_dependencies>

See also <http://wiki.inkscape.org/wiki/index.php/Compiling_Inkscape#Poppler> about including the Xpdf headers required by Inkscape in case compilation fails after installing the additional dependencies.

@JazzyNico - do you know if the wiki page is up-to-date and includes all needed dependencies for Ubuntu to compile from the prerelease tar ball?

summary: - can't open ai files in 0.48
+ can't open PDF or AI files in 0.48
Revision history for this message
Klaus Hvid Nielsen (klausindc) wrote : Re: can't open PDF or AI files in 0.48

Thanks for the help suv, I tried to do as you suggest, but it didn't help, I then did the ./configure, make and checkinstall, once again for inkscape 0.48 and now it works. (I didnt think I should do that every time I use synactic to install e.g poppler, or am I wrong), anyway it works :-)

summary: - can't open PDF or AI files in 0.48
+ can't open PDF or AI files in 0.48 SOLVED
Revision history for this message
su_v (suv-lp) wrote :

Thank you for reporting back. I will close this report as 'Invalid' as your problem was not a bug in Inkscape or its build scripts: dependencies have to be installed before running 'configure', to have them included in the build process and enable e.g. PDF support in Inkscape.

Changed in inkscape:
status: New → Invalid
Revision history for this message
Klaus Hvid Nielsen (klausindc) wrote :

Okay thanks for the help, I have learned a lot for next time I run into 'problems'. Didn't know that I had to run the /.configure again.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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