wrhunt0 / appengine-devappserver2-experiment

Automatically exported from code.google.com/p/appengine-devappserver2-experiment
0 stars 0 forks source link

Modification of application files are not picked up by the the server unless it is restarted #54

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This is a productivity show stopper and blocker for moving to the new server.

What steps will reproduce the problem?
1. Start the server
1.1 trigger a code path
2. Edit a file in the code path and add a logging statement (as an example)
3. Redo step 1.1
4. Logging Statement output does not show in the logs 
5. Repeat steps 1 & 1.1, now the logging statement output appears

What version of the product are you using? On what operating system?
1.7.6_prerelease
$ uname -a
Darwin skiros.local 12.2.1 Darwin Kernel Version 12.2.1: Thu Oct 18 16:32:48 
PDT 2012; root:xnu-2050.20.9~2/RELEASE_X86_64 x86_64
$ /usr/bin/env python --version
Python 2.7.3
$ /usr/bin/env python -c "import AppKit"
$ cat /root_path/out/google_appengine/VERSION
release: "prerelease-1.7.6"
timestamp: 1360882848
api_versions: ['1']
supported_api_versions:
python:
api_versions: ['1']
python27:
api_versions: ['1']
go:
api_versions: ['go1']
$ s run
( mkdir -p /root_path/datastores-work && 
/root_path/out/google_appengine/dev_appserver.py 
--dev_appserver_log_level=debug --log_level=debug --host skiros --port 8082 
--admin_host skiros --admin_port 8092 --skip_sdk_update_check --require_indexes 
--datastore_path=/root_path/datastores-work/default 
--blobstore_path=/root_path/datastores-work/default_blobs 
--logs_path=/root_path/datastores-work/default2_logs --enable_task_running=yes 
/root_path/out/site ) 2>&1 | tee /tmp/gae_8082.out

Please provide any additional information below.

Original issue reported on code.google.com by p...@gae123.com on 17 Mar 2013 at 6:01

GoogleCodeExporter commented 8 years ago
Same problem.  Used to work great.

The following shows up in my Eclipse console while running:

INFO     2013-03-20 15:17:39,366 api_server.py:152] Starting API server at: 
http://localhost:49327
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-def
ault.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappser
ver2/file_watcher.py:97: UserWarning: Detecting source code changes is not 
supported because your Python version does not include PyObjC 
(http://pyobjc.sourceforge.net/). Please install PyObjC or, if that is not 
practical, file a bug at 
http://code.google.com/p/appengine-devappserver2-experiment/issues/list.
  warnings.warn('Detecting source code changes is not supported because '
INFO     2013-03-20 15:17:39,388 dispatcher.py:98] Starting server "default" 
running at: http://192.168.1.11:8080

Original comment by j...@powerweek.com on 20 Mar 2013 at 3:34

GoogleCodeExporter commented 8 years ago
Why not install PyObjC then?

Original comment by KaanSo...@gmail.com on 21 Mar 2013 at 7:08

GoogleCodeExporter commented 8 years ago
Understood.

I'd rather not spend time/space installing XCode to compile the PyObjC source 
just so I can get back to functionality I had 2 days ago.  But such is the 
price of progress at times.

I'll keep an eye out for quicker solutions a while longer, then give that a try.

Original comment by j...@powerweek.com on 21 Mar 2013 at 5:17

GoogleCodeExporter commented 8 years ago
SImilar issue: Python says pyobjc is installed:
<<$ easy_install -U pyobjc
Searching for pyobjc
Reading http://pypi.python.org/simple/pyobjc/
Reading http://pyobjc.sourceforge.net/
Reading http://pyobjc.sourceforge.net/software/index.php
Best match: pyobjc 2.5.1
Processing pyobjc-2.5.1-py2.6.egg
pyobjc 2.5.1 is already the active version in easy-install.pth

Using /Library/Python/2.6/site-packages/pyobjc-2.5.1-py2.6.egg
Processing dependencies for pyobjc
Finished processing dependencies for pyobjc
>>
But dev_appserver.py says it is not:
<</Users/elliott/go/google_appengine/google/appengine/tools/devappserver2/file_w
atcher.py:97: UserWarning: Detecting source code changes is not supported 
because your Python version does not include PyObjC 
(http://pyobjc.sourceforge.net/). Please install PyObjC or, if that is not 
practical, file a bug at 
http://code.google.com/p/appengine-devappserver2-experiment/issues/list.
  warnings.warn('Detecting source code changes is not supported because '
>>
... so I am reporting the error as requested (OSX 10.6.8)
... everything was working fine before I upgraded, now I wish I had not! 

Original comment by Elliott....@gmail.com on 23 Mar 2013 at 6:03

GoogleCodeExporter commented 8 years ago
"Why not install PyObjC then?" was a pretty idiot thing to say, after saying 
it, I admit that installing packages is challenging, I think your default 
python version is 2.6, however sdk is using 2.5 or 2.7 (probably 2.7), so I 
guess, If you want a quick solution, you should google "how to install python 
packages for a different python version" or something, on windows I just run 
Python27/python.exe setup.py install or something

Original comment by KaanSo...@gmail.com on 23 Mar 2013 at 6:07

GoogleCodeExporter commented 8 years ago
Thank you, clearly you are right, having upgraded from Python 2.6 to 2.7 in 
order to use the new SDK I now have the wrong version of the library... If only 
I were a Python expert instead of trying to learn Go!
I've no idea how to fix the problem, but will google as you suggest... 

Original comment by Elliott....@gmail.com on 23 Mar 2013 at 6:31

GoogleCodeExporter commented 8 years ago
Hurrah! Back working again now. 

Just in case anyone else has the same problem here is how I fixed it:

Ignore the specific instructions for installation indirectly pointed to by the 
error message from dev_appserver.py at: 
http://pythonhosted.org/pyobjc/install.html#support-versions 
Instead use the general instructions at: 
http://docs.python.org/2/install/index.html

Check you are using the right version of python (2.7) with$ "which python"

For each of the following downloads, after downloading run$ "python setup.py 
install"
1)https://pypi.python.org/pypi/distribute
2)https://pypi.python.org/pypi/pyobjc-core
3)https://pypi.python.org/pypi/pyobjc

I have no idea if this is the "correct" way to fix the problem, but it seems to 
have worked for me...

Original comment by Elliott....@gmail.com on 23 Mar 2013 at 7:54

GoogleCodeExporter commented 8 years ago
I´m having the same problems... The easy-install route did not work for me 
either (it installs correctly, but there is the the GAE Message).

the default python version is 2.5 (which several people recommended to leave 
that way)
localhost:app tom$ python
Python 2.5 (r25:51918, Sep 19 2006, 08:49:13) 

But py 2.6 and 2.7 are also available:
localhost:app tom$ python2.6
Python 2.6.7 (r267:88850, Oct 11 2012, 20:15:00) 

localhost:app tom$ python2.7
Python 2.7.2 (default, Feb  4 2012, 19:46:56) 

I assume the issue is that the recommended easy-install setup only works for 
the default python version installed?

Original comment by tho...@colldo.com on 24 Mar 2013 at 7:19

GoogleCodeExporter commented 8 years ago
So, I´ve worked out a way to get easy-install working with py2.7:

sudo easy_install-2.7 -U pyobjc

Which installed it, but did not work with GAE.

I´ve had to install setuptools first by downloading the version at:
https://pypi.python.org/pypi/setuptools#downloads
-> 
https://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md
5=fe1f997bc722265116870bc7919059ea

and then executing:

sudo sh setuptools-0.6c11-py2.7.egg
sudo easy_install-2.7 -U pyobjc

Which now fixed it for me.

Original comment by tho...@colldo.com on 24 Mar 2013 at 7:41

GoogleCodeExporter commented 8 years ago
I have the same issue now running under Python 2.7 and GAE under Windows 7, 
using webapp2. When I used the olde webapp and an earlier version of GAE, I did 
not have this problem. Other frameworks such as Webware for Python gives you 
the option to specify "DEBUG" mode so no code is cached, any changes will be 
detected when you reload a page. Why can't GAE do something simple like this?

Original comment by h...@mondoaccess.com on 6 Aug 2015 at 12:23