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


Groups > comp.lang.python > #70823

zipimport limited to 65536 files?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <tgraves_cs@yahoo.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.064
X-Spam-Evidence '*H*': 0.87; '*S*': 0.00; 'tom': 0.07; 'builtin': 0.09; 'messing': 0.09; 'subject:files': 0.09; 'python': 0.11; '65536': 0.16; 'files.': 0.16; 'thanks,': 0.17; 'trying': 0.19; '8bit%:5': 0.22; 'import': 0.22; 'to:name:python-list@python.org': 0.22; 'installed': 0.27; 'fixed': 0.29; 'mode': 0.30; 'newer': 0.30; "i'm": 0.30; 'file': 0.32; 'run': 0.32; 'limitation': 0.33; 'noticed': 0.34; 'possible.': 0.35; 'there': 0.35; 'version': 0.36; 'subject:?': 0.36; 'list': 0.37; 'to:addr:python-list': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'mailing': 0.39; 'skip:u 10': 0.60; 'read': 0.60; 'received:bf1.yahoo.com': 0.60; 'received:mail.bf1.yahoo.com': 0.60; 'simply': 0.61; 'header :Reply-To:1': 0.67; 'received:98.139.212': 0.68; 'received:bullet.mail.bf1.yahoo.com': 0.74; 'received:204': 0.75; 'subject:limited': 0.93
X-Yahoo-Newman-Property ymail-3
X-Yahoo-Newman-Id 246931.35926.bm@omp1032.mail.bf1.yahoo.com
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1398973761; bh=/In/1MubRMuMGMpEmnSrHdzm5xqF7xjv36jnC3MEajw=; h=Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=gD+J52I+CUQ18fJKg77AB9sMQvV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xlIGFuZCBpZiBydW4gaW4gdmVyYm9zZSBtb2RlIGp1c3Qgc2hvd3M6CgppbXBvcnQgemkBMAEBAQE-
X-Mailer YahooMailWebService/0.8.188.663
Date Thu, 1 May 2014 12:49:21 -0700 (PDT)
From Tom Graves <tgraves_cs@yahoo.com>
Subject zipimport limited to 65536 files?
To "python-list@python.org" <python-list@python.org>
MIME-Version 1.0
Content-Type multipart/alternative; boundary="-156808750-1965958389-1398973761=:73804"
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To Tom Graves <tgraves_cs@yahoo.com>
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.9635.1398973954.18130.python-list@python.org> (permalink)
Lines 87
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1398973954 news.xs4all.nl 2836 [2001:888:2000:d::a6]:59518
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:70823

Show key headers only | View raw


[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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web