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: 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+CUQ18fJKg77AB9sMQvVSTzCnZT1UERo81/uV9/6+mGzcT0TAO1wmcMqCfluGaxkyAi5VuOY5pOsEkr+3UDeFhj5N+sAmKrhBMlCoAl5d46/pzg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ailWebService/0.8.188.663 Date: Thu, 1 May 2014 12:49:21 -0700 (PDT) From: Tom Graves Subject: zipimport limited to 65536 files? To: "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 List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 ---156808750-1965958389-1398973761=:73804 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello,=0A=0AI am trying to use python (2.6.6) to read a jar file that conta= ins python files. =A0I'm simply setting PYTHONPATH=3D=A0spark-assembly-1.0.= 0-SNAPSHOT-hadoop2.4.0.jar.=A0=A0=A0Unfortunately it fails to read the pyth= on files from the jar file and if run in verbose mode just shows:=0A=0Aimpo= rt zipimport # builtin=0A# installed zipimport hook=0A# zipimport: found 0 = names in spark-assembly-1.0.0-SNAPSHOT-hadoop2.4.0.jar=0A=0AI was messing a= round and noticed that if I reduce the number of files and directories in t= he jar to below 65536 then it works:=0A=0Aimport zipimport # builtin=0A# in= stalled zipimport hook=0A# zipimport: found 65452 names in pyspark.jar=0A= =0AIs this a known limitation or is this perhaps fixed in newer version or = is there a work around?=0A=0ANote, I'm not subscribed to the mailing list s= o please copy me in response if possible.=0A=0AThanks,=0ATom=0A ---156808750-1965958389-1398973761=:73804 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,

I am trying to use python (2.6.6) to read a jar file th= at contains python files.  I'm simply setting PYTHONPATH=3D spark-assembly-1.0.0-SNAPSHOT-hadoop2.4.0.jar.   Unfortuna= tely it fails to read the python files from the jar file and if run in verb= ose mode just shows:

import zipimport # buil= tin
# installed zipimport hook
=0A=0A=0A=0A=0A=0A=0A=0A= =0A=0A
# zipimport: found 0 names in spark-= assembly-1.0.0-SNAPSHOT-hadoop2.4.0.jar

I was messing around and noticed t= hat if I reduce the number of files and directories in the jar to below 655= 36 then it works:

import zip= import # builtin
# installed zipimport hook
=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A
# 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

---156808750-1965958389-1398973761=:73804--