Re: I can not install matplotlib, numpy, scipy, and pandas.

2016-01-06 Thread Miki Tebeka

> When I enter into the command window "pip install matplotlib", it reads this
> below (this is not the full version of it): 
> ...
Installing scientific packages can be a pain. I recommend you take a look at 
https://www.continuum.io/downloads
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to union nested Sets / A single set from nested sets?

2016-01-06 Thread Joel Goldstick
On Wed, Jan 6, 2016 at 11:59 PM, Grobu  wrote:

> On 04/01/16 03:40, mviljamaa wrote:
>
>> I'm forming sets by set.adding to sets and this leads to sets such as:
>>
>> Set([ImmutableSet(['a', ImmutableSet(['a'])]), ImmutableSet(['b', 'c'])])
>>
>> Is there way union these to a single set, i.e. get
>>
>> Set(['a', 'b', 'c'])
>>
>> ?
>>
>
> There's a built-in "union" method for sets :
>
> >>> a = set( ['a', 'b'] )
> >>> b = set( ['c', 'd'] )
> >>> a.union(b)
> set(['a', 'c', 'b', 'd'])
>
> HTH
> --
> https://mail.python.org/mailman/listinfo/python-list
>

plus 1

-- 
Joel Goldstick
http://joelgoldstick.com/stats/birthdays
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to union nested Sets / A single set from nested sets?

2016-01-06 Thread Grobu

On 04/01/16 03:40, mviljamaa wrote:

I'm forming sets by set.adding to sets and this leads to sets such as:

Set([ImmutableSet(['a', ImmutableSet(['a'])]), ImmutableSet(['b', 'c'])])

Is there way union these to a single set, i.e. get

Set(['a', 'b', 'c'])

?


There's a built-in "union" method for sets :

>>> a = set( ['a', 'b'] )
>>> b = set( ['c', 'd'] )
>>> a.union(b)
set(['a', 'c', 'b', 'd'])

HTH
--
https://mail.python.org/mailman/listinfo/python-list


Re: Fast pythonic way to process a huge integer list

2016-01-06 Thread Cameron Simpson

On 06Jan2016 18:36, high5stor...@gmail.com  wrote:
I have a list of 163.840 integers. What is a fast & pythonic way to process 
this list in 1,280 chunks of 128 integers?


The depends. When you say "list", is it already a _python_ list? Or do you just 
mean that the intergers are in a file or something?


If they're already in a python list you can probably just use a range:

 for offset in range(0, 163840, 128):
   ... do stuff with the elements starting at offset ...

Cheers,
Cameron Simpson 
--
https://mail.python.org/mailman/listinfo/python-list


Re: Fast pythonic way to process a huge integer list

2016-01-06 Thread Tim Chase
On 2016-01-06 18:36, high5stor...@gmail.com wrote:
> I have a list of 163.840 integers. What is a fast & pythonic way to
> process this list in 1,280 chunks of 128 integers?

That's a modest list, far from huge.

You have lots of options, but the following seems the most pythonic to
me:

  # I don't know how you populate your data so
  # create some junk data
  from random import randint
  data = [randint(0,1000) for _ in range(163840)]

  import itertools as i
  GROUP_SIZE = 128

  def do_something(grp, vals):
for _, val in vals:
  # I don't know what you want to do with each
  # pair.  You can print them:

  # print("%s: %s" % (grp, val))

  # or write them to various chunked files:
  with open("chunk%04i.txt" % grp, "w") as f:
f.write(str(val))
f.write("\n")

  # but here's the core logic:

  def key_fn(x):
# x is a tuple of (index, value)
return x[0] // GROUP_SIZE

  # actually iterate over the grouped data
  # and do something with it:
  for grp, vals in i.groupby(enumerate(data), key_fn):
do_something(grp, vals)

-tkc





-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fast pythonic way to process a huge integer list

2016-01-06 Thread Terry Reedy

On 1/6/2016 9:36 PM, high5stor...@gmail.com wrote:


I have a list of 163.840 integers. What is a fast & pythonic way to process 
this list in 1,280 chunks of 128 integers?


What have you tried that did not work?  This is really pretty simple, 
but the detail depend on the meaning of 'process a chunk'.


--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


Fast pythonic way to process a huge integer list

2016-01-06 Thread high5storage

I have a list of 163.840 integers. What is a fast & pythonic way to process 
this list in 1,280 chunks of 128 integers?

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: imshow keeps crashhing

2016-01-06 Thread darren . mcaffee
Sorry you were right the path is in: /vars/folders not /private/var/folders.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: imshow keeps crashhing

