Thanks Peter, I updated to python 2.5 and got the same error. Any ideas? Thanks, Victor sudo python2.5 scripts/nglims/add_ng_defaults.py universe_wsgi.ini galaxy_dev_1 > sudo python2.5 scripts/nglims/add_ng_defaults.py universe_wsgi.ini scripts/nglims/add_ng_defaults.py:51: Warning: 'with' will become a reserved keyword in Python 2.6 File "scripts/nglims/add_ng_defaults.py", line 51 with open(config["nglims_config_file"]) as in_handle: ^ SyntaxError: invalid syntax galaxy_dev_1 > python2.5 Python 2.5.4 (r254:67916, Oct 6 2010, 16:12:31) [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
On Oct 6, 2010, at 4:43 PM, Peter wrote:
On Wed, Oct 6, 2010 at 10:05 PM, Victor Ruotti <ruotti@wisc.edu> wrote:
Hi,
Any help will be appreciated. I'm following the steps to configure the LIMS system and I'm stuck in step 3. Maybe I'm missing something, I get an SyntaxError. my version of python maybe? Python 2.4.3 (#1, Sep 3 2009, 15:37:37) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2 Thanks, Victor 3. Add configured request types, forms and sample states to the database:
$ python scripts/nglims/add_ng_defaults.py universe_wsgi.ini
sudo python scripts/nglims/add_ng_defaults.py universe_wsgi.ini File "scripts/nglims/add_ng_defaults.py", line 51 with open(config["nglims_config_file"]) as in_handle: ^ SyntaxError: invalid syntax
The "with" statement is Python 2.5+ only and you have Python 2.4
Peter