Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #70823 > unrolled thread

zipimport limited to 65536 files?

Started byTom Graves <tgraves_cs@yahoo.com>
First post2014-05-01 12:49 -0700
Last post2014-05-01 12:49 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  zipimport limited to 65536 files? Tom Graves <tgraves_cs@yahoo.com> - 2014-05-01 12:49 -0700

#70823 — zipimport limited to 65536 files?

FromTom Graves <tgraves_cs@yahoo.com>
Date2014-05-01 12:49 -0700
Subjectzipimport limited to 65536 files?
Message-ID<mailman.9635.1398973954.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Hello,

I am trying to use python (2.6.6) to read a jar file that contains python files.  I'm simply setting PYTHONPATH= spark-assembly-1.0.0-SNAPSHOT-hadoop2.4.0.jar.   Unfortunately it fails to read the python files from the jar file and if run in verbose mode just shows:

import zipimport # builtin
# installed zipimport hook
# zipimport: found 0 names in spark-assembly-1.0.0-SNAPSHOT-hadoop2.4.0.jar

I was messing around and noticed that if I reduce the number of files and directories in the jar to below 65536 then it works:

import zipimport # builtin
# installed zipimport hook
# zipimport: found 65452 names in pyspark.jar

Is this a known limitation or is this perhaps fixed in newer version or is there a work around?

Note, I'm not subscribed to the mailing list so please copy me in response if possible.

Thanks,
Tom

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web