- CentOS 5.2
- MySQL 5
- Python 2.6
- Django 1.02
- Python: MySQLDB
- Python: PIL
Monday, April 6, 2009
Things you need for Hosting...
Ok I need to keep track things I need for Hosting... This list is going to change but I'm going to start forgetting things...
Pyjamas III
Pyjamas was installed correctly all along. So what we learned here is that you can't confirm it's correctness by running the interactive interpreter. Go ahead and write a python source file and build it using pyjsbuild and see if your output functions properly.
Boy that was all a big waste of time...
Boy that was all a big waste of time...
Thursday, April 2, 2009
Pyjamas II
Ok. I dont know if this works right. I could have been doing something wrong last weekend. I thought I'd try to install Pyjamas as the instructions told you, then go through and try to verify it like I did with Django. No go. I tried "from pyjamas import Window" (which is the first line in like all of the examples). I kept getting errors like the following:
Python 2.6.1 (r261:67515, Mar 27 2009, 23:42:53)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyjamas import Window
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named pyjamas
I then appended /usr/share/pyjamas to the PYTHONPATH and got a little further...
>>> from pyjamas import Window
Traceback (most recent call last):
File "", line 1, in
File "/usr/share/pyjamas/library/pyjamas/__init__.py", line 1, in
import DOM
File "/usr/share/pyjamas/library/DOM.py", line 15, in
from __pyjamas__ import JS
ImportError: cannot import name JS
But it still won't work. I don't think it's supposed to work in the interactive python environment... Maybe it is - but I tried to run pyjsbuild on a test.py file that just imported the Window class from pyjamas and ran it. That ran successfully and created the proper output.
Note: pyjsbuild was looking for files in /usr/local/share/pyjamas/builder , but these files were all installed to /usr/share/pyjamas/builder. So I create a symbolic link under /usr/local/share that pointed to /usr/share. Don't know if it was the right thing to do or not... This will be yet another system change to make for hosting if this needs to be done.
Next step: Run real test apps through Pyjamas to see if it's correct. Hoping for now that it is.
Python 2.6.1 (r261:67515, Mar 27 2009, 23:42:53)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyjamas import Window
Traceback (most recent call last):
File "
ImportError: No module named pyjamas
I then appended /usr/share/pyjamas to the PYTHONPATH and got a little further...
>>> from pyjamas import Window
Traceback (most recent call last):
File "
File "/usr/share/pyjamas/library/pyjamas/__init__.py", line 1, in
import DOM
File "/usr/share/pyjamas/library/DOM.py", line 15, in
from __pyjamas__ import JS
ImportError: cannot import name JS
But it still won't work. I don't think it's supposed to work in the interactive python environment... Maybe it is - but I tried to run pyjsbuild on a test.py file that just imported the Window class from pyjamas and ran it. That ran successfully and created the proper output.
Note: pyjsbuild was looking for files in /usr/local/share/pyjamas/builder , but these files were all installed to /usr/share/pyjamas/builder. So I create a symbolic link under /usr/local/share that pointed to /usr/share. Don't know if it was the right thing to do or not... This will be yet another system change to make for hosting if this needs to be done.
Next step: Run real test apps through Pyjamas to see if it's correct. Hoping for now that it is.
Subscribe to:
Posts (Atom)