Re: Partitioning a list

2018-08-22 Thread Paul Moore
On Wed, 22 Aug 2018 at 00:44, Poul Riis wrote: > > I would like to list all possible ways to put N students in groups of k > students (suppose that k divides N) with the restriction that no two students > should ever meet each other in more than one group. > I think this is a classical problem a

Re: Saving application configuration to the ini file respecting order of sections/options and providing mechanism for (nested) complex objects

2018-08-22 Thread zljubisic
Thanks. As I can see python 3.7 is the best option. Thank you very very muchs for the code as well. Best regards. -- https://mail.python.org/mailman/listinfo/python-list

zpifile.py error - no crc 32 attribute

2018-08-22 Thread jacob m
Hi guys, I have a problem with zipfile and zlib module, and hope to get some help. That's my error: "import zipfile File "/home/lib/python3.7/lib/python3.7/zipfile.py", line 19, in crc32 = zlib.crc32 AttributeError: module 'zlib' has no attribute 'crc32' " I have no idea what to do wi

Re: Partitioning a list

2018-08-22 Thread Richard Damon
> On Aug 22, 2018, at 8:51 AM, Paul Moore wrote: > >> On Wed, 22 Aug 2018 at 00:44, Poul Riis wrote: >> >> I would like to list all possible ways to put N students in groups of k >> students (suppose that k divides N) with the restriction that no two >> students should ever meet each other i

Re: zpifile.py error - no crc 32 attribute

2018-08-22 Thread Peter Pearson
On Wed, 22 Aug 2018 13:12:59 +0200, jacob m wrote: [snip] > That's my error: > "import zipfile > File "/home/lib/python3.7/lib/python3.7/zipfile.py", line 19, in > crc32 = zlib.crc32 > AttributeError: module 'zlib' has no attribute 'crc32' " > > I have no idea what to do with that :/ I

Re: zpifile.py error - no crc 32 attribute

2018-08-22 Thread jacob m
Hi, " Is there perhaps a different zlib on your path, hiding the real zlib?" - I'm unsure of that. "sudo apt-get install zlib1g-dev Reading package lists... Done Building dependency tree Reading state information... Done zlib1g-dev is already the newest version. 0 upgraded, 0 newly installed, 0 t

Re: Partitioning a list

2018-08-22 Thread Paul Moore
On Wed, 22 Aug 2018 at 17:33, Richard Damon wrote: > Paul, my understanding of the problem is that you want to create multiple > divisions of the larger group into smaller groups, such that if two people > are in the same group in 1 division, they never appear together in other > divisions. > >

What is the pattern?

2018-08-22 Thread no
I asked this before but my Usenet reader only saves messages for 30 days. I still can't get the pattern for this chart. I started working on the code that should print it, but I never remembered how to do it. empire={6:"Infantry",12:"Armor/Fighter",30:"Transport"} for x in range (6,120,6): pr

Re: zpifile.py error - no crc 32 attribute

2018-08-22 Thread jacob m
" import zlib print(zlib.__file__)" When I don't have the zlib uploaded to my Python3.7 library, I have the following error: "Traceback (most recent call last): File "./testx.py", line 2, in import zlib ModuleNotFoundError: No module named 'zlib'" When I download the zlib 1.2.11 from http:

Re: zpifile.py error - no crc 32 attribute

2018-08-22 Thread Ashok Arora
Test this in the interpreter:- import zlib zlib.__file__ It will return the location of zlib module. On 8/22/18, jacob m wrote: > Hi, > " Is there perhaps a different zlib on > your path, hiding the real zlib?" - I'm unsure of that. > > "sudo apt-get install zlib1g-dev > Reading packag

Re: zpifile.py error - no crc 32 attribute

2018-08-22 Thread Thomas Jollans
On 08/23/2018 12:43 AM, jacob m wrote: " import zlib print(zlib.__file__)" When I don't have the zlib uploaded to my Python3.7 library, I have the following error: "Traceback (most recent call last): File "./testx.py", line 2, in import zlib ModuleNotFoundError: No module named 'zlib'

Re: zpifile.py error - no crc 32 attribute

2018-08-22 Thread MRAB
On 2018-08-22 23:43, jacob m wrote: " import zlib print(zlib.__file__)" When I don't have the zlib uploaded to my Python3.7 library, I have the following error: "Traceback (most recent call last): File "./testx.py", line 2, in import zlib ModuleNotFoundError: No module named 'zlib'" Wh