[py-dev] Import problems

Jan Balster jan at balster.info
Fri Jul 14 12:39:05 CEST 2006


Hi Maciek,

about which python modules and pylib modules are you talking? Do you mean the
thread module? Can you provide some more informations?

A guess from my side:
These modules are included in the bootstrap code. Maybe the imports done in this
code are blocking your imports:

startup_modules = [
    'py.__.thread.io',
    'py.__.thread.pool',
    'py.__.execnet.inputoutput',
    'py.__.execnet.gateway',
    'py.__.execnet.message',
    'py.__.execnet.channel',
]


Maciek Fijalkowski wrote:
>   I want to make py.execnet import remotely. So what I perform:
> - make new __import__ hook, so we can try local import or ask for 
> sources from server (via some channel), sources are got by py.code.Source()
> 
> but...
> 
>   There are problems with importing py lib itself. For some modules it 
> tells that there are builtin modules (py modules), because of import 
> hooks. On the other hand copying py.lib is not what I want to achieve.
>   Any clue?
> 
> _______________________________________________
> py-dev mailing list
> py-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/py-dev
> 


More information about the py-dev mailing list