2016-01-06 Thread darren . mcaffee
Thanks William and John,

So the full path that scipy is using is: 
/private/var/folders/w4/wrnzszgd41d7064lx64nc10hgn/T/

I can't recall specifically adding the /var directory under /private.

William - do you know how I can make scipy write temporary files in a non SIP 
folder?

Thanks so much,
Darren

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: imshow keeps crashhing

2016-01-06 Thread William Ray Wing

> On Jan 6, 2016, at 6:10 PM, darren.mcaf...@gmail.com wrote:
> 
> Thanks for the quick reply! 
> 
> So scipy is making temporary files in /private/vars/folders/w4/ name>/

Is this a typo or did you really mean /private/vars?  That is, did your create 
a “vars” directory under /private at some point in the past (pre-Yosemite)?  
The usual directory there would be /var

In any case, the whole /private directory tree is now part of the SIP (System 
Integrity Protection) system under Yosemite, and to open and manipulate files 
there you will have to either turn SIP off or jump through hoops.  If you do a 
ls -al in /private, you will see that var is

drwxr-xr-x 29 root wheel 986 Oct 23 11:20 var

note the “root” and “wheel” owner and group names. I’d suggest moving your 
tests to a different directory that isn’t part of SIP, and debug there. If you 
MUST work under /private, you will have your work cut out for you.

-Bill

> 
> 1. When in the correct folder within Terminal, on the command line I can do: 
>open  
> And it will open it in Preivew.
> 
> 2. However, when opening Preview first, it is impossible (for me) to navigate 
> to the /private directory to open the file that way, even with: 
>defaults write com.apple.Finder AppleShowAllFiles YES
> turned on.
> 
> 3. When I run imshow() (my attempt to 'launch Preview from scipy as you 
> suggested). The UID of the process is 501, which is the same as when I do 
> echo $UID. So I'm assuming the launched Preview is running as myself.
> 
> 4. When the temporary file is originally created its permissions are -rw--
> 
> Does any of that information help? Thanks again.
> -- 
> https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: imshow keeps crashhing

2016-01-06 Thread John Gordon
In  
darren.mcaf...@gmail.com writes:

> So scipy is making temporary files in
> /private/vars/folders/w4//

Are there any unusual characters in ?  That's usually more
of a Windows issue, but I'm grasping at straws here :-)

> 1. When in the correct folder within Terminal, on the command line I can do: 
> open  
> And it will open it in Preivew.

So the actual command name for running Preview is "open"?  Have you tried
setting the SCIPY_PIL_IMAGE_VIEWER variable to that name?

> 2. However, when opening Preview first, it is impossible (for me) to navigate 
> to the /private directory to open the file that way, even with: 
> defaults write com.apple.Finder AppleShowAllFiles YES
> turned on.

You mean you can't use Preview's file-selection interface to select the
desired file?  The /private directory is not navigable?  Does it even
show up as a choice?

Is there something special about the /private directory?

-- 
John Gordon   A is for Amy, who fell down the stairs
gor...@panix.com  B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: imshow keeps crashhing

2016-01-06 Thread darren . mcaffee
Thanks for the quick reply! 

So scipy is making temporary files in /private/vars/folders/w4//

1. When in the correct folder within Terminal, on the command line I can do: 
open  
And it will open it in Preivew.

2. However, when opening Preview first, it is impossible (for me) to navigate 
to the /private directory to open the file that way, even with: 
defaults write com.apple.Finder AppleShowAllFiles YES
turned on.

3. When I run imshow() (my attempt to 'launch Preview from scipy as you 
suggested). The UID of the process is 501, which is the same as when I do echo 
$UID. So I'm assuming the launched Preview is running as myself.

4. When the temporary file is originally created its permissions are -rw--

Does any of that information help? Thanks again.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: imshow keeps crashhing

2016-01-06 Thread John Gordon
In  
darren.mcaf...@gmail.com writes:

> Hi John,

> I am on a mac and have set the following:

> SCIPY_PIL_IMAGE_VIEWER=/Applications/Preview.app/Contents/MacOS/Preview

> And when using imshow(), sure enough Preview attempts to open the fie,
> but it throws the following error: The file "tmp1zuvo7wn.png" couldn't be
> opened because you don't have permission to view it.

> I can open the temporary file manually no problem. And I have played
> around with chmod 0644 , but nothing seems to work.

> I have a feeling this is El Capitan specific. Do you have any
> suggestions?

I don't really know much about Macs...

Can you run Preview and open the temporary file successfully?

