General :: Python Package Deployment Tool (Executable)

Jul 6, 2010

I am writing a python package deployment tool for linux based platforms. I have tried various existing tool sets but none of them is up to the mark and they have their own issues. Initially I'll start with simple approach.
1. Find all the modules/packages and copy to "lib" directory.
2. Find python's *.so dependencies (system libs) and copy them to "syslib"
3. Copy python (executable) and libpython2.6.so.1.0 into "dist" directory.
4. Set up temp environment
5. Run main script using "python <main script>.py"

The idea is to produce a cleaner directory structure. Neither I am creating a boot loader nor I am converting main script file into executable. It's plain vanilla stuff. Using above steps I have pulled down a package using wxPython's demo example "pySketch.py". You can download the archive from here: [URL]. After extracting the contents, run the executable file using "./run". This file sets temporary environment variables and execute "pySketch.py". This is eventually not working. I think I am not able to set up temporary environment properly or may be missing some other stuff.

View 1 Replies


ADVERTISEMENT

Ubuntu :: Clickable Shortcut/executable Python Script?

Apr 20, 2011

I am fairly new to Linux, and in the last two days, I've learned a lot! I am a LONG time heavy windows user since 1986, and have used Mac OS X at work for the last year. I feel I am a more experienced user on the Windows platform; I have programmed a short game in BASIC and C++. I have tons of games and one of my hopes is to get them working on Linux.

My problem; I have sucessfully downloaded a couple games, compiled their scipts and can play them by finding their executable and double clicking on them. i have added them to my Games menu. I downloaded a front-end for a game that is written in Python (Doomsday and Snowberry if you want to know) and have it running great! However, I would like to create some kind of clickable link in my Games menu so that it'll start up Snowberry (snowberry.py) so I don't have to keep opening a terminal and 'cd' my way to it's folder and 'python file.py'. Possible? I keep searching on google and find nothing but references to creating executable files for Windows.

View 6 Replies View Related

General :: Specifying The Install Path Of A Python Package On Server?

Jun 23, 2010

I have been trying to install the NumPy package for Python on to my home directory, as I run as part of a server and do not have permissions to install new packages in the Linux server.

I have set up Python in my home directory, and have configured ~/.bash_profile to find my local Python (which works, confirmed by testing).

However, when I attempt to install the NumPy package, I get the message error: could not create '/usr/local/lib/python2.6': Permission denied Which I find strange because I do not see why it would need to install files anywhere except my local Python directory.

how I might be able to specify the directory in which files are installed?

View 2 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

General :: Fatal: Bad Magic Number In Executable `prime' (not An Executable?)

Sep 3, 2010

I am trying to run Wattch simulator in linux.But it is giving the error below. what is this error and what do I do about it?

fatal: bad magic number in executable `prime' (not an executable?)

View 1 Replies View Related

Fedora :: Automatic Bug Reporting Tool Blinks Indicating A Bug In Python 2.6.2-2.fc12

Dec 14, 2009

I have been trying to run Yumex under F12, x86_64. It always crashes when it finishes to resolve the repositories and then the Automatic Bug Reporting tool blinks indicating a bug in python 2.6.2-2.fc12. Anyone else has seen the same bug? What have you done to solve it?

View 14 Replies View Related

General :: Difference Between Installation And Deployment

Apr 24, 2011

Anyone explain me the difference between installation and deployment?

View 4 Replies View Related

General :: Kickstart Versus Windows Deployment Service

Mar 15, 2010

Need comparison of features and performance of Kickstart to Windows Deployment Service? (What do they have in common).

View 4 Replies View Related

General :: Multiple System Deployment (95 Percent Debian)

Jun 17, 2011

The last days I try to find a good and easy solution to keep new installed Servers with same basic configuration. For example every new Installed Server should have:

- phpmyadmin installed and configured
- munin installed and configured
- mysql server with some predefined users and passwords
- same users created with existing ssh keys. also ~/.ssh/authorized_keys file with pub key inside

At the moment I use some bash script to create the users and sync the keys. Basically I need to install predefined packages and remove some other packages configure some config files (or copy working configs). I have looked at cfengine and puppet Server. And I am asking my self if this tools are overkill for this task.

View 2 Replies View Related

General :: Scalable Test Platform And Patch Lifecycle Manager Deployment

Oct 21, 2010

I am regularly keeping watch on kernel releases like 2.6.36-rcX and compiling the upcoming kernel releases on Fedora 13.I came across STP [URL] and PLM testing and seems like it is relevant tool for compiling, testing the kernel components in very precise way. I am unable to find the documents which can help in how to implement or run the tool. I have just downloaded the Test-suit tar and dont see any README or steps to test or run the tool.

View 1 Replies View Related

Software :: How To Uninstall Python Package

Nov 7, 2009

Is there a formal documented way? I have found a method of doing it, but I find it difficult to believe the ability to uninstall is not formally supported. [URL]

Essentially:
When you install - python setup.py install --record files.txt
When you uninstall - cat files.txt | xargs rm -rf

This will, however, require the user to look through files.txt like a hawk. It is really not an ideal situation I would think.

View 1 Replies View Related

Ubuntu :: Install The MySQLdb Package For Python?

Feb 23, 2010

I am trying to install the MySQLdb package for python and the instructions tell me that I need to add mysql_config to my path. This file does not appear to exist in my mysql installation, or anywhere on my machine. I installed mysql-server from the ubuntu package manager, and then did a search of my system for that file.

Code:

sudo find / -name mysql_config

This gave me no results. where I can find this? Is it part of some extra toolkit for mysql?

View 2 Replies View Related

Ubuntu :: Install The Python-matplotlib Package?

Mar 12, 2010

I am trying to install the python-matplotlib package but I get E:broken packages. I have tried the apt-get -f install, apt-get update, apt-get clean all in various permutations but it doesnt solve the problem.I also tried uninstalling the dependednt packages and then reinstalling them but that doesnt work either.

root@ubuntu:~# apt-get install python-matplotlib
Reading package lists... Done
Building dependency tree
Reading state information... Done

Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.

[Code]...

View 3 Replies View Related

Slackware :: Which Package Brings Python Numeric

Jan 17, 2010

I wish to install Python Numeric in site-packages... which package brings this...?I have searched in the Slackbuilds... and no Luck so far...

View 10 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

Debian :: How To Fix Python-libtorrent Kept Back Package On Wheezy

Oct 11, 2015

I'm currently running Debian Wheezy (upgrading to Jessie is not possible since I'm using OpenMediaVault which only supports Wheezy) but ever since I installed Deluge BitTorrent client that I've had this python-libtorrent package as "kept back". I'd like to fix this system state but how...

A few things I've tried:

Code: Select all$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done

The following packages have been kept back:
  python-libtorrent
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Code: Select all~$ sudo apt-get install python-libtorrent
Reading package lists... Done
Building dependency tree
Reading state information... Done

[Code] .....

I have the following APT repositories on my sources which I believe are causing my problem:

Code: Select alldeb http://dh2k.omv-extras.org/debian/ stoneburner-miller main
deb http://ppa.launchpad.net/deluge-team/ppa/ubuntu precise main

They were added through OpenMediaVault's interface when I enabled some checkboxes to be able to install Deluge.

View 6 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

Slackware :: Tool For Managing Package To Format Compat32?

Sep 11, 2010

