optimized save with scour

Post questions on how to use or achieve an effect in Inkscape.
alainwoll
Posts: 3
Joined: Sat Jan 28, 2017 12:28 am

optimized save with scour

Postby alainwoll » Sun Feb 05, 2017 9:08 pm

I use version 0.92 under windows 10 and I have a problem with optimized backup. The process does not go all the way and I have the following message:

Failed to import Python module 'scour'.
Please make sure it is installed (e.g. using 'pip install scour' or 'sudo apt-get install python-scour') and try again.

Details:
No module named scour

Thank you for your return by explaining the procedure if there is one?

I specified that I installed the folder scour and I had a message telling me that the folder was already installed.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: optimized save with scour

Postby tylerdurden » Sun Feb 05, 2017 10:22 pm

Interesting.... I cannot reproduce the error with .92 in Win 8.1.

Do you recall which installer you used?... the .msi or the .exe installer?
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

alainwoll
Posts: 3
Joined: Sat Jan 28, 2017 12:28 am

Re: optimized save with scour

Postby alainwoll » Sun Feb 05, 2017 11:41 pm

I understood that in the version windows x64 .exe "scour" was already installed.
So I simply used the command line of windows by positioning on the "python" directory by inserting "pip install scour" and "sudo apt-get install python-scour". In return, I had the message "already installed".

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: optimized save with scour

Postby tylerdurden » Mon Feb 06, 2017 6:55 am

Does a search of your Inkscape directory look like this:
Attachments
scour_-_Search_Results_in_Inkscape_2017-02-05_15-50-37.png
scour_-_Search_Results_in_Inkscape_2017-02-05_15-50-37.png (58.04 KiB) Viewed 3212 times
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

alainwoll
Posts: 3
Joined: Sat Jan 28, 2017 12:28 am

Re: optimized save with scour

Postby alainwoll » Mon Feb 06, 2017 11:45 pm

Scour in the Inkscape directory looks like this:

Inkscape / python / lib / site-packages / ...

Inkscape / python / scripts / scour.exe


Thanks A+
Attachments
scripts-scour.JPG
scripts-scour.JPG (44.02 KiB) Viewed 3174 times
dossier-scour.JPG
dossier-scour.JPG (26.01 KiB) Viewed 3174 times
lib-scour.JPG
lib-scour.JPG (67.17 KiB) Viewed 3174 times

T4uru5
Posts: 1
Joined: Mon Mar 06, 2017 7:23 pm

Re: optimized save with scour

Postby T4uru5 » Mon Mar 06, 2017 7:35 pm

I'm having the same issue on two separate machines. Inkscape 0.92.1 (x64) on Win10 x64 (10.0.14393) on both.
A clean, full install using the exe installer does not solve the issue.
"pip install scour" says it is already installed.

Just now I did a clean install with the msi installer, fixed.
I'm not sure if it was the msi installer, or the fact that before doing the second clean install, I checked Programs and Features, and saw that there was two instances of Inkscape installed, 0.91 and 0.92.1. Removed both, did a new install with the msi package, voila...("keep preferences" was on, so there's no need to reconfigure).

Hope this helps you too.

thekalinga
Posts: 1
Joined: Fri Mar 24, 2017 6:30 pm

Re: optimized save with scour

Postby thekalinga » Fri Mar 24, 2017 6:33 pm

I have the same issue with 0.92 in ubuntu 14.04.

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

Re: optimized save with scour

Postby Moini » Fri Mar 24, 2017 9:05 pm

@thekalinga: what do you get when you enter 'scour --version' in the terminal?
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)

dirzhov
Posts: 1
Joined: Sat Apr 08, 2017 4:37 am

Re: optimized save with scour

Postby dirzhov » Sat Apr 08, 2017 4:41 am

I fixed this on win7 by changing lines in file Inkscape\share\extensions\scour.inkscape.py

import scour
from scour.scour import scourString

on

import scour
from scour import scourString

Maybe it'll help someone

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

Re: optimized save with scour

Postby Moini » Sat Apr 08, 2017 10:33 am

@dirzhov: Did you have Inkscape 0.91 installed, then uninstalled it, then installed the latest version? There was a problem with the uninstaller of 0.91, which can lead to problems (because it forgot to remove the old python directories). If you reinstall the latest installation, that would potentially solve *all* related issues (like .plt export or some corel file format imports), not just this one.
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)

ConnorsFan
Posts: 1
Joined: Thu Jul 27, 2017 1:39 am

Re: optimized save with scour

Postby ConnorsFan » Thu Jul 27, 2017 1:47 am

I had the same problem on Windows 7 64-bit, with Inkscape 0.92.1 installed with the EXE installer. Uninstalling and reinstalling did not solve the problem. Then, I followed the advice given by T4uru5, and reinstalled with the MSI installer: problem solved! I can now save optimized SVG.


Return to “Help with using Inkscape”