Python Forum
zip file variable prints <zipfile.ZipFile object at 0x7f83fd13bd90> ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
zip file variable prints <zipfile.ZipFile object at 0x7f83fd13bd90> ?
#8
Hi Buran,

tired print ZipFile.filename as shown below and got this below error
zip_file_name = zipfile.ZipFile(n1_4222_log + '/' + log_file_name + ".zip", "w")
        print ZipFile.zip_file_name
        zip_file_name.write(n1_4222_log, compress_type = zipfile.ZIP_DEFLATED)
Error:
Traceback (most recent call last): File "test_file.py", line 19, in <module> print ZipFile.zip_file_name NameError: name 'ZipFile' is not defined
Reply


Messages In This Thread
RE: zip file issue - by heiner55 - Jun-25-2019, 05:49 PM
RE: zip file variable prints <zipfile.ZipFile object at 0x7f83fd13bd90> ? - by Rsh - Jun-27-2019, 12:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using zipfile module - finding folders not files darter1010 2 296 Apr-06-2024, 07:22 AM
Last Post: Pedroski55
  zipfile module error pseudo 3 810 Jun-30-2023, 03:52 PM
Last Post: Gribouillis
  zfill prints extra et the end of a var tester_V 4 922 Mar-24-2023, 06:59 PM
Last Post: tester_V
  [Solved by deanhystad] Create a zip file using zipfile library DZ_Galaxy 2 1,195 Aug-17-2022, 04:57 PM
Last Post: DZ_Galaxy
  Can ZipFile be used to extract hidden files? AiedailEclipsed 0 1,653 Mar-22-2022, 05:21 PM
Last Post: AiedailEclipsed
  variable prints without being declared. ClockPillow 2 1,827 Jul-11-2021, 12:13 AM
Last Post: ClockPillow
  Created zipfile without all the subfolder? korenron 3 3,817 Jun-23-2021, 12:44 PM
Last Post: korenron
  Create ZIP file not working using ZipFile? korenron 1 2,139 Jun-13-2021, 04:15 PM
Last Post: korenron
  Output prints Account.id at the end? LastStopDEVS 5 2,825 Dec-19-2020, 05:59 AM
Last Post: buran
  Defining an object's argument whose name is stored in a variable arbiel 2 2,208 Dec-11-2020, 10:19 PM
Last Post: arbiel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020