Software :: Unable To Create An RPM That Will Install Python 2.7.1 Along With Sqlite 3.7.3?

Mar 8, 2011

I want to be able to create an RPM that will install python 2.7.1 along with sqlite 3.7.3, MySQL-Python-1.2.3 on a CentOS 5.5 x86_64 host(s) in a directory (e.g. /opt/python2.7). Once that's done, I want to be able to alias the new python binary in .bash_profile so that my developers can begin using it.

I understand 2.7.1 can't be installed on a CentOS host but I've done the above using a shell script successfully. If you search hard enough, I posted my script on line . However, I need to create the RPM for political reasons. Besides placing the source file(s) in the SOURCES directory, what do I need to do in the spec to be able to successfully create an RPM installer?

Please be gentle with me. I've been drinking the Windows cool-aid for most of my IT career so, this is one of my first attempts of becoming a better DevOps Admin.

View 6 Replies


ADVERTISEMENT

Fedora :: How To Install Sqlite-python

Nov 18, 2009

I am trying to install sqlite-python package in my FC11 machine. I couldn't find an rpm to install.

View 2 Replies View Related

Programming :: Python / Sqlite - Database Locked Despite Large Timeouts?

Apr 8, 2010

I'm sure I'm missing something pretty obvious, but I can't for the life of me stop my pysqlite scripts crashing out with a database is locked error. I have two scripts, one to load data into the database, and one to read data out, but both will frequently, and instantly, crash depending on what the other is doing with the database at any given time.I've got the timeout on both scripts set to 30 seconds: cx = sqlite.connect("database.sql", timeout=30.0)and think I can see some evidence of the timeouts in that i get what appears to be a timing stamp (e.g 0.12343827e10 1) dumped occasionally in the middle of my curses formatted output screen, but no delay that ever gets remotely near the 30 second timeout, but still one of the other keeps crashing again and again from this. I'm running RHEL5.4 on a 64 bit HS21 IBM blade, and have heard some mention about issues about multi-threading and am not sure if this might be relevant.

Packages in use are sqlite-3.3.6-5 and python-sqlite-1.1.7-1.2.1, and upgrading to newer versions outside of RedHat's official provisions is not a great option for me. Possible, but not desirable due to the environment in general.I have had autocommit=1 on previously on both scripts, but have since disabled on both, and am now cx.commit()ing on the inserting script and not committing on the select script. Ultimately as I only ever have one script actually making any modifications, I don't really see why this locking should ever ever happen

View 3 Replies View Related

General :: Unable Command Line Autocomplete After Sqlite?

Jun 3, 2010

Once upon a time when I started sqlite from the command line I could using the tabbing autocomplete to enter the database name. This has not worked for a while now.

View 1 Replies View Related

Debian Programming :: Python - Unable To Install Matplotlib

Jul 16, 2015

I am unable to install matplotlib. I already have installed latest libfreetype and libfreetype-dev.But it still errors out on freetype, I am running Debian testing on my machine. Python is latest 3.5.b3 compiled from source and in virtual env , running the command :

pip install matplotlib

...... freetype: no [Requires freetype2 2.3 or later. Found ...] png: yes [version 1.2.50] ..... .....

* The following required packages can not be built: * freetype ....

Full error log here: [URL]....

I do not understand why requirement is not marked for compilation even though found.

View 5 Replies View Related

General :: Unable To Install Python Package On 64bit Ubuntu

May 24, 2011

I've a 64-bit Ubuntu Linux machine. Linux version 2.6.28-14-generic (buildd@yellow) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #47-Ubuntu SMP Sat Jul 25 01:19:55 UTC 2009 Ubuntu 9.04
Linux Debian 5.0 ( 2.6.28-14-generic x86_64)

