Synfig Project Forum

Forums for Synfig Project
It is currently Tue Jun 18, 2013 9:26 pm

All times are UTC - 4 hours [ DST ]




Post new topic Reply to topic  [ 80 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
PostPosted: Wed Sep 14, 2011 8:33 pm 
Offline

Joined: Tue Sep 13, 2011 4:32 am
Posts: 13
$ lsb_release -a
Distributor ID: Ubuntu
Release: 11.04
Codename: natty

$ uname -a
Linux 01ato1600 2.6.38-11-generic #48-Ubuntu SMP Fri Jul 29 19:05:14 UTC 2011 i686 i686 i386 GNU/Linux

$ sudo cp -i *.py /usr/share/inkscape/extensions/
$ sudo cp -i *.inx /usr/share/inkscape/extensions/

interestingly, no new menu in Extensions, and no Save as *.sif
Here standard Ubuntu Inkscape version is 0.48.1

The "extension-errors.log" in ~/.inkscape was 2008 old.
I renamed it and now never recreates.
Anyway here attached the Ubuntu one


Attachments:
extension-errors.old.log [2.17 KiB]
Downloaded 37 times
Top
 Profile  
 
PostPosted: Thu Sep 15, 2011 12:32 am 
Offline
Site Admin

Joined: Mon Feb 16, 2009 5:19 pm
Posts: 217
That's really strange, because that's almost exactly the setup I'm running (Natty + Inkscape 0.48.1). On natty, the folder is "~/.config/inkscape" and not "~/.inkscape". That's where extension-errors.log should show up. That's also where I have my copy of the extension installed (via symlink).


Top
 Profile  
 
PostPosted: Thu Sep 15, 2011 4:57 am 
Offline

Joined: Tue Sep 13, 2011 4:32 am
Posts: 13
oh yes, the folder is "~/.config/inkscape" and not "~/.inkscape", I have both paths.
This is because the error log was old and never get recreated.
In .config, the log is update, get recreated on start, but do not speak about sif problems.

I also tried to copy the scripts to:
~/.config/inkscape/extensions
but same results.

I do the same on Windows copying scripts to:
C:\Documents and Settings\<user>\Dati applicazioni\Inkscape\extensions
same results.

As on Linux there was an old path probably from an ancient Inkscape versions, so I scan user home on Windows, and found another Inkscape directory:
C:\Documents and Settings\<user>\AppData\Roaming\Inkscape\extensions
but there is an error log dated 2009. Anyway I copied the scripts also here, same results.

Anyway I want a system installation, not a user installation. The script was tested for all users too?

Are there some file with the list of installed extensions to add svg2sif by hand?


A curiosity: in Extension menù, the new entry should appear at the top level, or in a sub entry like:
Bitmap, color, generate from tracks, images, ...
How should be named exactly?

Maybe the problems are related to locale directory/settings or so (for example my Extension menù is named "Estensioni")?


Top
 Profile  
 
PostPosted: Thu Sep 15, 2011 6:04 am 
Offline
Site Admin

Joined: Mon Feb 16, 2009 5:19 pm
Posts: 217
Wow... as far as I can tell you're doing everything right. I'm not an Inkscape expert so I'm just going off of what works for me in the setups that I have available.

The "Save As" option should be named: "Synfig Animation (*.sif)"
The menu option should be named "Extensions>Synfig>Prepare for Export". That is a "Synfig" submenu in the Extensions menu.

As a shot in the dark, I tried removing localization from the .inx files. I wonder if that has any effect. (See attached - the .txt is added on because the forum doesn't allow .inx files).

There isn't a file that lists all extensions: instead Inkscape looks at a certain set of directories (including /usr/share/inkscape/extensions) and reads all the files in there. Do other extensions show up in Inkscape? (e.g. Extensions>Text>UPPERCASE)


Attachments:
synfig_output.inx.txt [790 Bytes]
Downloaded 35 times
synfig_prepare.inx.txt [611 Bytes]
Downloaded 38 times
Top
 Profile  
 
PostPosted: Thu Sep 15, 2011 6:53 am 
Offline

Joined: Tue Sep 13, 2011 4:32 am
Posts: 13
nikitakit wrote:
The "Save As" option should be named: "Synfig Animation (*.sif)"
The menu option should be named "Extensions>Synfig>Prepare for Export". That is a "Synfig" submenu in the Extensions menu.

thanks, so I know what look for

nikitakit wrote:
Do other extensions show up in Inkscape? (e.g. Extensions>Text>UPPERCASE)

yes, the ones that are distributed with Inkscape are loaded and work.
A problem I can see is that there is no documentation that explain how to install additional extentions


Top
 Profile  
 
PostPosted: Thu Sep 15, 2011 7:06 am 
Offline

Joined: Tue Sep 13, 2011 4:32 am
Posts: 13
nikitakit wrote:
As a shot in the dark, I tried removing localization from the .inx files. I wonder if that has any effect. (See attached - the .txt is added on because the forum doesn't allow .inx files).


with those two files, the new entries appear on Win32. This evening I will try on Ubuntu


Last edited by efa on Thu Sep 15, 2011 8:21 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Sep 15, 2011 7:10 am 
Offline

Joined: Tue Sep 13, 2011 4:32 am
Posts: 13
but I got error with both Prepare to Export menù and Save as:

File "synfig_prepare.py", line 6
<!DOCTYPE html>
^
SyntaxError: invalid syntax


File "synfig_output.py", line 6
<!DOCTYPE html>
^
SyntaxError: invalid syntax


Top
 Profile  
 
PostPosted: Thu Sep 15, 2011 8:27 am 
Offline

Joined: Tue Sep 13, 2011 4:32 am
Posts: 13
I looked in some other .py files installed by inkscape in extensions directory.
They look much different than synfig files.
For example I looked at:
color_desaturate.py
color_grayscale.py
they seems standard python source (anyway I'm not an expert of python),
while Synfig *.py files are html files with javascript embedded or something similar


Last edited by efa on Thu Sep 15, 2011 8:38 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Sep 15, 2011 8:38 am 
Offline

Joined: Tue Sep 13, 2011 4:32 am
Posts: 13
solved: I downloaded the files from page:
https://github.com/nikitakit/svg2sif
using Firefox 6.0.2 using right click and "save link as".
Those method generate the wrong file with the right name.
I do not know if it is a problem of Web page mime type or so.

In any case, I downloaded it again as tar.gz or zip and worked.


Top
 Profile  
 
PostPosted: Thu Sep 15, 2011 1:47 pm 
Offline
Site Admin

Joined: Mon Feb 16, 2009 5:19 pm
Posts: 217
Good thing that's solved. I probably should have guessed what was going on, sorry for not being able to catch that.

I need better documentation on the page to make sure something like this doesn't happen again. (I'm actually tempted to do "Save Link As" myself every time I go to github).


Top
 Profile  
 
PostPosted: Thu Sep 15, 2011 5:23 pm 
Offline

Joined: Tue Sep 13, 2011 4:32 am
Posts: 13
nikitakit wrote:
Good thing that's solved. I probably should have guessed what was going on, sorry for not being able to catch that.

work on Ubuntu too

nikitakit wrote:
I need better documentation on the page to make sure something like this doesn't happen again. (I'm actually tempted to do "Save Link As" myself every time I go to github).

so this happen also with your browser?


Top
 Profile  
 
PostPosted: Thu Sep 15, 2011 5:27 pm 
Offline
Site Admin

Joined: Mon Feb 16, 2009 5:19 pm
Posts: 217
efa wrote:
nikitakit wrote:
I need better documentation on the page to make sure something like this doesn't happen again. (I'm actually tempted to do "Save Link As" myself every time I go to github).

so this happen also with your browser?


Yes. The browser is doing exactly what you asked it to, namely to save the page being linked to by the text. The problem is that this page isn't the actual file: it's a rendering of the file. (In other words, when you click the link you get an HTML document that has the text of the file, with nice Github formatting). It's not intuitive, but it works as advertised.


Top
 Profile  
 
PostPosted: Fri Sep 16, 2011 8:56 am 
Offline

Joined: Tue Sep 13, 2011 4:32 am
Posts: 13
nikitakit wrote:
Yes. The browser is doing exactly what you asked it to, namely to save the page being linked to by the text. The problem is that this page isn't the actual file: it's a rendering of the file. (In other words, when you click the link you get an HTML document that has the text of the file, with nice Github formatting). It's not intuitive, but it works as advertised.

not as advertized, the problem maybe not in the linked page, but in the linking page:
https://github.com/nikitakit/svg2sif

For example the text say "synfig_fileformat.py" and the link point to:
"https://github.com/nikitakit/svg2sif/blob/master/synfig_fileformat.py"
but the document that is linked and sent by http server, is not "synfig_fileformat.py" like all other web site do.


Top
 Profile  
 
PostPosted: Fri Sep 16, 2011 12:36 pm 
Offline
Site Admin

Joined: Mon Feb 16, 2009 5:19 pm
Posts: 217
efa wrote:
nikitakit wrote:
Yes. The browser is doing exactly what you asked it to, namely to save the page being linked to by the text. The problem is that this page isn't the actual file: it's a rendering of the file. (In other words, when you click the link you get an HTML document that has the text of the file, with nice Github formatting). It's not intuitive, but it works as advertised.

not as advertized, the problem maybe not in the linked page, but in the linking page:
https://github.com/nikitakit/svg2sif

For example the text say "synfig_fileformat.py" and the link point to:
"https://github.com/nikitakit/svg2sif/blob/master/synfig_fileformat.py"
but the document that is linked and sent by http server, is not "synfig_fileformat.py" like all other web site do.


When you click on the link normally (without doing "Save"), you get a certain github page - and not raw text. What "Save Link As" does is equivalent to clicking on the link with your mouse, and then pressing Ctrl-S on the next page. I'm guessing the reason the document name ends in synfig_fileformat.py is so the URL looks clean (other websites would have a lot of PHP stuff in the URL, which makes it very long but at the same time easy to recognize as an HTML page)


Top
 Profile  
 
PostPosted: Fri Sep 16, 2011 2:17 pm 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4190
Location: Spain
In any case it would be good to update the README file to explain the user to use the Download button to get the sources (tarball or zip) or use the raw link on the right top side to get a plain text of the file:
https://raw.github.com/nikitakit/svg2si ... eformat.py
which can be saved from the browser as the original text ASCII file.
-G

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 80 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC - 4 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group