When launched from scipy, Does Preview run as a user other than yourself?

What are the permissions on the temporary file when it's originally
created?

-- 
John Gordon   A is for Amy, who fell down the stairs
gor...@panix.com  B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: imshow keeps crashhing

2016-01-06 Thread darren . mcaffee
Hi John,

I am on a mac and have set the following:

SCIPY_PIL_IMAGE_VIEWER=/Applications/Preview.app/Contents/MacOS/Preview

And when using imshow(), sure enough Preview attempts to open the fie, but it 
throws the following error: The file "tmp1zuvo7wn.png" couldn't be opened 
because you don't have permission to view it.

I can open the temporary file manually no problem. And I have played around 
with chmod 0644 , but nothing seems to work.

I have a feeling this is El Capitan specific. Do you have any suggestions?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: python unit test framework sample code

2016-01-06 Thread Terry Reedy

On 1/6/2016 8:45 AM, Ganesh Pal wrote:

Hello Team,

I have written a small program using python unit test framework . I
need your guidance to find out

1. If I have used the fixtures and classes properly ( first oop program) :) )
2. why does unittest2.SkipTest not print the message when the failures
are encountered  ?
3. Also sys.stderr.write("Test run failed ({e})".format(e=e) ) does
not display error on failure ?
4. Any other general comment's

I am on Python 2.6 and using Linux


Unless you have a large program already in 2.6 and are just adding tests 
(perhaps so you can more easily upgrade someday), consider upgrading to 
a newer version.



Sample code:

class FileSystemTest(unittest2.TestCase):
 block_address = {}
 report = ""

 @classmethod
 def setUpClass(cls):
 cls.FileSystemSetup()


This is senseless.  Put the body of FileSystemSetup here.


 @classmethod
 def FileSystemSetup(cls):
 """
 Initial setup before unittest is run
 """
 logging.info("SETUP.Started !!!")
 try:
 inode_01 =
corrupt.get_lin(os.path.join(CORRUPT_DIR,"inode_lin.txt"))
 test_01_log = os.path.join(LOG_DIR, "test_01_corrupt.log")
 cls.block_address['test_01'] =
corrupt.inject_corruption(test_01_log,
 lin=inode_01, object="inode", offset="18",
size="4", optype="set")
 time.sleep(10)

 except Exception, e:
 logging.error(e)
 raise unittest2.SkipTest("class setup failed")
 if not corrupt.run_scanner():
raise unittest2.SkipTest("class setup failed")

 else:
  try:
  cls.report = corrupt.run_report()
  except Exception, e:
 logging.error(e)
 raise unittest2.SkipTest("class setup failed")
 logging.info("SETUP.Done !!!")

 def inode_corruption(self):
 """ test_01: inode  corruption """
 self.assertTrue(corrupt.run_query_tool(self.__class__.report,


self.block_address['test_01']))

Assuming that unittest2 is same as unittest, test methods must be called 
test_xyz.  So this is not run, hence no error.




 @classmethod
 def tearDownClass(cls):
 cls.tearDown()


Ditto.  Put real body here.


 @classmethod
 def tearDown(cls):


This is worse than setup.  The name 'tearDown' is reserved for and 
called to teardown after each test_xyz method is called.  So once you 
change 'inode'corruption' to 'test_inode_corruption', this should fail.



 print "Entered tearDown()"
 try:
 cls.cleanup = cleanup()
 except Exception, e:
   logging.error(e)

def main():
 """ ---MAIN--- """
 global LOG_DIR
 try:
 if len(sys.argv) > 1:
 LOG_DIR = str(sys.argv[1])
 except Exception, e:
 print(USAGE)
 return errno.EINVAL
 functions = [create_logdir,create_dataset,corrupt.prep_cluster]
 for func in functions:
 try:
 func()
 except Exception, e:
 logging.error(e)
 sys.stderr.write("Test run failed ({e})".format(e=e))


The above refers to functions you did not post.  For current unittest, 
it looks likes you should be using a setUpModule (possible 
tearDownModule) functions, but I don't know if those are available in 
the older unittest2.



 unittest2.main()

if __name__ == '__main__':
 main()


I think the biggest mistake people make is to do too much new stuff at 
once.  Python, with IDLE (or equivalent), makes incremental development 
easy.  My first unittest program was about 10 lines.  I expanded from 
there.  I am still 'expanding' from my current knowledge.



--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


Re: trying to install

2016-01-06 Thread Terry Reedy

On 1/4/2016 2:00 PM, Montone_Dennis wrote:

I am using Windows 7 and when I try to runt IDLE I get the following error.
"The program can't start because api-ms-win-crt-runtime-I1-1-0.dll is missing from 
your computer."

Do you have any suggestions for me?


Download and install the required .dll.  See previous posts.  It might 
be easiest to search gmane.comp.python.general as news.gmane.org.


--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


Re: ouvrir python

2016-01-06 Thread Paul Rubin
"Jacques Rosier"  writes:
> J’ai téléchargé Python 351. Il est dans la liste des applications de
> mon ordi (Lenovo; Windows 10). Mais impossible de l’ouvrir. Que faire?

Téléchargéz .exe installer

   https://www.python.org/ftp/python/3.5.1/python-3.5.1-amd64.exe

puis cliquez l'.exe pour marcher. 

(Download the .exe installer and click it to run).
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to union nested Sets / A single set from nested sets?

2016-01-06 Thread Rustom Mody
On Wednesday, January 6, 2016 at 6:48:28 PM UTC+5:30, mviljamaa wrote:
> I'm forming sets by set.adding to sets and this leads to sets such as:
> 
> Set([ImmutableSet(['a', ImmutableSet(['a'])]), ImmutableSet(['b', 
> 'c'])])
> 
> Is there way union these to a single set, i.e. get
> 
> Set(['a', 'b', 'c'])
> 
> ?

Dont know what version of python spells it that way.. seems old

In 2.7 you can do this:

>>> a=set([frozenset(['a']), frozenset(['b','c'])]) 
>>> {y for x in a for y in x}
set(['a', 'c', 'b'])
It may be easier to understand written the way set-expressions in math are 
normally written:
{y | x ∈ a, y ∈ x}
And then treat the python as an ASCII-fication of the math


Likewise
>>> frozenset(y for x in a for y in x)
frozenset(['a', 'c', 'b'])
>>>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: ouvrir python

2016-01-06 Thread Laurent Pointal
Vincent Vande Vyvre wrote:

> Le 04/01/2016 10:10, Jacques Rosier a écrit :
>> J’ai téléchargé Python 351. Il est dans la liste des applications de mon
>> ordi (Lenovo; Windows 10). Mais impossible de l’ouvrir. Que faire?
> Cette liste de diffusion est anglophone, je te recommande de poster sur
> ce forum:
> 
> http://www.developpez.net/forums/f96/autres-langages/python-zope/
> 
> Vincent

Il y a un groupe francophone sur Usenet: fr.comp.lang.python
There is a french Usenet group: fr.comp.lang.python


A+
Laurent.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to union nested Sets / A single set from nested sets?

2016-01-06 Thread Oscar Benjamin
On 4 January 2016 at 02:40, mviljamaa  wrote:
> I'm forming sets by set.adding to sets and this leads to sets such as:
>
> Set([ImmutableSet(['a', ImmutableSet(['a'])]), ImmutableSet(['b', 'c'])])
>
> Is there way union these to a single set, i.e. get
>
> Set(['a', 'b', 'c'])

Where are you getting Set and ImmutableSet from? Is that sympy or something?

--
Oscar
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: I can not install matplotlib, numpy, scipy, and pandas.

2016-01-06 Thread Chris Warrick
On 5 January 2016 at 07:57, Omar Ray via Python-list
 wrote:
> I have version 3.5 of Python for Windows.  I have MS Visual C++ and also MS
> Visual Studio 2015.
>
> When I enter into the command window "pip install matplotlib", it reads this
> below (this is not the full version of it):
>
> [snip]
>
> How do I download matplotlib and the other packages mentioned in the subject
> line?
>
>
>
> -Omar Ray
>
> --
> https://mail.python.org/mailman/listinfo/python-list

On Windows, using prebuilt binaries is recommended instead of building
things yourself:

1. Installing matplotlib and pandas using pip, without mentioning
scipy and numpy just yet.
2. Install scipy and numpy from
http://www.lfd.uci.edu/~gohlke/pythonlibs/ (download matching files
and run pip install c:\path\to\file.whl ).

If anything in 1. fails, get a wheel package from the website mentioned in 2.

Alternatively, try:
https://www.scipy.org/install.html#individual-binary-and-source-packages

-- 
Chris Warrick 
PGP: 5EAAEA16
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: insert many numbers to a list, a second method.

2016-01-06 Thread Peter Otten
飛飛 wrote:

> l = list(range(0,12))
> numbers = [5,3,2,7] #insert numbers at 5th position.
> list1 = list(range(5,9))
> list2 = list(range(0,5))
> list2.extend(numbers) #
> for i in list1:
> l.insert(i,list2[i])
> print(l)-->   l =  [0, 1, 2, 3, 4, 5, 3, 2, 7, 5, 6, 7, 8, 9,
> 10, 11]

Sorry, I cannot make sense of your sample code. If this is homework and your 
assignment is to find another way to insert items into a list have a look at 
slices. Example to get items three to five *out* of the list:

>>> items
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> items[2:5]
[2, 3, 4]

Size zero is legal, too:

>>> items[7:7]
[]

Assigning is similar, and the size of the slice on the left doesn't have to 
be the same as that of the list on the right. 

-- 
https://mail.python.org/mailman/listinfo/python-list


python unit test framework sample code

2016-01-06 Thread Ganesh Pal
Hello Team,

I have written a small program using python unit test framework . I
need your guidance to find out

1. If I have used the fixtures and classes properly ( first oop program) :) )
2. why does unittest2.SkipTest not print the message when the failures
are encountered  ?
3. Also sys.stderr.write("Test run failed ({e})".format(e=e) ) does
not display error on failure ?
4. Any other general comment's

Iam on Python 2.6 and using Linux

Sample code:

class FileSystemTest(unittest2.TestCase):
block_address = {}
report = ""

@classmethod
def setUpClass(cls):
cls.FileSystemSetup()

@classmethod
def FileSystemSetup(cls):
"""
Initial setup before unittest is run
"""
logging.info("SETUP.Started !!!")
try:
inode_01 =
corrupt.get_lin(os.path.join(CORRUPT_DIR,"inode_lin.txt"))
test_01_log = os.path.join(LOG_DIR, "test_01_corrupt.log")
cls.block_address['test_01'] =
corrupt.inject_corruption(test_01_log,
lin=inode_01, object="inode", offset="18",
size="4", optype="set")
time.sleep(10)

except Exception, e:
logging.error(e)
raise unittest2.SkipTest("class setup failed")
if not corrupt.run_scanner():
   raise unittest2.SkipTest("class setup failed")

else:
 try:
 cls.report = corrupt.run_report()
 except Exception, e:
logging.error(e)
raise unittest2.SkipTest("class setup failed")
logging.info("SETUP.Done !!!")

def inode_corruption(self):
""" test_01: inode  corruption """
self.assertTrue(corrupt.run_query_tool(self.__class__.report,
 self.block_address['test_01']))
@classmethod
def tearDownClass(cls):
cls.tearDown()

@classmethod
def tearDown(cls):
print "Entered tearDown()"
try:
cls.cleanup = cleanup()
except Exception, e:
  logging.error(e)

def main():
""" ---MAIN--- """
global LOG_DIR
try:
if len(sys.argv) > 1:
LOG_DIR = str(sys.argv[1])
except Exception, e:
print(USAGE)
return errno.EINVAL
functions = [create_logdir,create_dataset,corrupt.prep_cluster]
for func in functions:
try:
func()
except Exception, e:
logging.error(e)
sys.stderr.write("Test run failed ({e})".format(e=e))
unittest2.main()

if __name__ == '__main__':
main()


PS : Happy  New year Wishes to all the form members !!

Regards,
Ganesh
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to union nested Sets / A single set from nested sets?

2016-01-06 Thread Peter Otten
mviljamaa wrote:

> I'm forming sets by set.adding to sets and this leads to sets such as:
> 
> Set([ImmutableSet(['a', ImmutableSet(['a'])]), ImmutableSet(['b',
> 'c'])])
> 
> Is there way union these to a single set, i.e. get
> 
> Set(['a', 'b', 'c'])
> 
> ?

1 What version of Python are you working with?

Both Python 2.7 and 3.x have built-in set and frozenset types that you 
should use.

2 Instead of flattening the nested data I recommend that you avoid nesting 
in the first place by using update() instead of add()

>>> x = {"a", "b"}
>>> y = {"b", "c"}
>>> z = {"a", "c", "d"}
>>> result = set()
>>> for subset in x, y, z:
... result.update(subset) #  or: result |= subset
... 
>>> result
{'b', 'a', 'd', 'c'}

For a fixed number of subsets you can avoid the loop and write

>>> result = set()
>>> result.update(x, y, z)
>>> result
{'b', 'a', 'd', 'c'}

or

>>> x | y | z
{'b', 'a', 'd', 'c'}


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: ouvrir python

2016-01-06 Thread Vincent Vande Vyvre

Le 04/01/2016 10:10, Jacques Rosier a écrit :

J’ai téléchargé Python 351. Il est dans la liste des applications de mon ordi 
(Lenovo; Windows 10). Mais impossible de l’ouvrir. Que faire?
Cette liste de diffusion est anglophone, je te recommande de poster sur 
ce forum:


http://www.developpez.net/forums/f96/autres-langages/python-zope/

Vincent
--
https://mail.python.org/mailman/listinfo/python-list


insert many numbers to a list, a second method.

2016-01-06 Thread 飛飛



l = list(range(0,12))
numbers = [5,3,2,7] #insert numbers at 5th position.
list1 = list(range(5,9))
list2 = list(range(0,5))
list2.extend(numbers) #
for i in list1:
l.insert(i,list2[i])
print(l)-->   l =  [0, 1, 2, 3, 4, 5, 3, 2, 7, 5, 6, 7, 8, 9, 10, 
11]
-- 
https://mail.python.org/mailman/listinfo/python-list


unable to run python 3.5.1

2016-01-06 Thread Kufre Akata
Dear All,

Kindly be informed that I downloaded the new python 3.5.1 (32-bit) to
install in my machine, after the download and set-up, each time I clicked
on the icon to launch the program, it will give me 3 options - modify,
repair and uninstall. I needed to launch python and use it to program..

Please assist.

Thank you.

Kufre
-- 
https://mail.python.org/mailman/listinfo/python-list


trying to install

2016-01-06 Thread Montone_Dennis
I am using Windows 7 and when I try to runt IDLE I get the following error.
"The program can't start because api-ms-win-crt-runtime-I1-1-0.dll is missing 
from your computer."

Do you have any suggestions for me?


-- 
https://mail.python.org/mailman/listinfo/python-list


I can not install matplotlib, numpy, scipy, and pandas.

2016-01-06 Thread Omar Ray via Python-list
I have version 3.5 of Python for Windows.  I have MS Visual C++ and also MS
Visual Studio 2015.

When I enter into the command window "pip install matplotlib", it reads this
below (this is not the full version of it): 

 

Microsoft Windows [Version 6.1.7601]

Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

 

C:\windows\system32>pip install matplotlib

Collecting matplotlib

  Using cached matplotlib-1.5.0-cp35-none-win32.whl

Requirement already satisfied (use --upgrade to upgrade): pytz in
c:\users\---\a

ppdata\local\programs\python\python35-32\lib\site-packages (from matplotlib)

Requirement already satisfied (use --upgrade to upgrade):
pyparsing!=2.0.4,>=1.5

.6 in
c:\users\---\appdata\local\programs\python\python35-32\lib\site-packages (

from matplotlib)

Requirement already satisfied (use --upgrade to upgrade): python-dateutil in
c:\

users\---\appdata\local\programs\python\python35-32\lib\site-packages (from
matp

lotlib)

Requirement already satisfied (use --upgrade to upgrade): cycler in
c:\users\---

\appdata\local\programs\python\python35-32\lib\site-packages (from
matplotlib)

Collecting numpy>=1.6 (from matplotlib)

  Using cached numpy-1.10.2.tar.gz

Requirement already satisfied (use --upgrade to upgrade): six>=1.5 in
c:\users\-

--\appdata\local\programs\python\python35-32\lib\site-packages (from
python-date

util->matplotlib)

Installing collected packages: numpy, matplotlib

  Running setup.py install for numpy

Complete output from command
c:\users\---\appdata\local\programs\python\pyth

on35-32\python.exe -c "import setuptools,
tokenize;__file__='C:\\Users\\---\\App

Data\\Local\\Temp\\pip-build-yrpyslwq\\numpy\\setup.py';exec(compile(getattr
(tok

enize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__,
'exec'))"

install --record
C:\Users\---\AppData\Local\Temp\pip-o2xr7r52-record\install-re

cord.txt --single-version-externally-managed --compile:

blas_opt_info:

blas_mkl_info:

  libraries mkl,vml,guide not found in