When I tried to install the python-dev package on it using the command sudo apt-get install python-dev, I got following messages.

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed: python-dev
0 upgraded, 1 newly installed, 0 to remove and 271 not upgraded.
Need to get 978B of archives.
After this operation, 24.6kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
python-dev
Install these packages without verification [y/N]? y
Err http://in.archive.ubuntu.com jaunty/main python-dev 2.6.2-0ubuntu1 404 Not Found [IP: 91.189.88.45 80]
Failed to fetch http://in.archive.ubuntu.com/ubuntu/...buntu1_all.deb 404 Not Found [IP: 91.189.88.45 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Tried with --fix-missing option as well. Same errors in this case also. How I can install python-dev package on 64-bit Ubuntu Linux machine?

View 2 Replies View Related

OpenSUSE :: Install Gnucash 2.4 In 11.4 To Use Sqlite?

Apr 18, 2011

Based on Product highlights - openSUSE, it would appear that using sqlite3 in gnucash would be available. However, I do not have an option to save an existing book to the database format, nor is it available when creating a new book - only xml is available. Is there anything special that I need to do to enable the sqlite backend?

View 2 Replies View Related

Fedora Installation :: How To Install Php-sqlite Extension On F14

Apr 15, 2011

How do I install php-sqlite extension on fedora 14.

View 5 Replies View Related

General :: Get Apt-get To Install Python Packages For A Different Version Of Python?

Oct 27, 2010

in ubuntu 10.10, I have installed python 2.7. I would like to use apt-get to install packages to this version of python but I haven't been able to figure out howThings I have tried without success:changing the symlink at /usr/bin/python to point to /usr/bin/python2.7 - even after doing this apt-get still installs stuff to python2.6.Set up python2.7 as the primary alternative using update-alternatives - doesn't work

View 3 Replies View Related

Programming :: C++ Or Python - Create 3D Animation ?

Jan 25, 2009

I want to create 3D animation and also make some big programs. Is python capable of that? or should I stick to C++?

View 3 Replies View Related

Programming :: Create Refactored Wx.python?

Apr 30, 2010

I'm starting with menus, but I can easily adapt it to everything else. I just don't see the data structure yet.Here is my base file:

Code:
#!/usr/bin/evy python
'''create basic window, with a button, status/menu bar and dialog boxes'''

[code]....

View 1 Replies View Related

Server :: Run Rpmbuild -bb On Centos 5.5 Box To Create The Rpm For Python 2.7

Feb 23, 2011

I've been attempting to run rpmbuild -bb on my centos 5.5 box to create the rpm for Python 2.7 to no success.

View 3 Replies View Related

OpenSUSE Install :: Unable To Create Repository From URL

Feb 23, 2010

I have a small installation problem with openSUSE 11.2 I have read the relevant stuff in the forums for new users. I have downloaded openSUSE-11.2-DVD-i586-iso and verified the file using MD5. I am currently running windows XP (SP1) on a Fujitsu Siemens V1000 laptop andI am trying to install linux from my hard drive and not from a DVD drive.

The path to the downloaded file on my windows partition is: e:/OpenSuse/openSUSE-11.2-DVD-i586.iso I have initialised installation and selected sda6 as the partition where the sourcefile is located. and when prompted for the directory, I typed " /OpenSuse/openSUSE-11.2DVD-i586.iso " The installations then proceeded through to "Initialising Package Manager" upon which I get the following message:

" Unable to create repository from url' iso:/? iso=openSUSE-11.2-DVD-i586.iso&url=hd:/OpenSuse?device=/dev/sda6"

DETAILS: Failed to mount iso:///?iso=openSUSE-11.2-DVD-i586.iso & url=hd:/OpenSuse?device=dev/sda6 on: Unable to find iso filename on source media.

History: - File:/openSUSE-11.2-DVD-i586.iso not found on medium 'hd:///OpenSuse?device=dev/sda6'

There is an option to try again at which point an additional dialog box appears and I have the opportunity to change things. Other than that, the only option is to cancel and terminate the installation. I've tried the process around 3 times, but if I'm doing the same thing then not surprising I'm getting the same result.

View 3 Replies View Related

OpenSUSE Install :: Unable To Create A Usb Key Bootable

Mar 17, 2010

I want to install SLES11 with my usb key but I couldn't to make it bootable. Because my server are only a cdrom drive, not dvd... I read the following document : SuSE install from USB drive - openSUSE but it doesn't run! So I can mount/umount the usb and linux could see him:

Code:

mount /dev/sda /mnt/usb

but the fsck.vfat doesn't run :

Code:

fsck.vfat /dev/sda1 open /dev/sda1:No such file or directory

View 2 Replies View Related

OpenSUSE Install :: Unable To Create Repository From URL?

Apr 3, 2010

Trying to install on an older Dell D600 laptop. During the install process on the system probing screen I get the following error message: Unable to create repository from URL 'cd:/'

Then it provides some details.Details: [|] Valid metadata not found at specified URL{s} I'm not a computer guy - just trying to set up for my son.

View 7 Replies View Related

OpenSUSE Install :: Unable To Create Repository?

Aug 12, 2010

I am trying to add a few additional repositories to SLES 11 64-bit but I can't seem to get them added. I am trying to add Index of /repositories/server:/database but I get the error "Unable to create repository from [URL]... Try again? So I browsed that repository and then tried to add Index of /repositories/server:/database/SLE_11 but still got the error message with this new URL listed instead. I tried just the 11.2 repository and it worked - Index of /distribution/11.2/repo/oss/suse.

How or what do I need to do in order to get Index of /repositories/server:/database added to my repository?

View 3 Replies View Related

Programming :: Python: Create Variables From Dictionary Keys?

Jan 31, 2011

I have a situation where i need to turn a dictionary entry into a variable. I think i'm close, but am getting a syntax error (quoted at bottom)...

Code:
## Parameters.py
def dictionary_function():
p = {}
p['param_1'] = 10

[Code].....

View 5 Replies View Related

Programming :: Python: Dynamically Create A List Within A Dictionary?

Jul 9, 2011

how to dynamically create a list within a dictionary using Python.

Code:
dates = defaultdict(int)
array = []
...
dates[m.group(3)] = array.append(date)
dates[m.group(3)] = [array.append(date)]
dates[m.group(3)].append(date)

None of the above works and I've tried everything I can think of.

View 3 Replies View Related

Programming :: Python - Using Input To Create New Instance Of A Class?

Apr 6, 2011

The intent here takes a little background info.I'm trying to make a basic inventory control to reinforce my studies. It will have a while loop that displays amenu for add, edit, view, and quit. Lets assume the following:

Code:
class inventoryItem:
itsDescriptiveName = None

[code]....

View 5 Replies View Related

OpenSUSE Install :: Unable To Create USB Stick / Resolve This?

Feb 11, 2010

I'm new here, an Ubuntu user who would try Opensuse for a while. That is if I'm able to launch the thing !
I'd like to create a Live Usb Stick to test it and install it if I like it but it doesn't seem to work.

I tried the website method, using "Win32DiskImager.exe" but the program doesn't work for me (WinXP) : it looks like it's writing but when the "Done" message is prompted, I'm unable to access the usb key, Windows says it's not formatted. That doesn't look right...
I tried with LinuxLive Usb Creator but the boot process fails and Universal-Usb-Installer doesn't offer an Opensuse option.

Is there another way to install the distribution on an USB stick ? I could still try through Ubuntu but that would be quite surrealistic.

View 5 Replies View Related

OpenSUSE Install :: 11.2 - Unable To Create RAID 5 Disks

Jun 25, 2010

I've got 3 extra disks on OpenSuse 11.2 - all the same size. I've created a partition on all of them as type 0xFD. If I then try and add raid in yast I get "There are not enough suitable unused devices to create a RAID."

View 9 Replies View Related

Programming :: Use Glade With C/python To Create A Graphical User Interface

Jan 30, 2011

I am working with ubuntu (linux) and have to create a graphical user interface. The GUI is a 2-D plot that have to plot a point. The point ( x and y co-ordinates) are not hardcoded, and are coming from another file (another piece of code written in c / python). I was thinking to use Glade with c/python to create this. But, I am not sure how to start with this.

View 4 Replies View Related

OpenSUSE Install :: Unable To Create Bootable USB Drives With SuseStudio Iso Images?

Jul 3, 2011

I am attempting to use SuseStudio "preload" and "live" .iso images and the instructions at SDB:Live USB stick - openSUSE to create a bootable USB drive.dd_rescue ends after the expected amount of time--without reporting errors--yet "fdisk -l" reports that the device does not contain a valid partition table. The USB key does not boot and appears to have no data.

For what it's worth, my build host is Gentoo on 2.6.39, and I have the latest dd-rescue available. The USB disk is a PNY attache 4GB and works fine with any ISO's supported by unetbootin. The only other bare metal I have here is a netbook running Mepix, so I can't make use of solutions that start with "Boot your existing OpenSuse workstation

View 3 Replies View Related

Software :: ERROR "global Name 'sqlite' Is Not Defined" When Install Apache + Subversion + Trac

Oct 3, 2010

ERROR "global name 'sqlite' is not defined" when install Apache + Subversion + Trac

Apache+Subversion+Trac
httpd-2.2.16
Python-2.6
swig-1.3.31
sqlite-3.6.13
subversion-1.6.12
mod_python-3.3.1
[Code]....

View 4 Replies View Related

General :: Unable To Determine What Exactly Python OpenSSL?

Jun 11, 2010

I haven't been able to determine what exactly Python OpenSSL and what it does. Google searching has not yielded me anything I can understand. In a terminal window (using RHEL 4.8 AS) typing

Code: rpm -qi pyOpenSSL yields information pertaining to the version of Python OpenSSL on my server. Can you explain what Python OpenSSL is in simple terms?

View 5 Replies View Related

Debian :: Unable To Locate Package Python-virtinst

Sep 28, 2015

I'm trying to install some virtual machines to a dedi using KVM. So far everything seems to be working, I tested the KVM install with virsh -c qemu:///system list and it responded, however, I'm trying to now install the script for generating new vps's python-virtinst but putty is returning this error:

E: Unable to locate package python-virtinst

View 3 Replies View Related

Programming :: Unable To Configure Apache2 With Python Support

May 31, 2011

I'm unable to configure the apache2 with python support. I have done the configuration in the following method, but unable to start the python cgi support: I have installed the libapache2-mod-python it has installed python.load in the mods-available directory. In the apache2/sites-available/default file, I have added the following lines.

[code]...

when I request for a python script in the py folder. I get a 404 Not found error.

View 1 Replies View Related

General :: Unable To Build Python Modules In Mandriva 2010?

Jan 14, 2010

I am trying to build a Python module (pyfits) but I get the following error:

# python setup.py install
/home/steve/src/pyfits-2.2.2/stsci_distutils_hack.py:239: DeprecationWarning: os.popen3 is deprecated. Use the subprocess module.

[code]....

View 2 Replies View Related

Programming :: Make Python Programs Run Without Entering The Command Python?

Mar 22, 2009

I want to be able to do

sudo ./program.py

instead of always having to do

sudo python program.py

What do I need to change?

View 5 Replies View Related

Programming :: Python - Get Text File Data Into An Array On Python?

Nov 30, 2009

I've already used line split stuff to transform my data into something like this in a text file:

Code:

['1', '1', '3', '20.7505207']
['2', '1', '3', '23.0488319']
['3', '1', '3', '-1.5768747']
['4', '1', '3', '-26.4772491']

[code]....

How can I get this on a python program so I can manipulate it as an array?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved