Hi Lukasz,

*
*
*1) C:\Pyjama\examples\Tried_02>c:\Pyjama\bin\pyjsbuild.bat Tried_02.py*
*
*
this is the way ( command ) i build files, it gives me
*
*
*Building : Tried_02*
*PYJSPATH : [*
*    C:\Pyjama\examples\Tried_02*
*    C:\Pyjama\library*
*    C:\Pyjama\addons*
*]*
*Built to : C:\Pyjama\examples\Tried_02\output*

but at the end when i open html files in browser it gives me this
error : *Tried_02
ImportError: No module named Tried_03.WCP, Tried_03.WCP in context None *
*
*
2) No, i have not set PYJSPATH path variable, instead of it i have added
python & pyjama's path in Path variable in environment variables.

I have tried to add WCP module by using :

import os
import sys
#from Tried_03 import WCP
sys.path.append('C:\Tried_03')
import WCP

normal way because package import of python gives me some another error's (
thats why i have comment it )
 I think by adding it in sys path it should get that file easiliy, but
actually i don't why such kind of errors are coming.


for Pyjamas installation on windows i have understand the steps given in
these link's :
https://blogs-pyjeon.rhcloud.com/?p=366
https://github.com/pyjs/pyjs/wiki/installingpyjamasandpyjamasdesktopforwindows

Thanks & Regards,
Swapnil



On Thu, Mar 14, 2013 at 3:32 PM, Łukasz Mach <[email protected]> wrote:

>
> On 14.03.2013 05:41, Swapnil Bhavekar wrote:
>
>> ok thanks for reply, so now i am importing basic python code as module
>> in pys file, in that way it gives me "Tried_02 ImportError: No module
>> named WCP, WCP in context None"
>>
>> in this Tried_02 is my pyjs folder and WCP is my python file from
>> another folder, which i tried to import in this ( Tried_02 ) example.
>>
>
> How do you build it? What's exact command of pyjsbuild?
>
> Do you set PYJSPATH? If not - how should pyjsbuild know that your module
> should be in different folder?
>
>
> --
> pozdrawiam
>
> Łukasz Mach - [email protected]
>
>
> --
>
> --- You received this message because you are subscribed to a topic in the
> Google Groups "Pyjs.org Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/**
> topic/pyjs-users/-rCTjFlAqik/**unsubscribe?hl=en<https://groups.google.com/d/topic/pyjs-users/-rCTjFlAqik/unsubscribe?hl=en>
> .
> To unsubscribe from this group and all its topics, send an email to
> pyjs-users+unsubscribe@**googlegroups.com<pyjs-users%[email protected]>
> .
> For more options, visit 
> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
> .
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Pyjs.org Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to