sK1 Project :: OpenSource Solutions for Prepress
View Thread
 Print Thread
deb error on ubuntu 9.04
mida
#1 Print Post
Posted on 10-05-2009 00:22
Member

Posts: 8
Joined: 10.05.09

the error n the terminal:

"python setup.py bdist_rpm
...
...
tar -cf dist/sK1-0.9.0.tar sK1-0.9.0
gzip -f9 dist/sK1-0.9.0.tar
removing 'sK1-0.9.0' (and everything under it)
copying dist/sK1-0.9.0.tar.gz -> build/bdist.linux-i686/rpm/SOURCES
building RPMs
sh: rpm: not found
error: Failed to execute: "rpm -q --qf '%{name}-%{version}-%{release}.src.rpm %{arch}/%{name}-%{version}-%{release}.%{arch}.rpm\\n' --specfile 'build/bdist.linux-i686/rpm/SPECS/sK1.spec'"
Edited by mida on 10-05-2009 00:23
 
igor
#2 Print Post
Posted on 10-05-2009 04:27
User Avatar

Super Administrator

Posts: 220
Joined: 09.02.09

Hi,

The problem reason is:

Download source  Code
sh: rpm: not found




So you need installing "rpm" package to build sK1. Also may be "alien" package will be require to convert rpm to deb.
Regards,

Igor Novikov
sK1 Project
 
mida
#3 Print Post
Posted on 10-05-2009 10:06
Member

Posts: 8
Joined: 10.05.09