['c:\\users\\---\\appdata\\local\\pro

grams\\python\\python35-32\\lib', 'C:\\',
'c:\\users\\---\\appdata\\local\\progr

ams\\python\\python35-32\\libs']

  NOT AVAILABLE

 

How do I download matplotlib and the other packages mentioned in the subject
line?

 

-Omar Ray

-- 
https://mail.python.org/mailman/listinfo/python-list


ouvrir python

2016-01-06 Thread Jacques Rosier
J’ai téléchargé Python 351. Il est dans la liste des applications de mon ordi 
(Lenovo; Windows 10). Mais impossible de l’ouvrir. Que faire?
-- 
https://mail.python.org/mailman/listinfo/python-list


How to union nested Sets / A single set from nested sets?

2016-01-06 Thread mviljamaa

I'm forming sets by set.adding to sets and this leads to sets such as:

Set([ImmutableSet(['a', ImmutableSet(['a'])]), ImmutableSet(['b', 
'c'])])


Is there way union these to a single set, i.e. get

Set(['a', 'b', 'c'])

?
--
https://mail.python.org/mailman/listinfo/python-list


Python and OpenSSL FIPS module

2016-01-06 Thread security veteran
Hi,

I was wondering does anyone have successful experiences integrating OpenSSL
FIPS modules with Python 2.x?
Is there any catch we need to be careful about in integrating Python with
OpenSSL FIPS modules?

Thanks.
-- 
https://mail.python.org/mailman/listinfo/python-list


برنامج

2016-01-06 Thread haniemmahmoodebraheim
برنامج

Ashampoo WinOptimizer 12.00.41
http://q.gs/9dVa5
Any Video Converter Ultimate 5.8.8
http://q.gs/9dVa5
كورس الشبكات المتميز CCNA 200-120 Routing & Switching 
http://q.gs/9dVa5
Mozilla Firefox 43.0.4 RC
http://q.gs/9dVa5

ALLPlayer 6.5.0 Final
http://q.gs/9dVa5
أقوى برنامج لتعديل وقص ودمج مقاطع الفيديو EasiestSoft Movie Editor 4.8.0
http://q.gs/9dVa5

Wondershare MobileTrans 7.5.0.442
http://q.gs/9dVa5
كورس مميز لتعليم أوراكل Oracle developer g11
http://q.gs/9dVa5

برنامج ضغط و فك ضغط الملفات العملاق WinRAR 5.31 Beta 1
http://q.gs/9dVa5

YouTube Video Downloader Pro 
http://q.gs/9dVa5

تعلم برنامج النشر والطباعة Adobe Indesign مع هذا الكورس الرائع
http://q.gs/9dVa5

أقوي برنامج للحماية من الفيروسات والتجسس ESET 9.0.349.14 Final
http://q.gs/9dVa5

أسطوانة الصيانة الأقوى SystemRescueCd 4.7.0 Final
http://q.gs/9dVa5

Deep Freeze Enterprise 8.31.220.5051
http://q.gs/9dVa5

تعلم التصميم الثُلاثي الأبعاد من البدايه إلي الإحتراف مع كورس 3D Max كامل
http://q.gs/9dVa5

Skype 7.17.0.106 Final
http://q.gs/9dVa5

DriverPack Solution 2015 Final
http://q.gs/9dVa5

WebcamMax 7.9.7.2
http://q.gs/9dVa5
AIMP 4.00 Build 1683 Final
http://q.gs/9dVa5

Internet Download Manager 6.25 Build 10 Final
http://q.gs/9dVa5

لعبة (جنرالات الحرب) اون لاين
http://q.gs/9dVa5

Any Video Converter Ultimate 5.8.7
http://q.gs/9dVa5

أضخم وأهم كورس لتعلم واحتراف فيجوال بيسك 2012
http://q.gs/9dVa5

Mozilla Firefox 43.0.3 Final
http://q.gs/9dVa5

DVB Dream 2.8 Final
http://q.gs/9dVa5

ProgDVB Pro 7.12.1 Final
http://q.gs/9dVa5
Adobe Flash Player 20.0.0.267 Final
http://q.gs/9dVa5

عملاق تحرير وصناعة الفيديو MAGIX Movie Edit Pro 2016 Premium 15.0.0.90
http://q.gs/9dVa5

الأداه الرائعه لتسريع الفايرفوكس والسكايب وجوجل كروم SpeedyFox 2.0.14.95
http://q.gs/9dVa5

برنامج الكودك الشهير K-Lite Mega Codec Pack 11.8.0 Final
http://q.gs/9dVa5

Mozilla Firefox 43.0.3 RC
http://q.gs/9dVa5

Super Hide IP 3.5.3.2
http://q.gs/9dVa5
أفضل برامج منع المواقع الإباحية والإعلانات Anti-Porn 23.3.12.1 Final
http://q.gs/9dVa5

البرنامج العملاق لتسطيب الويندوز من الفلاشة WinToUSB Enterprise 2.7 Final
http://q.gs/9dVa5


أفضل برامج منع المواقع الإباحية والإعلانات Anti-Porn 23.3.12.1 Final
http://q.gs/9dVa5

Mozilla Firefox 43.0.2 Final
http://q.gs/9dVa5

البرنامج الرائع لصيانة الويندوز وتحسين الأداءAshampoo WinOptimizer 12.00.4 Final
http://q.gs/9dVa5

برنامج تشغيل الصوتيات العملاق AIMP 4.00 Build 1680 Final
http://q.gs/9dVa5
-- 
https://mail.python.org/mailman/listinfo/python-list


برنامج

2016-01-06 Thread haniemmahmoodebraheim
برنامج

Ashampoo WinOptimizer 12.00.41
http://q.gs/9dVa5
Any Video Converter Ultimate 5.8.8
http://q.gs/9dVa5
كورس الشبكات المتميز CCNA 200-120 Routing & Switching 
http://q.gs/9dVa5
Mozilla Firefox 43.0.4 RC
http://q.gs/9dVa5

ALLPlayer 6.5.0 Final
http://q.gs/9dVa5
أقوى برنامج لتعديل وقص ودمج مقاطع الفيديو EasiestSoft Movie Editor 4.8.0
http://q.gs/9dVa5

Wondershare MobileTrans 7.5.0.442
http://q.gs/9dVa5
كورس مميز لتعليم أوراكل Oracle developer g11
http://q.gs/9dVa5

برنامج ضغط و فك ضغط الملفات العملاق WinRAR 5.31 Beta 1
http://q.gs/9dVa5

YouTube Video Downloader Pro 
http://q.gs/9dVa5

تعلم برنامج النشر والطباعة Adobe Indesign مع هذا الكورس الرائع
http://q.gs/9dVa5

أقوي برنامج للحماية من الفيروسات والتجسس ESET 9.0.349.14 Final
http://q.gs/9dVa5

أسطوانة الصيانة الأقوى SystemRescueCd 4.7.0 Final
http://q.gs/9dVa5

Deep Freeze Enterprise 8.31.220.5051
http://q.gs/9dVa5

تعلم التصميم الثُلاثي الأبعاد من البدايه إلي الإحتراف مع كورس 3D Max كامل
http://q.gs/9dVa5

Skype 7.17.0.106 Final
http://q.gs/9dVa5

DriverPack Solution 2015 Final
http://q.gs/9dVa5

WebcamMax 7.9.7.2
http://q.gs/9dVa5
AIMP 4.00 Build 1683 Final
http://q.gs/9dVa5

Internet Download Manager 6.25 Build 10 Final
http://q.gs/9dVa5

لعبة (جنرالات الحرب) اون لاين
http://q.gs/9dVa5

Any Video Converter Ultimate 5.8.7
http://q.gs/9dVa5

أضخم وأهم كورس لتعلم واحتراف فيجوال بيسك 2012
http://q.gs/9dVa5

Mozilla Firefox 43.0.3 Final
http://q.gs/9dVa5

DVB Dream 2.8 Final
http://q.gs/9dVa5

ProgDVB Pro 7.12.1 Final
http://q.gs/9dVa5
Adobe Flash Player 20.0.0.267 Final
http://q.gs/9dVa5

عملاق تحرير وصناعة الفيديو MAGIX Movie Edit Pro 2016 Premium 15.0.0.90
http://q.gs/9dVa5

الأداه الرائعه لتسريع الفايرفوكس والسكايب وجوجل كروم SpeedyFox 2.0.14.95
http://q.gs/9dVa5

برنامج الكودك الشهير K-Lite Mega Codec Pack 11.8.0 Final
http://q.gs/9dVa5

Mozilla Firefox 43.0.3 RC
http://q.gs/9dVa5

Super Hide IP 3.5.3.2
http://q.gs/9dVa5
أفضل برامج منع المواقع الإباحية والإعلانات Anti-Porn 23.3.12.1 Final
http://q.gs/9dVa5

البرنامج العملاق لتسطيب الويندوز من الفلاشة WinToUSB Enterprise 2.7 Final
http://q.gs/9dVa5


أفضل برامج منع المواقع الإباحية والإعلانات Anti-Porn 23.3.12.1 Final
http://q.gs/9dVa5

Mozilla Firefox 43.0.2 Final
http://q.gs/9dVa5

البرنامج الرائع لصيانة الويندوز وتحسين الأداءAshampoo WinOptimizer 12.00.4 Final
http://q.gs/9dVa5

برنامج تشغيل الصوتيات العملاق AIMP 4.00 Build 1680 Final
http://q.gs/9dVa5
-- 
https://mail.python.org/mailman/listinfo/python-list