Not works on Windows
>>> import sys
>>> sys.path.insert(0,
>>> 'C:/Users/i/Downloads/you-get-0.4.1128.zip/you-get-0.4.1128/src')
>>> from you_get import common
\Users\i\Downloads\you-get-0.4.1128.zip\you-get-0.4.1128\src')
> >>> from you_get import common
> Traceback (most recent call last):
> File "", line 1, in
> from you_get import common
> ModuleNotFoundError: No module named 'you_ge
;> from you_get import common
Traceback (most recent call last):
File "", line 1, in
from you_get import common
ModuleNotFoundError: No module named 'you_get'
>>>
>>> import zipimport
>>>
z=zipimport.zipimporter(r
;> from you_get import common
Traceback (most recent call last):
File "", line 1, in
from you_get import common
ModuleNotFoundError: No module named 'you_get'
>>>
>>> import zipimport
>>>
z=zipimport.zipimporter(r
iMath writes:
> ...
> It seems possible in Python to use `zipimport` to directly use the zip
> archive of the module without extraction, I wonder what is the right way to
> use `zipimport`.
Your problem may come from the following restriction
(cited from the Python 2 docu
The same question also posted here
https://stackoverflow.com/questions/51820473/right-way-to-use-zipimport-zipimport-zipimporterror-not-a-zip-file
I have managed to use [this module][1] without installation - just import it
from path to use ,
import sys
url = 'https://exampl
rbose 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 zipi
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 zipi
OK it seems there's a bug in zipimport.c that was fixed in 2.4. I copied across
the 2.4 version and after removing a single new error check the rebuilt python
2.3 works fine. There was supposed to be a patch here
http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Modules/zipimport.c?r
I'm trying to run some aged software on a new machine which runs
Linux app2.reportlab.com 2.6.32-30-generic #59-Ubuntu SMP Tue Mar 1 21:30:46 UTC
2011 x86_64 GNU/Linux Ubuntu 10.04.2 LTS
The software is required to use python 2.3 so first I've had some problems
building python itself. Appare
I think I am trying to open a can of worms. It's better to leave the
idea for now.
Prashant
--
http://mail.python.org/mailman/listinfo/python-list
On 07/09/2010 06:36 PM, King wrote:
> Hi,
>
> The 'zipimport' modules can only import (.py & .pyc) files from a zip
> file and doesn't support importing .pyd & .so files. Recently I was
> examining the code of Py2Exe (python package deployment tool) and I
> It's strictly for windows platform. I would like to know from expert
> python users and linux programmers, how we can achieve similar
> functionality on linux platform? I do have limited c/c++ skill sets
> but I would love to give a try.
I don't know any way to load a shared library from somethi
On 07/09/2010 06:36 PM, King wrote:
> Hi,
>
> The 'zipimport' modules can only import (.py & .pyc) files from a zip
> file and doesn't support importing .pyd & .so files. Recently I was
> examining the code of Py2Exe (python package deployment tool) and I
Hi,
The 'zipimport' modules can only import (.py & .pyc) files from a zip
file and doesn't support importing .pyd & .so files. Recently I was
examining the code of Py2Exe (python package deployment tool) and I
have found that it is using a module 'zipextimporte
En Thu, 20 Aug 2009 07:02:26 -0300, ashwin.u@nokia.com
escribió:
We are currently trying to identify and fix all the memory leaks by just
doing Py_Initialize-PyRun_SimpleFile(some simple script)-Py_Finalize and
found that there are around 70 malloc-ed blocks which are not freed. One
27;files' is still 1 after Py_Finalize. The
zip_directory_cache is the dict that has this 'files' object and this dict is
added to the module during zipimport module initialization. This dict is
destroyed during _PyModule_Clear(called by PyImport_Cleanup) but the 'files'
On Apr 4, 7:06 pm, "Coonay.appspot" wrote:
> On Apr 2, 6:26 pm, John Machin wrote:
[snip]
> > > i found the the module in the zip reloaded everytime the code is
> > > called,i mean, say ,first time it take me 1 second to call a method in
> > > the zip,but it take another 1 second to call the mot
mudule ,i import another mudule from a zip ,
>
> > > > > when i call my mudle method,the module in the zip will be import from
> > > > > the zip every time,that slow down the operation,
>
> > > > > i try to search the some workarodnd or solution bu
i call my mudle method,the module in the zip will be import from
> > > > the zip every time,that slow down the operation,
>
> > > > i try to search the some workarodnd or solution but i don't get one,
>
> i don't use zipimport directly,just like u said i put
En Mon, 30 Mar 2009 09:39:20 -0300, Coonay escribió:
On Mar 26, 1:38 pm, John Machin wrote:
Why are you explicitly using the zipimport module? In other words, why
don't you put the full path of the zip file in sys.path and then just
use the normal "import module_in_the_zip"
a zip ,
>
> > > when i call my mudle method,the module in the zip will be import from
> > > the zip every time,that slow down the operation,
>
> > > i try to search the some workarodnd or solution but i don't get one,
>
i don't use zipimport directly,j
in my mudule ,i import another mudule from a zip ,
when i call my mudle method,the module in the zip will be import from
the zip every time,that slow down the operation,
i try to search the some workarodnd or solution but i don't get one,
could you help me ?
--
http://mail.python.org/mailman/li
e zip every time,that slow down the operation,
>
> > i try to search the some workarodnd or solution but i don't get one,
Why are you explicitly using the zipimport module? In other words, why
don't you put the full path of the zip file in sys.path and then just
use the normal "i
see,the zipimort takes nearly 0.5 second
D 03-25 07:53PM 21.374
Loading __main__
I 03-25 07:53PM 21.455
zipimporter('/base/data/home/apps/coonay/1.332322118600950324/
django.zip', '')
W 03-25 07:53PM 22.046
appengine_django module
On Mar 26, 10:41 am, Coonay wrote:
> in my mudule ,i impor
[EMAIL PROTECTED] wrote:
> I may be on particularly potent crack, but I was wondering whether it
> would make sense to distribute python code in DLLs so that the memory
> occupied by the bytecode would be consumed only once even if there were
> multiple processes using the same bytecode. Or is ther
ctypes ?
--
http://mail.python.org/mailman/listinfo/python-list
I may be on particularly potent crack, but I was wondering whether it
would make sense to distribute python code in DLLs so that the memory
occupied by the bytecode would be consumed only once even if there were
multiple processes using the same bytecode. Or is there another way to
accomplish code
"Gabriele *Darkbard* Farina" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I have a zip file structured like this:
>
> mymodule.zip\
> module1.py
> submodule\
>submodule1.py
>
> I tried to load submodule.submodule1
Hi,
I have a zip file structured like this:
mymodule.zip\
module1.py
submodule\
submodule1.py
I tried to load submodule.submodule1 using this pice of code:
import zipimport
z = zipimport.zipimporter("mymodule.zip")
z.load_module("submodule.submodule1")
In article <[EMAIL PROTECTED]>,
"Bob Swerdlow" <[EMAIL PROTECTED]> wrote:
> We have some users of our application getting error messages like:
> IOError: zipimport: can not open file
> /Volumes/MyApp/MyApp.app/Contents/Resources/Modules.zip
> This onl
We have some users of our application getting error messages like:
IOError: zipimport: can not open file
/Volumes/MyApp/MyApp.app/Contents/Resources/Modules.zip
This only happens on our Mac version - the Windows version seems fine.
Our build is still using bundlebuilder, which creates
32 matches
Mail list logo