creating build/temp.linux-i686-2.6/src/extentions
creating build/temp.linux-i686-2.6/src/extentions/filter
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fPIC -DMAJOR_VERSION=0 -DMINOR_VERSION=9 -I/usr/include/python2.6 -c src/extentions/filter/streamfilter.c -o build/temp.linux-i686-2.6/src/extentions/filter/streamfilter.o
src/extentions/filter/streamfilter.c:24:20: Fehler: Python.h: No such file or directory
In file included from src/extentions/filter/streamfilter.c:26:
src/extentions/filter/filterobj.h:31: Fehler: expected declaration specifiers or »...« before »*« token
src/extentions/filter/filterobj.h:31: Fehler: expected declaration specifiers or »...« before »PyObject«
src/extentions/filter/filterobj.h:32: Fehler: expected declaration specifiers or »...« before »size_t«
src/extentions/filter/filterobj.h:32: Warnung: »int« ist Standardtyp in Deklaration von »size_t«
src/extentions/filter/filterobj.h:32: Fehler: »size_t« als Funktion, die eine Funktion zurückgibt, deklariert
src/extentions/filter/filterobj.h:32: Warnung: Funktionsdeklaration ist kein Prototyp
src/extentions/filter/filterobj.h:33: Fehler: expected declaration specifiers or »...« before »PyObject«
src/extentions/filter/filterobj.h:34: Fehler: »filter_write_proc« als Funktion, die eine Funktion zurückgibt, deklariert
src/extentions/filter/filterobj.h:35: Fehler: expected declaration specifiers or »...« before »PyObject«
src/extentions/filter/filterobj.h:40: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »*« token
src/extentions/filter/filterobj.h:47: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »*« token
src/extentions/filter/filterobj.h:55: Fehler: expected »)« before »*« token
src/extentions/filter/filterobj.h:56: Fehler: expected »)« before »*« token
src/extentions/filter/filterobj.h:58: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »*« token
src/extentions/filter/filterobj.h:60: Fehler: expected »)« before »*« token
src/extentions/filter/filterobj.h:63: Fehler: expected »)« before »*« token
src/extentions/filter/filterobj.h:64: Fehler: expected »)« before »*« token
src/extentions/filter/filterobj.h:67: Fehler: expected »)« before »*« token
src/extentions/filter/filterobj.h:75: Fehler: expected specifier-qualifier-list before »PyObject_HEAD«
src/extentions/filter/filterobj.h:92: Warnung: Rückgabetyp ist auf »int« voreingestellt
src/extentions/filter/filterobj.h:92: Warnung: Funktionsdeklaration ist kein Prototyp
src/extentions/filter/filterobj.h: In Funktion »DL_IMPORT«:
src/extentions/filter/filterobj.h:92: Fehler: expected declaration specifiers before »FilterType«
src/extentions/filter/filterobj.h:118: Fehler: expected »)« before »*« token
src/extentions/filter/filterobj.h:119: Fehler: expected »;« before »size_t«
src/extentions/filter/filterobj.h:130: Fehler: Speicherklasse für Parameter »Filter_Functions« angegeben
In file included from src/extentions/filter/streamfilter.c:27:
src/extentions/filter/linefilter.h:29: Fehler: expected declaration specifiers before »PyObject«
In file included from src/extentions/filter/streamfilter.c:28:
src/extentions/filter/subfilefilter.h:28: Fehler: expected declaration specifiers before »PyObject«
In file included from src/extentions/filter/streamfilter.c:29:
src/extentions/filter/base64filter.h:28: Fehler: expected declaration specifiers before »PyObject«
src/extentions/filter/base64filter.h:29: Fehler: expected declaration specifiers before »PyObject«
In file included from src/extentions/filter/streamfilter.c:30:
src/extentions/filter/stringfilter.h:29: Fehler: expected declaration specifiers before »PyObject«
In file included from src/extentions/filter/streamfilter.c:31:
src/extentions/filter/nullfilter.h:29: Fehler: expected declaration specifiers before »PyObject«
src/extentions/filter/nullfilter.h:30: Fehler: expected declaration specifiers before »PyObject«
In file included from src/extentions/filter/streamfilter.c:32:
src/extentions/filter/hexfilter.h:28: Fehler: expected declaration specifiers before »PyObject«
src/extentions/filter/hexfilter.h:29: Fehler: expected declaration specifiers before »PyObject«
In file included from src/extentions/filter/streamfilter.c:38:
src/extentions/filter/binfile.h:28: Fehler: expected declaration specifiers before »PyObject«
src/extentions/filter/streamfilter.c:41: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »filter_functions«
src/extentions/filter/streamfilter.c:58: Fehler: expected declaration specifiers before »;« token
src/extentions/filter/streamfilter.c:60: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »functions«
src/extentions/filter/streamfilter.c:77: Fehler: expected declaration specifiers before »;« token
src/extentions/filter/streamfilter.c:80: Fehler: expected declaration specifiers before »DL_EXPORT«
src/extentions/filter/filterobj.h:130: Fehler: Deklaration für nicht vorhandenen Parameter »Filter_Functions«
src/extentions/filter/filterobj.h:98: Fehler: Deklaration für nicht vorhandenen Parameter »_Filter_Overflow«
src/extentions/filter/filterobj.h:97: Fehler: Deklaration für nicht vorhandenen Parameter »_Filter_Underflow«
src/extentions/filter/streamfilter.c:94: Fehler: expected »{« at end of input
error: command 'gcc' failed with exit status 1
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.90884 (%build)


Fehler beim Bauen des RPMS:
Fehler-Status beim Beenden von /var/tmp/rpm-tmp.90884 (%build)
error: command 'rpmbuild' failed with exit status 1
 
igor
#4 Print Post
Posted on 10-05-2009 10:57
User Avatar

Super Administrator

Posts: 220
Joined: 09.02.09

Download source  Code
Fehler: Python.h: No such file or directory




You need installing python-dev package. Also please check following packages:

tcl8.5
tcl8.5-dev
tk8.5
tk8.5-dev
liblcms1-dev
libcairo2-dev
libfreetype6-dev
python-reportlab
python-imaging
python-imaging-tk
python-liblcms
Regards,

Igor Novikov
sK1 Project
Edited by igor on 16-05-2009 11:16
 
mida
#5 Print Post
Posted on 13-05-2009 15:37
Member

Posts: 8
Joined: 10.05.09

Thank you.
Edited by mida on 13-05-2009 15:42
 
Ulysses
#6 Print Post
Posted on 16-05-2009 15:59
Member

Posts: 4
Joined: 16.05.09

Hi all,

Just did some testing. The following installation procedure seems to work fine in Ubuntu 9.10 alpha (karmic edition) and hopefully also works on Debian systems:

Copy-paste the following commands into a Terminal:

sudo aptitude update

sudo aptitude install subversion tcl8.5 tcl8.5-dev tk8.5 tk8.5-dev python-cairo-dev python-imaging python-imaging-tk python-reportlab python-liblcms python2.4-dev python2.5-dev python2.6-dev alien liblcms liblcms-dev libcairo libcairo-dev libfreetype6 libfreetype6-dev

svn co https://sk1.svn.sourceforge.net/svnroot/sk1/trunk/sK1 sK1

cd sK1

sudo python setup.py install

Run sk1 to launch the program

Regards,

Mark
Edited by Ulysses on 16-05-2009 16:02
 
ogro
#7 Print Post
Posted on 04-08-2009 16:08
Member

Posts: 6
Joined: 04.08.09

Ok... I'm about ready to throw my comp at the wall!!

I really would like to use sK1, but for the life of me I can't get it to work! Obviously, I am a linux newb and have had much difficulty trying to install this. See my sig for system info.

I followed the instructions from the download page... most of the dependencies were allready installed except for the dev packages of tcl and tk. And in the end all I got was the following:

Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named sk1

Without anymore to go on, I uninstalled sK1 with Synaptic and followed the instructions on the post above, word per word. In the end, when I typed sk1 it told me that there wasn't any such file or directory in /usr/local/bin... so I reinstalled the deb (sk1_0.9.1pre_rev730-1_i386.deb ) and now when typing sk1 in a terminal it doesn't say a damn thing... it only gives me a new prompt.

Now I would like to clean the system from any mistakes I made with all these steps and start again from scratch!!

Thanks in advance for any and all help that you can give.


---------
Dell Inspiron 1720, 1.5GHz, 250GB, 2GB
Ubuntu Hardy 8.04 (up to date)
 
max
#8 Print Post
Posted on 04-08-2009 17:47
Administrator

Posts: 63
Joined: 09.05.09

ogro, please show the output of the command in console

python -V


Regards,

Maxim Barabash
sK1 Project
 
ogro
#9 Print Post
Posted on 04-08-2009 17:54
Member

Posts: 6
Joined: 04.08.09

Hi...

it says:
:~$ python -V
Python 2.5.2

Dell Inspiron 1720, 1.5GHz, 250GB, 2GB
Ubuntu Hardy 8.04 (up to date)
 
max
#10 Print Post
Posted on 04-08-2009 18:12
Administrator

Posts: 63
Joined: 09.05.09

The package sk1_0.9.1pre_rev730-1_i386.deb is built for python 2.6
To run

python2.6 -c 'import sk1'

or change default version python to python2.6
Regards,

Maxim Barabash
sK1 Project
 
ogro
#11 Print Post
Posted on 04-08-2009 18:21
Member

Posts: 6
Joined: 04.08.09

ok... well then that makes sense as to why it's not working... now since synaptic doesn't see python2.6, I can't install it.
And typing it in terminal gives:
[email protected]:~$ python2.6 -c 'import sk1'
bash: python2.6: command not found

Any thoughts?

Thanks for the help by the way! Smile

Dell Inspiron 1720, 1.5GHz, 250GB, 2GB
Ubuntu Hardy 8.04 (up to date)
 
max
#12 Print Post
Posted on 04-08-2009 18:43
Administrator

Posts: 63
Joined: 09.05.09

hmm ... What the name of your distribution and its version?
Regards,

Maxim Barabash
sK1 Project
 
ogro
#13 Print Post
Posted on 04-08-2009 18:48
Member

Posts: 6
Joined: 04.08.09

These is what you need?
Ubuntu Hardy 8.04
Gnome 2.22.3
Kernel 2.6.24-23-generic
Dell Inspiron 1720, 1.5GHz, 250GB, 2GB
Ubuntu Hardy 8.04 (up to date)
 
max
#14 Print Post
Posted on 04-08-2009 19:01
Administrator

Posts: 63
Joined: 09.05.09

Try using this package. https://launchpad...1_i386.deb

If does not work then the solution will be build from sources
Regards,

Maxim Barabash
sK1 Project
Edited by max on 04-08-2009 19:03
 
ogro
#15 Print Post
Posted on 04-08-2009 19:02
Member

Posts: 6
Joined: 04.08.09

ok, I'll try that... but one question, should I uninstall everything and start again, and if so what's the best way to do it?
Dell Inspiron 1720, 1.5GHz, 250GB, 2GB
Ubuntu Hardy 8.04 (up to date)
 
max
#16 Print Post
Posted on 04-08-2009 19:07
Administrator

Posts: 63
Joined: 09.05.09

Yes, of course if the installed package sk1, remove it
Regards,

Maxim Barabash
sK1 Project
 
ogro
#17 Print Post
Posted on 04-08-2009 19:22
Member

Posts: 6
Joined: 04.08.09

Hey... that did it!!!

Downloaded the deb file you said, installed it, and then did sudo python setup.py install and after that sk1 at the prompt and it finally opened!!!

Thanks a lot for the help. You should put that link in the downloads page... and sorry if it is there and I missed it!!

Now, time to play with it! Thanks again!

Cheers
Dell Inspiron 1720, 1.5GHz, 250GB, 2GB
Ubuntu Hardy 8.04 (up to date)
 
Jump to Forum: