Programming :: Change Correctly The Script For The Tarfile Module?

Sep 17, 2010

I've fixed an tarball damaged and now obtain many file with the same name into; I tried to create a script based on a previous originally based on the "zipfile" module:

original:

Code: #!/usr/bin/env python
import os
import sys
import tarfile

[code]....

but obtain error becouse the tarfile has not the attribute "infolist" how i could change correctly the script for the tarfile module?

View 3 Replies


ADVERTISEMENT

Ubuntu Installation :: Corrupted Filesystem Tarfile?

May 12, 2010

I'm trying to install a package (mythTV backend - but im sure the package is not at fault) and I keep getting this errorcorrupted filesystem tarfile - corrupted package archiveNew build - ubuntu lucid 32bitI think it might be a hardware fault memory/hardrive/motherboard or somthing to do with an error in /home/ partition filesystem.To be honest im not sure and its driving me mentalWould consider anyones input on possible causes of a Corrupted filesystem. Tried complete deleting (including cache) and reinstalling the package.force fskchk , restarted = nothing.Error checked the harddrive = nothingfrustrated as this is only the latest error in a series of problems ive been having with ubuntu on this build.

View 1 Replies View Related

Programming :: Load Fortran Module For Matio Libraries Using Gfortran - Can't Open Module File 'matio.mod' For Reading

Jun 27, 2010

I am interested in using fortran and an external library called matio used to save arrays to matlab .mat files. I have installed the matio and matio-dev packages from synaptics but i cannot compile a code receiving an error Code: christos@christos-laptop:~/Desktop$ gfortran -o test test.f90 -lmatio -lz test.f90:2.13: USE MATIO 1

Fatal Error: Can't open module file 'matio.mod' for reading at (1): No such file or directory How can i load a module in order to use it in fortran through the GCC compiler?

View 1 Replies View Related

Programming :: Paralel Port Kernel Module Programming

Jan 5, 2011

do you have any code to flash led lights with paralel port (device driver programming)or any lecture about this subject .if there is a working code this would be better ofcourse.

View 1 Replies View Related

Ubuntu :: Change The Default Viewer For Dvi Files, Since Xdvi Doesn't Render Correctly?

May 6, 2010

I am using emacs+auctex for latex editing now, I want to change the default viewer for dvi files, since xdvi doesn't render correctly most of my documents; okular works perfectly, though I cannot make it the default viewer I went into the AUCTex manual, and there is a tex-view-program list that should contain the list of viewers, but I cannot find the way to customize that variable.

View 6 Replies View Related

Programming :: Socket Programming In Module Perl

Jul 21, 2010

Where is the perl module for programming with sockets?

View 4 Replies View Related

Debian :: Possible To Change Repositories And Add Just Libjpeg8 Module

Sep 26, 2015

I've installed Debian 8.0 Netinst ISO on my old Ubuntu 8.04 Desktop to upgrade it for banking access requirements. I've installed the 32 Bit Jessie (Debian 8.x) and I am trying to get GWintree installed from the .deb file on the Internet. It was missing libtiff4, and I contacted the author about the missing lib. He rebuilt GWintree for Ubuntu 14.04, and uploaded the new .deb file. Now, when I try to install the deb with gdebi, I get another missing lib named libjpeg8, which is a runtime module. libjpeg8 is not available in Jessie, but is available
in Stretch (unstable) & also SID.

Is it possible to change my repositories, and add just the libjpeg8 module and get GWintree installed. That assumes there aren't other missing libs as well. If not, what is the best way to get libjpeg8 backported to Jessie? Who does this type building? GWintree worked well in Squeeze & Wheezy! I hope I can get it working in Jessie.

View 2 Replies View Related

Programming :: Parse The File Correctly With Python

Nov 27, 2010

I'm currently curios with my python program which the basic goal is to parse the character in mytestfile;let's see the code

Code:
f=open('/home/andrewraharjo/Desktop/snort.log','r')
j=f.read()

[code]...

View 3 Replies View Related

Programming :: Rsync Script Not Working Correctly

Jan 2, 2010

I have a cron job that runs overnight for a rsync script that backups my home directory to a external hard disk that is connected to the computer via usb 2.0. I also output the results to a log and follow it via tail -f command from a terminal, to monitor it.

Here is the script:
Code:
#!/bin/bash
# backup data on a daily basis via rsync and a cron job
echo
echo backup started `date` >>/home/user/scripts/backup/backuplog
echo
rsync -avh /home/user/ /media/Linux_ext3/
echo
echo backup complete `date` >>/home/user/scripts/backup/backuplog
echo
echo disk used: `du -csh /media/Linux_ext3` >>/home/user/scripts/backup/backuplog
echo
echo disk free: `df -h /media/Linux_ext3` >>/home/user/scripts/backup/backuplog
echo

Two things
- The rsync is doing a complete mirror of my home directory to the usb drive. For example, say I have a .txt file at the root of /home/user. It gets copied over. However I delete the .txt file the next day and if I go to /media/Linux_ext3/, the .txt file is still there.
I was always under the impression that rsync would mirror the two directories, correct?
-For my log, I think it is creating an entry, I think, for each file. Again, was under the impression that rsync would only copy over files that have be updated, correct?

View 5 Replies View Related

Debian :: Change The Module And Create Custom Kernel

May 7, 2011

I'd like to change the existing kernel module (driver) file and compile a custom kernel.

Is this the correct way:

View 9 Replies View Related

Programming :: Bash: Regexp In 'if' Doesn't Evaluate Correctly

Mar 1, 2011

I'm using an 'if' statement to check whether one of positional arguments is a word or a construction like "x-y", but something doesn't seem right.

Here is the relevant part of the code:

Code:
if [[ "$3" =~ [a-Z]-[a-Z] || "$3" =~ [a-Z] ]]; then
grepRange=$3; else grepRange=$4
fi
And for the input like this:

[Code]....

but shouldn't the $grepRange variable be blank in this case?

Bash version is 4.1.7(1)

View 6 Replies View Related

Programming :: Read Tutor About Multi Threading, But Not Getting Correctly

Mar 1, 2010

I am new to Programming. I would like to learn some multi threading in C. how to start. I read tutor about multi threading, but not getting correctly.

View 2 Replies View Related

Networking :: Unable To Change Bnx2 From Built In To Module In Menuconfig

Jun 25, 2010

I am having trouble upgrading my broadcom drivers ( bnx2 ) for some reason i can't switch Broadcom NetxtremeII support from "built in " to module in menuconfig. can someone show me why this is the case?

[code]...

also i do have loadable module support enabled[*] Enable loadable module support

View 1 Replies View Related

Programming :: Why Does Strptime (c++) Seem To Not Correctly Parse Date/time String

Feb 8, 2010

here is the problem code using strptime() function.

==================
#include <stdio.h>
#include <string.h>
#include <time.h>

[code]....

Why are the Month and Year so messed up? I am using strptime() according to the man page.

View 2 Replies View Related

Ubuntu Multimedia ::unable To Change Webcam Brightness, And It Says Gspca Module Couldn't Be Found?

Apr 26, 2010

On aMSN the webcam works,but it's very very dark, and i can't move the adjusment handlers for some reason. Also, i tried several methods to increase the gamma, but it just won't work...nothing changes.how can i proceed?

View 1 Replies View Related

Programming :: Prompt For Some Information From PAM Module?

Jan 8, 2011

I'm writing a Plug-gable authentication module for ssh. I am looking for prompting for some extra information after user name and password verification but before giving access to user.Actually after SSH I want to extend the same for some other services. So I am looking at some PAM module level suggestion.

I tried using conversation method with message style=PAM_PROMPT_ECO_ON but it results in PAM_CONV_ERR and conversation fails. Is it right way to interact or please suggest me If I'm doing wrong somewhere. When I use message style=PAM_PROMPT_ECO_OFF communication succeeds but message is not shown and interaction doesn't happen.

I've pased the sample code I've written at url.

Code:
#include <sys/types.h>
#include <string.h>
#include <pwd.h>
#include <grp.h>
#include <syslog.h>
code....

View 3 Replies View Related

Programming :: Setup A Stack (1kB) For My Module In C?

Sep 6, 2010

I need to call some other functions in "int init_module(void)" and module. So I need a stack. How can I setup a stack (1kB) for my module in C?

View 11 Replies View Related

Programming :: Loading A Php Module Using Custom Ini?

Sep 9, 2010

I have a webhosting account, but the server admin did not include mysqli module. How can I use mysqli in this situation?

I am thinking,

put mysqli module in my web directory

load it using custom php ini

View 1 Replies View Related

Programming :: Debug The NTLM LWP Module ?

Nov 11, 2010

I'm trying to debug the NTLM LWP module.

I added use LWP:ebug qw(+); to the top of my script, but I can't see any change.

I'm on Windows if that makes a difference (installed activeperl).

I know there are probably a million reasons why something perl won't work, but can anyone help me get debug logging showing up?

View 1 Replies View Related

Programming :: Use MPI Only In A Module Of A Given Sequential Program?

Jun 28, 2011

can one use MPI only in a module of a given sequential program? That is, if one have an already working sequential program, can one append to it a MPI-based module? Say I have a working main. It calls module() and what this module does is to spread a group of processes to accomplish a given task. Can that be done or the entire original sequential program must be rewritten?

View 3 Replies View Related

Ubuntu Installation :: DEVED Error 1 "corrupted Filesystem Tarfile - Corrupted Package Archive"

Jan 24, 2010

I'm COMPLETELY new to linux. I"m running Ubuntu 9.10 and TRYING to install Devede. I have tried the Terminal, Synaptic Manger, and the Add/Remove and still keep getting this same error. I'm running a regular 32 bit Pentium 3 process to test if I like Linux or not. this is what it says: E: /var/cache/apt/archives/libavcodec-extra-52_4%3a0.5+svn20090706-2ubuntu3_i386.deb: corrupted filesystem tarfile - corrupted package archive this is not a DUAL boot computer either.

View 8 Replies View Related

Debian Programming :: Building Kernel Module

Dec 8, 2013

I'm trying to build the kernel module for dvbhdhomerun. The problem is the linux kernel headers provided by Debian do not have the dvb header files. Trying to set up my own kernel source tree to use is not working out so well.

I'm following the instructions in the Debian section here: [URL] ....

My first try compiled, but the modules ender up under /lib/modules/3.2.51/extra instead of /lib/modules/3.2.0-4-amd64/extra. Why?

I tried to start over, but noticed this while running apt-get source linux-image-3.2.0-4-amd64:

Code: Select allReading package lists... Done
Building dependency tree       
Reading state information... Done
Picking 'linux' as source package instead of 'linux-image-3.2.0-4-amd64'
NOTICE: 'linux' packaging is maintained in the 'Svn' version control system at:
svn://svn.debian.org/svn/kernel/dists/trunk/linux/

[Code] ....

The failure to verify the signature has me concerned, but beyond that, what do I do about the different version number when compiling and installing the kernel modules?

View 1 Replies View Related

Debian Programming :: Failed To Load Module

May 30, 2015

I was playing around with QT5 today and I am getting the error Gtk-Message: Failed to load module "canberra-gtk-module". Searching suggested that the module may not be installed however it looks like it is to me.

Code: Select allii  libcanberra-gtk3-0:amd64              0.30-2.1                            amd64        GTK+ 3.0 helper for playing widget event sounds with libcanberra
ii  libcanberra-gtk3-module:amd64         0.30-2.1                            amd64        translates GTK3 widgets signals to event sounds
ii  libcanberra-pulse:amd64               0.30-2.1                            amd64        PulseAudio backend for libcanberra
ii  libcanberra0:amd64                    0.30-2.1                            amd64        simple abstract interface for playing event sounds

[code]....

View 3 Replies View Related

Programming :: Module In Cpan For Creating A Blog?

Apr 2, 2010

Exist it a module in cpan for creating a blog?

View 4 Replies View Related

Programming :: Compiling Kernel Module Using (/asm/system.h)

Apr 3, 2011

I`m trying to compile sources of kernel module which has been written for kernel 2.6.9. There were many changes in kernel headers since then in current kernel sources. I`ve found that old /asm/system.h was moved under architecture dedicated directory /arch/*/include/asm/system.h. Anyway during sources compilation I`m having errors related to kernel sources. It looks like there is something wrong with this /asm/system.h

Code:

../asm/system.h: In function �__cmpxchg�:
../asm/system.h:248: error: expected string literal before �LOCK_PREFIX�
../asm/system.h:254: error: expected string literal before �LOCK_PREFIX�

[code]....

View 3 Replies View Related

Programming :: Install PHP Which Is Run As An Apache Module Or Run As CGI On Detain

Aug 12, 2010

how to install PHP which is run as an Apache module or run as CGI on detain.

View 3 Replies View Related

Programming :: Insert Kernel Module Into Menuconfig

Jan 14, 2011

I am looking for information to insert kernel module into kernel. I am not looking at dynamically insert of kernel module using insmod, modprobe etc. I am looking for statically insertion of kernel module procedure, such as what to change on makefile, what to change on menuconfig, what to change on .config file, etc.

View 2 Replies View Related

Programming :: Modifying The Elevator.c Module In Kernel?

Feb 22, 2011

There is a file called elevator.c. It is written as a module (i.e it has specific init and exit functions). However we are not able to see it in lsmod listing. We are working on a project where we need to modify this file. Compiling every time we change something will be time consuming. Is it possible to compile just this file and insert it as a normal module?

View 6 Replies View Related

Programming :: ImportError: No Module Named Mx.DateTime.ISO

Sep 9, 2010

In Python 2.6.5, I could import from mx.DateTime.ISO import ParseDateTimeUTC With 2.7 I cannot.Here is the error. My module util_lib contains the import noted above.

File "util_lib.py", line 46, in <module>
from mx.DateTime.ISO import ParseDateTimeUTC
ImportError: No module named mx.DateTime.ISO

What changes do I need to make, to import on pre-2.7 and 2.7?

View 2 Replies View Related

Programming :: Perl Module Installation Fails

Jan 12, 2011

Using perl -MCPAN -e shell then install Mail::Message then yes to everything (except the test that needed an IMAP server) resulted in.

View 3 Replies View Related







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