LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Inkscape can't save PLT files : can't find sk1libs.utils.fs in Ubuntu Studio (https://www.linuxquestions.org/questions/linux-software-2/inkscape-can%27t-save-plt-files-can%27t-find-sk1libs-utils-fs-in-ubuntu-studio-4175595706/)

Nickwit 12-18-2016 07:37 PM

Inkscape can't save PLT files : can't find sk1libs.utils.fs in Ubuntu Studio
 
Hi all.


I have a new install of Ubuntu Studio (16.04) XFCE: 4.12

with Inkscape : 0.91


Which I am very dependent on for my laser-cutter/business. My laser-cutters work best with PLT files - and inkscape has been fine with these for the last 6 years over multiple laptops. Now however, it is saying:


Code:

UniConvertor failed:

Traceback (most recent call last):
  File "/usr/bin/uniconvertor", line 13, in <module>
    uniconv_run()
  File "/usr/lib/python2.7/dist-packages/uniconvertor/__init__.py", line 83, in uniconv_run
    from app.io import load
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/__init__.py", line 69, in <module>
    from conf.configurator import Configurator
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/conf/configurator.py", line 11, in <module>
    from app.events import connector
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/__init__.py", line 69, in <module>
    from conf.configurator import Configurator
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/conf/configurator.py", line 13, in <module>
    from sk1libs.utils.fs import gethome
ImportError: No module named sk1libs.utils.fs


And won't save.



Any ideas?





Nick

hydrurga 12-19-2016 03:04 AM

Googling for sk1libs.utils.fs produces similar reports of the problem (e.g. https://bugs.debian.org/cgi-bin/bugr...cgi?bug=820748), leading to http://sk1project.net/ from where you can download a deb to install sk1 which should install the missing module.

Let us know how you get on.

Nickwit 12-19-2016 03:41 AM

Hiya - thanks for that.


I've tried installing the sk1 deb, but it gives his error:

dpkg: dependency problems prevent configuration of python-sk1libs:
python-sk1libs depends on liblcms1; however:
Package liblcms1 is not installed.
python-sk1libs depends on libjpeg62; however:
Package libjpeg62 is not installed.

As far as I can see (from synaptic package manager), both of those are already installed.


The pressure for this one is off... I've found a workaround for the laser-cutter. It would be quite good to get to the bottom of this one though.


Thanks for you help.

hydrurga 12-19-2016 04:34 AM

Ok. It looks as if the software may be dependent on previous package versions. One solution might be to set up a VM with an environment that you know works (e.g. Ubuntu Studio 14.04 or even 12.04) and use that until someone updates and sorts the issues with uniconverter/sk1libs.utils.fs.

Nickwit 12-21-2016 05:56 PM

Hiya - thanks for your reply.


Sorry for being old-fashioned etc - I'd kindof prefer to get Python running with the dependencies it needs to do this without using whole new operating systems. I should probably learn how to do this, but it would be a bit of a learning curve I think. I've never used a VM before.


As to the dependencies... it seems to require: sk1libs.utils.fs which in turn requires liblcms1 - which I cannot find anywhere... I don't think it has been superseded by liblcms2 - which I can install, but I don't know how to get sk1libs to use the new one rather than the old one. Could I do something hacky like simply renaming liblcms2?




Nick

codingchris 12-22-2016 03:11 PM

Python installation
 
Have you tried a complete reinstall of Python? Those libraries sound like they're either corrupted or can't be located in their expected paths. I see you already checked on package installations, but you may have to pull down the source and build the binaries on the box itself to get past this.

Nickwit 12-23-2016 05:39 PM

Hiya

I haven't tried reinstalling python - I'm running Python 2.7.12


Should I be upgrading to 3.something?

If so, should the reinstall look like:

sudo dpkg -P python2.7

sudo apt-get install python3.6

?


Sorry - Newbie question, and I've been using linux for at least 10 years as well.

Nickwit 12-25-2016 08:18 PM

I tried that - and I think it's caused me to destroy my entire system. I did

sudo apt-get remove python2.7

in the hope of then doing

sudo apt-get install python3.5


it says it's already installed - but it's deleted half the apps, and quite a lot of the others I've tried (eg: Jack) no longer work



So next question - is there a way of re-installing python for ubuntu-studio, or do I now have to reinstall the entire operating system from scratch?

hydrurga 12-26-2016 12:47 AM

Quote:

Originally Posted by Nickwit (Post 5646251)
I tried that - and I think it's caused me to destroy my entire system. I did

sudo apt-get remove python2.7

in the hope of then doing

sudo apt-get install python3.5


it says it's already installed - but it's deleted half the apps, and quite a lot of the others I've tried (eg: Jack) no longer work

So next question - is there a way of re-installing python for ubuntu-studio, or do I now have to reinstall the entire operating system from scratch?

Sorry, I wish I had seen this earlier. Python is normally crucial for the operation of a Linux distro, a lot depends on it, and generally you should never muck around with it unless you know what you're doing, let alone delete it.

Many applications still depend on Python 2, whereas much now depends on Python 3, so you need to keep both of these around. Personally, on my Linux Mint setup, for example, I have Python 2.7.12 and 3.5.2 installed.

So, here's the rub. The complexity of the Python dependencies on the normal Linux system would normally indicate that by far the best solution for you now would be to reinstall Ubuntu Studio from scratch. You could try re-installing Python but it could be arduous and you wouldn't be confident that everything worked as before.

One thing to consider in the future is to make a system image before you make any major changes. For example, I use Macrium Reflect to image my root, home and data partitions (because that's the way I structure my Linux partitions). I do this on a weekly basis or before I make major changes such as an upgrade. That way, it is very easy to revert to a previous image if things go awry.

Nickwit 12-26-2016 01:31 AM

Okey dokes - new install it is :)

syg00 12-26-2016 02:02 AM

I would advise you look to use LVM on the new install (if offered) and see how they use snapshot. Similar idea to above, but integrated at the block device layer rather than a separate tool.
LVM offers other flexibility too which you may not appreciate immediately, but come to later.


All times are GMT -5. The time now is 10:30 PM.