I started writing compat32pkg late April. At the begining it was only for my personal use (and for the fun), and, it was only dedicated to automate updates of 32-bit part of the 32-bit compatibility layer (AlienBob's multilib). Afterward, I improved it, I added some features and now, it provides all the necessary for managing (converting,installing,upgrading,remove) of 32-bit part of the multilib, and others packages which are part of Slackware-32 like firefox, seamonkey, jre,. As I guess it could be usefull for others, I decided to publish it. So, if you want it, you can grab it at [URL]... But before that, I guess that you want to know a bit more about it. So, let's go. The installation of compat32pkg is done as for any Slackware package, using the command installpkg :

[code]...

If you want to convert packages to format compat32 only, you have to use compat32pkg in mode --convert instead of --install :

[code]...

The example below will give you the list of all available packages from the selected mirror and the status of the compat32 version (installed, not installed, update) of these packages......

View 12 Replies View Related

Ubuntu Installation :: Umarks 2: Package Backup And Restore Management Tool?

Apr 28, 2010

Umarks is no longer under development.

View 9 Replies View Related

Fedora :: Make A Executable (application/x-executable)

Aug 21, 2011

I hope this post stands in the right section.I have a commandline i need to enter in terminal when i want to run a program. i tought lets put that piece of command in an .sh file and just click the file to run the program (then i dont need to open terminal first an give in the command) however the .sh file does not open the program. so i propably need to make a executable (application/x-executable).

View 3 Replies View Related

Ubuntu :: Cannot Open An Executable File Because Of Executable Bit?

Jun 20, 2010

I am running into a snag on .exe files in Lucid. I have Wine installed, but I can not open the file as it is blocked from executing with a window popping up telling me that this file was blocked due to security reasons. I go into the files properties and try to change the permission but that does not help. Is there a way to get around this? Possibly in the terminal as root?

View 3 Replies View Related

Red Hat / Fedora :: Samba3 3.3.14 On CentOS 5 Deployment

Nov 16, 2010

Anyone done a deployment of Samba3 > 3.3.4. Had to install this version as I am preparing a domain for Windows 7 computers. My installation on CentOS went well. smbd and nmbd are running OK. I am able to test user accounts with the

smbclient -U usertest \hostusertest

However, I cannot seem to be able to add a computer, even a Win XP workstation to the domain. I used smb.conf files from a previous Samba 3.0.28 with minimal modifications. Kindly forward your smb.conf file, here is mine:

[global]
workgroup = DOMAIN
netbios name = DOMAIN_SERVER
server string = Samba Server Version %v
passdb backend = tdbsam
log file = /var/log/samba/%m.log
max log size = 40 .....

View 5 Replies View Related

Red Hat / Fedora :: Automatic OS Image Mass Deployment

Dec 21, 2010

I have a Linux OS, and I want to make it as an image so that I can install 20 servers with that image as baseline OS.How to do that? As I know:
1. kickstart == is only for new OS instalation, it needs a Linux CD source
2. systemimage == is for clone the partition (not massive deployment)
3. kiwi == only for SUSE

View 2 Replies View Related

Software :: Possibilities Regarding Deployment Of RedHat Server

Aug 10, 2010

We have a customer that wants to look at other possibilities regarding deployment of redhat server. They are now using Altiris. Do you have any other good software, free or not free.

View 1 Replies View Related

Ubuntu Servers :: BEST 10.04lts Desktop Automated Deployment

Aug 25, 2010

vote on the best automated deployment for 10.04 lts desktop! have 50units identical pc's, one pdc (openldap, bind, dhcp) and one fs (nfs server). thinking of installing just one pc with all the updates, program addons and stuff, then thinking of: disk image the disk and copy to the rest of the 49units and just edit the host name and activate the etho by sudo mv /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.old would this be ok? i mean there will be no problem if users authenticate an stuff?

View 7 Replies View Related

Fedora Security :: Securing A Server For Deployment In Untrusted Zone?

Apr 1, 2010

I have to deploy a server to some customers that should not be given access to the server itself. I know that nothing is 100% secure but I've searched without finding a decent answer (maybe I googled for the wrong terms ?)I need some advice about encrypted filesystem. * The server must boot without asking for a passphrase (the server will be in a restricted access area so typing a password could take a while). I can't store the password for luks in an unencrypted file so it seems a loop to me. The only way out I can see is to store the passphrase in the boot binaries (better than nothing...) but this results in more work for me.* possibly the customer should not be able to move the hard disks to another pc, i.e. reading the passphrase from some unique hardware ID. This is risky but I could add a master passphrase to be used in case of hardware replacement

View 3 Replies View Related

Ubuntu Installation :: Windows Deployment Services - PXE Boot Aborted (Grub Rescue)

Dec 23, 2010

I previously had a machine that dual booted Windows 7 and Ubuntu 10.10 32 bit. I recently attempted to wipe out the 32 bit Ubuntu and install 64 bit Ubuntu.

Here what I did:
- I booted from the LiveCD, and had no problems
- I formatted /sda3 using gparted. I checked that Ubuntu resided on /sda3 via the command "sudo fdisk -l". This worked fine.
- I then clicked the "install ubuntu" option on the desktop, and chose the largest chunk of free space.
- About 15% through the install, I was told the CD could not be read from due to a potential scratch or issue. I then tried to revert back to the Os running from the LiveCD, and things went crazy. I had trouble shutting down the machine and did a hard reset.

Now, whenever I boot I am greeted with the following message:
Windows Deployment Services: PXE boot aborted
error: no such partition
grub rescue>
At the grub rescue prompt when I ls, I see:
(hd0) (hd0,4) (hd0,2) (hd0,1)

I can still boot the LiveCD. I tried that again and tried to again format sda3 using gparted but had no luck fixing the issue. When booting from the LiveCD I am also told by gparted that "sda1 does not coincide with a cylinder boundary" or something of that nature.

View 9 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

Software :: Python 3 Want Situation For Python 2 And Become Stop?

Jul 17, 2010

Python 3 want situation for python 2?Python 2 become stop?

View 1 Replies View Related







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