Re: zpifile.py error - no crc 32 attribute

2018-08-24 Thread jacob m
Hi all, Thanks for your help, I reinstalled my Python and now it seems to be working :) Before building Python3 i uncommented: #zlib zlibmodule.c -I$(prefix)/include in Modules/Setup.dist and then I enabled ipv6 during the configuration. Regards On Thu, 23 Aug 2018 at 01:59, MRAB wrote: > On 201

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

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 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 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 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: 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

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