LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-13-2009, 07:28 AM   #1
narendra1310
Member
 
Registered: May 2008
Posts: 41

Rep: Reputation: 15
Unhappy Error: while running autospec on xxxxxxxx.tar.gz


Hi all,
I want to create .spec file(with the help of this file, we can able to create RPM package). In order to create .spec file i used autospec in fedora 8 linux (http://www.npsnet.com/danf/software/autospec(1).html). But while running autospec command on .tar.gz file i got below error.

#tar tzf VembuStoreGrid_2_5_1_SP_RH.bin.tar.gz | autospec -bd -c GPL -g Utilities/System -n VembuStoreGrid_2_5_1_SP_RH -l '' > vembuSG.spec

Traceback (most recent call last):
File "/usr/bin/autospec", line 18, in <module>
import autospec
File "/usr/bin/../share/autospec/autospec.py", line 228, in <module>
from fileanalyze import FileInfo,FileListAnalyze,lookforlicense
File "/usr/bin/../share/autospec/fileanalyze.py", line 11, in <module>
import regex
ImportError: No module named regex

Can any one please let me know how to proceed now.

what is regex ?

what is this error mean ?
ImportError: No module named regex

Thanks in advance
Narendra
 
Old 06-15-2009, 02:05 AM   #2
narendra1310
Member
 
Registered: May 2008
Posts: 41

Original Poster
Rep: Reputation: 15
Thumbs up challenging question? autospec error !!!!!!!!!!!!!!!!!!!!!!!!!!!

Hi all,
I want to create .spec file(with the help of this file, we can able to create RPM package). In order to create .spec file i used autospec in fedora 8 linux
(url]http://www.npsnet.com/danf/software/autospec(1).html[/url]). But while running autospec command on .tar.gz file i got below error.

#tar tzf VembuStoreGrid_2_5_1_SP_RH.bin.tar.gz | autospec -bd -c GPL -g Utilities/System -n VembuStoreGrid_2_5_1_SP_RH -l '' > vembuSG.spec

Traceback (most recent call last):
File "/usr/bin/autospec", line 18, in <module>
import autospec
File "/usr/bin/../share/autospec/autospec.py", line 228, in <module>
from fileanalyze import FileInfo,FileListAnalyze,lookforlicense
File "/usr/bin/../share/autospec/fileanalyze.py", line 11, in <module>
import regex
ImportError: No module named regex

Can any one please let me know how to proceed now.

what is regex ?

what is this error mean ?
ImportError: No module named regex

Thanks in advance
parimi Narendra
 
Old 06-15-2009, 05:00 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
http://www.boutell.com/lsm/lsmbyid.cgi/002064
http://freshmeat.net/projects/autospec/
http://freshmeat.net/urls/42a6f78fb7...4ad40249eb69c1
> > autospec-0.8.tar.gz , last update year 2003.

http://www.regular-expressions.info/python.html
" The first thing to do is to import the regexp module
into your script with import re. "

'autospec-0.8' is old and buggy, was meant for python
version 1.3 > ... not 2.x .AFAIK.

What is regex ... Google has 5.7 million hits, the first :
http://en.wikipedia.org/wiki/Regular_expression

Python 2.x has no module regex.py, the name is ' re.py '.
Editing the autospec py programs, change some 'regex'
to 're' : it is still buggy.

A working 'autospec' was never perfect, and you had to
edit the spec files created by the tool.
.....
.....
Writing a spec file isn't difficult
http://www.rpm.org/max-rpm/s1-rpm-bu...spec-file.html
http://docs.fedoraproject.org/drafts...specfiles.html
http://docs.fedoraproject.org/drafts...n/ch09s05.html
http://docs.fedoraproject.org/drafts...html#id2972829

Most applications already have a spec file, or you can
copy one, and edit it to your application.

Some "10,000" examples here
http://download.fedora.redhat.com/pu.../source/SRPMS/
http://ftp.heanet.ie/pub/freshrpms/p...6/SRPMS.dries/
http://apt.sw.be/fedora/9/en/SRPMS.rpmforge/
.....

Last edited by knudfl; 06-15-2009 at 08:29 AM.
 
  


Reply

Tags
spec


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tar & un tar Data integrity error ShadowHywind Linux - General 1 08-13-2008 08:29 PM
error running rpmbuild -ta on cups source.tar.gz involving openssh? possible? Nahmus Linux - Software 6 04-14-2007 02:20 AM
Can anyone tell me what I need to do when running into a tar: Unexpected EOF error? schmootsypoo Linux - Software 2 09-03-2004 07:50 AM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 01:04 PM
telnet xxxxxxxx.com 25 ssrikant Linux - Networking 11 05-07-2003 06:31 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration