Re: ImportError: No module named site

David Charles <[email protected]>
Newsgroups gmane.comp.lang.jython.devel
Message-ID <CAJHoYyK2y0wFTsD0e3-pJR6kj51goQcOSYYeBP2NSrm8mDa==g@mail.gmail.com>
Alex,

Thank you for your reply.  Yes, I am using the standalone jar.  Here are my
file sizes:

$ ls -l jython-standalone*
-rw-r--r-- 1 12345 users 13432713 Jun 12  2013 jython-standalone-2.7-b1.jar
-rw-r--r-- 1 12345 users 28913501 Nov  4 14:25 jython-standalone-2.7-b3.jar
-rw-r--r-- 1 12345 users 35018318 Feb 26 16:14 jython-standalone-2.7-b4.jar

The only one that works for me is b1.  On the client, I am using javaws
-clearcache between tests.

Wow, jython-standalone-2.7-b4.jar is 34Mb?

David



On Mon, Mar 2, 2015 at 9:49 AM, Alex Grönholm <[email protected]>
wrote:

>  02.03.2015, 18:43, David Charles kirjoitti:
>
> My apologies for abusing this list a second time, but I am still unable to
> register at bugs.jython.org.  :(
>
> I am seeing "ImportError: No module named site" on 2.7b4 as described in
> this issue:
>
> * http://bugs.jython.org/issue2225
>
> However, mine is a Webstart application.
>
> My application is currently running properly on 2.7b1, since that
> particular release does not exhibit the symptom, but I would like to be
> using the latest if possible.
>
>  I have a deployed Web Start app running 2.7b3 currently. Are you sure
> you downloaded the correct Jython jar file? What is the file size? The one
> you should have downloaded is the standalone jar. There is another jar
> which only contains the Java classes.
>
> Here is what I see in the Webstart console when I start my app:
>
> Java Web Start 11.31.2.13
> Using JRE version 1.8.0_31-b13 Java HotSpot(TM) 64-Bit Server VM
> User home directory = C:\Users\12345
> ----------------------------------------------------
> c:   clear console window
> f:   finalize objects on finalization queue
> g:   garbage collect
> h:   display this help message
> m:   print memory usage
> o:   trigger logging
> p:   reload proxy configuration
> q:   hide console
> r:   reload policy configuration
> s:   dump system and deployment properties
> t:   dump thread list
> v:   dump thread stack
> 0-5: set trace level to <n>
> ----------------------------------------------------
> #### Java Web Start Error:
> #### null
>
> When I click on 'Details', I find the following exception stack trace:
>
> ImportError: No module named site
>
>         at org.python.core.ImportError(Py.java:328)
>         at org.python.core.imp.import_first(imp.java:842)
>         at org.python.core.imp.load(imp.java:695)
>         at
> org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:118)
>         at
> org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:94)
>         at
> org.python.util.InteractiveInterpreter.<init>(InteractiveInterpreter.java:39)
>         at
> org.python.util.InteractiveInterpreter.<init>(InteractiveInterpreter.java:28)
>         at
> org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:67)
>         at
> org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:53)
>         at
> org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:33)
>         (my app)
>
> Is there anyone who can tell me what is going on and how to fix it?
>
> Thank you, kindly.
> David
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
>
>
>
> _______________________________________________
> Jython-dev mailing [email protected]://lists.sourceforge.net/lists/listinfo/jython-dev
>
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Jython-dev mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jython-dev
>
>

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/

_______________________________________________
Jython-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.