Re: [Tutor] Wave module
I, I'm trying this code for Voice Text To Speech and Wav File Make and Save, but I'm recontering this problem when I import the Editor to Python OnLine. >>> import Editor2 Traceback (most recent call last): File "", line 1, in File "Editor2.py", line 5, in import Sapi5 File "Sapi5.py", line 3, in from comtypes.client import CreateObject ImportError: No module named comtypes.client >>> Do you have an Idea why I rencontering this error message? Thank you in advance. Email adresse: regim...@nb.sympatico.ca Réginald Arseneau ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Wave module
On 12/02/15 11:34, Réginald Arseneau wrote: I, I'm trying this code for Voice Text To Speech and Wav File Make and Save, but I'm recontering this problem when I import the Editor to Python OnLine. This list is for folks learning the python language and its standard library. WE may not be able to offer much help on third party packages. You are usually better asking on the libraries support forum or contacting the author. But to stand any chance... >>> import Editor2 Tell us where this package comes from, what OS you are using and what Python version. Then there is a possibility that somebody on the list will be able to help. Traceback (most recent call last): File "", line 1, in File "Editor2.py", line 5, in import Sapi5 File "Sapi5.py", line 3, in from comtypes.client import CreateObject ImportError: No module named comtypes.client It looks like your Editir module has some dependencies and you will need to install them too. The mention of comtypes suggests its a Windows program? Maybe using the PyWin32 package? Have you installed it? HTH -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] Comparing two CSV filess using Python
Hi, I'm trying to compare two CSV files (and many more like these below). I tried many ways, using lists, dictreader and more but nothing gave me the output I require. I want to compare all those rows that have same !Sample_title and !Sample_geo_accession values (whose positions vary). I've been struggling with this for three days now and couldn't come to a solution. I highly appreciate any help. CSV1: !Sample_title,!Sample_geo_accession,!Sample_status,!Sample_type,!Sample_source_name_ch1 body,GSM501443,Public on july 22 2010,ribonucleic acid,FB_50_12wk foreign,GSM501445,Public on july 22 2010,ribonucleic acid,FB_0_12wk HJCENV,GSM501446,Public on july 22 2010,ribonucleic acid,FB_50_12wk AsDW,GSM501444,Public on july 22 2010,ribonucleic acid,FB_0_12wk CSV2: !Sample_title,!Sample_type,!Sample_source_name_ch1,!Sample_geo_accession AsDW,ribonucleic acid,FB_0,GSM501444 foreign,ribonucleic acid,FB,GSM501449 HJCENV,RNA,12wk,GSM501446 Desired output (with respect to CSV2): Added: {!Sample_status:{HJCENV:Public on july 22 2010,AsDW:Public on july 22 2010}} #Added columns, not rows. Deleted: {} #Since nothing's deleted with respect to CSV2 Changed: {!Sample_title:AsDW,!Sample_source_name_ch1:(FB_0_12wk,FB_0),!Sample_geo_accession:GSM501444 !Sample_title:HJCENV,!Sample_type:(ribonucleic acid,RNA),!Sample_source_name_ch1:(FB_50_12wk,12wk),!Sample_geo_accession:GSM501446} #foreign,ribonucleic acid,FB,GSM501449 doesn't come here since the !Sample_geo_accession column value didn't match. -AN ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor