[google-appengine] Re: Windows 7 - can't run appengine sdk
Ok, I've installed my old 1.1.7 on a different folder and it works. So this is a 1.1.9 issue. On Mar 6, 11:53 am, Chen Harel wrote: > Reinstalling didn't help, > Could this be caused by a Python issue? > > On Mar 6, 10:59 am, Chen Harel wrote: > > > > > Hi, Here is the full traceback: > > > C:\Users\Chook\Documents\Eclipse\workspace\tvepisodes > > \server>dev_appserver.py ep > > ihourtesting2 > > dir: E:\google_appengine > > script: E:\google_appengine\google\appengine\tools > > name: __main__ > > scipt_name: dev_appserver_main.py > > script_path: E:\google_appengine\google\appengine\tools > > \dev_appserver_main.py > > {'version_tuple': (2, 5), 'SCRIPT_EXCEPTIONS': {'dev_appserver.py': > > 'dev_appserv > > er_main.py'}, '__builtins__': , > > '__file__': 'E: > > \\google_appengine\\dev_appserver.py', 'script_name': > > 'dev_appserver_main.py', ' > > DIR_PATH': 'E:\\google_appengine', 'sys': , > > 'SCRIPT_DIR > > ': 'E:\\google_appengine\\google\\appengine\\tools', 'EXTRA_PATHS': > > ['E:\\google > > _appengine', 'E:\\google_appengine\\lib\\django', 'E:\\google_appengine > > \\lib\\we > > bob', 'E:\\google_appengine\\lib\\yaml\\lib'], '__name__': '__main__', > > 'script_p > > ath': 'E:\\google_appengine\\google\\appengine\\tools\ > > \dev_appserver_main.py', ' > > os': , '__doc__': > > 'Convenience wrappe > > r for starting an appengine tool.'} > > ['E:\\google_appengine\\dev_appserver.py', 'epihourtesting2'] > > Traceback (most recent call last): > > File "E:\google_appengine\dev_appserver.py", line 59, in > > execfile(script_path, globals()) > > File "E:\google_appengine\google\appengine\tools > > \dev_appserver_main.py", line > > 358, in > > sys.exit(main(sys.argv)) > > File "E:\google_appengine\google\appengine\tools > > \dev_appserver_main.py", line > > 316, in main > > server = MakeRpcServer(option_dict) > > File "E:\google_appengine\google\appengine\tools > > \dev_appserver_main.py", line > > 274, in MakeRpcServer > > server = appcfg.HttpRpcServer( > > AttributeError: 'module' object has no attribute 'HttpRpcServer' > > > C:\Users\Chook\Documents\Eclipse\workspace\tvepisodes\server> > > > I will try Reinstalling... > > > On Mar 6, 8:13 am, Sumit Bando wrote: > > > > I have been using 1.1.8 on Windows 7 for a month, so your problem is > > > likely something else. > > > > Good luck. > > > > Sumit > > > > On Mar 5, 3:28 pm, David Wilson wrote: > > > > > Hi Chen, > > > > > Please post the full text of the traceback you received. Have you > > > > tried reinstalling the SDK? Do you by any chance have a module called > > > > "appengine_rpc" anywhere in your application, or sys.path? > > > > > David. > > > > > 2009/3/5 Chen Harel : > > > > > > AttributeError: 'module' object has no attribute 'HttpRpcServer' > > > > > > I'm getting this error message while trying dev_appserver.py on a > > > > > project that is working in vista > > > > > (Although in vista I used 1.1.7 and now in Windows 7 I use 1.19) > > > > > Python is 2.5.4 x64 > > > > > > Please assist, what can cause this error > > > > > -- > > > > It is better to be wrong than to be vague. > > > > — Freeman Dyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Windows 7 - can't run appengine sdk
Reinstalling didn't help, Could this be caused by a Python issue? On Mar 6, 10:59 am, Chen Harel wrote: > Hi, Here is the full traceback: > > C:\Users\Chook\Documents\Eclipse\workspace\tvepisodes > \server>dev_appserver.py ep > ihourtesting2 > dir: E:\google_appengine > script: E:\google_appengine\google\appengine\tools > name: __main__ > scipt_name: dev_appserver_main.py > script_path: E:\google_appengine\google\appengine\tools > \dev_appserver_main.py > {'version_tuple': (2, 5), 'SCRIPT_EXCEPTIONS': {'dev_appserver.py': > 'dev_appserv > er_main.py'}, '__builtins__': , > '__file__': 'E: > \\google_appengine\\dev_appserver.py', 'script_name': > 'dev_appserver_main.py', ' > DIR_PATH': 'E:\\google_appengine', 'sys': , > 'SCRIPT_DIR > ': 'E:\\google_appengine\\google\\appengine\\tools', 'EXTRA_PATHS': > ['E:\\google > _appengine', 'E:\\google_appengine\\lib\\django', 'E:\\google_appengine > \\lib\\we > bob', 'E:\\google_appengine\\lib\\yaml\\lib'], '__name__': '__main__', > 'script_p > ath': 'E:\\google_appengine\\google\\appengine\\tools\ > \dev_appserver_main.py', ' > os': , '__doc__': > 'Convenience wrappe > r for starting an appengine tool.'} > ['E:\\google_appengine\\dev_appserver.py', 'epihourtesting2'] > Traceback (most recent call last): > File "E:\google_appengine\dev_appserver.py", line 59, in > execfile(script_path, globals()) > File "E:\google_appengine\google\appengine\tools > \dev_appserver_main.py", line > 358, in > sys.exit(main(sys.argv)) > File "E:\google_appengine\google\appengine\tools > \dev_appserver_main.py", line > 316, in main > server = MakeRpcServer(option_dict) > File "E:\google_appengine\google\appengine\tools > \dev_appserver_main.py", line > 274, in MakeRpcServer > server = appcfg.HttpRpcServer( > AttributeError: 'module' object has no attribute 'HttpRpcServer' > > C:\Users\Chook\Documents\Eclipse\workspace\tvepisodes\server> > > I will try Reinstalling... > > On Mar 6, 8:13 am, Sumit Bando wrote: > > > > > I have been using 1.1.8 on Windows 7 for a month, so your problem is > > likely something else. > > > Good luck. > > > Sumit > > > On Mar 5, 3:28 pm, David Wilson wrote: > > > > Hi Chen, > > > > Please post the full text of the traceback you received. Have you > > > tried reinstalling the SDK? Do you by any chance have a module called > > > "appengine_rpc" anywhere in your application, or sys.path? > > > > David. > > > > 2009/3/5 Chen Harel : > > > > > AttributeError: 'module' object has no attribute 'HttpRpcServer' > > > > > I'm getting this error message while trying dev_appserver.py on a > > > > project that is working in vista > > > > (Although in vista I used 1.1.7 and now in Windows 7 I use 1.19) > > > > Python is 2.5.4 x64 > > > > > Please assist, what can cause this error > > > > -- > > > It is better to be wrong than to be vague. > > > — Freeman Dyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Windows 7 - can't run appengine sdk
Hi, Here is the full traceback: C:\Users\Chook\Documents\Eclipse\workspace\tvepisodes \server>dev_appserver.py ep ihourtesting2 dir: E:\google_appengine script: E:\google_appengine\google\appengine\tools name: __main__ scipt_name: dev_appserver_main.py script_path: E:\google_appengine\google\appengine\tools \dev_appserver_main.py {'version_tuple': (2, 5), 'SCRIPT_EXCEPTIONS': {'dev_appserver.py': 'dev_appserv er_main.py'}, '__builtins__': , '__file__': 'E: \\google_appengine\\dev_appserver.py', 'script_name': 'dev_appserver_main.py', ' DIR_PATH': 'E:\\google_appengine', 'sys': , 'SCRIPT_DIR ': 'E:\\google_appengine\\google\\appengine\\tools', 'EXTRA_PATHS': ['E:\\google _appengine', 'E:\\google_appengine\\lib\\django', 'E:\\google_appengine \\lib\\we bob', 'E:\\google_appengine\\lib\\yaml\\lib'], '__name__': '__main__', 'script_p ath': 'E:\\google_appengine\\google\\appengine\\tools\ \dev_appserver_main.py', ' os': , '__doc__': 'Convenience wrappe r for starting an appengine tool.'} ['E:\\google_appengine\\dev_appserver.py', 'epihourtesting2'] Traceback (most recent call last): File "E:\google_appengine\dev_appserver.py", line 59, in execfile(script_path, globals()) File "E:\google_appengine\google\appengine\tools \dev_appserver_main.py", line 358, in sys.exit(main(sys.argv)) File "E:\google_appengine\google\appengine\tools \dev_appserver_main.py", line 316, in main server = MakeRpcServer(option_dict) File "E:\google_appengine\google\appengine\tools \dev_appserver_main.py", line 274, in MakeRpcServer server = appcfg.HttpRpcServer( AttributeError: 'module' object has no attribute 'HttpRpcServer' C:\Users\Chook\Documents\Eclipse\workspace\tvepisodes\server> I will try Reinstalling... On Mar 6, 8:13 am, Sumit Bando wrote: > I have been using 1.1.8 on Windows 7 for a month, so your problem is > likely something else. > > Good luck. > > Sumit > > On Mar 5, 3:28 pm, David Wilson wrote: > > > > > Hi Chen, > > > Please post the full text of the traceback you received. Have you > > tried reinstalling the SDK? Do you by any chance have a module called > > "appengine_rpc" anywhere in your application, or sys.path? > > > David. > > > 2009/3/5 Chen Harel : > > > > AttributeError: 'module' object has no attribute 'HttpRpcServer' > > > > I'm getting this error message while trying dev_appserver.py on a > > > project that is working in vista > > > (Although in vista I used 1.1.7 and now in Windows 7 I use 1.19) > > > Python is 2.5.4 x64 > > > > Please assist, what can cause this error > > > -- > > It is better to be wrong than to be vague. > > — Freeman Dyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Windows 7 - can't run appengine sdk
AttributeError: 'module' object has no attribute 'HttpRpcServer' I'm getting this error message while trying dev_appserver.py on a project that is working in vista (Although in vista I used 1.1.7 and now in Windows 7 I use 1.19) Python is 2.5.4 x64 Please assist, what can cause this error --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Entities question
Ok, If I go with number 1, I'm not sure how can I denormalize it to print the CD titles... If I can't "join" on the CD titles them selves... How can I fetch the names of the CDs if the select is SELECT * FROM Ownership WHERE user_id = ? Bill, 10x a lot for your help... On Jan 17, 10:13 am, Bill wrote: > Chen, > > Some differences between using an Ownership model and using a list of > references to CDs in a User entity: > > 1) You can store info associated with Ownership as mentioned in my > previous message. So if you want to print all the CD titles owned by > a user, you could denormalize CD titles and duplicate that information > in Ownership entities. Then, you do a query on Ownership entities > filtering for a specific User and the titles would be fetched. In the > list of references, you'd have to actually retrieve each CD title or > store titles in the single User entity, which leads us to #2... > > 2) There's a cap on number of indexed properties. > Seehttp://groups.google.com/group/google-appengine/browse_thread/thread/... > > I haven't tested this yet, but the cap on indexed properties will > really hamper your ability to have huge reference lists within a User > entity. However, you could pickle/serialize your CD data into a blob > or text property which aren't indexed. > > If you start storing the CD lists as blobs, though, you lose the > ability to do queries like "Show me all users that own CD X" > > On Jan 16, 11:05 pm, Chen Harel wrote: > > > Bill if I use an ownership model, > > How do you fetch all the cds of a user? > > you select on Ownership, then get the tuples with user id / cd id > > Now you need to fetch many cd id from the CD entity.. > > So what's the difference? > > If you store them as a list of IDs in the User, you still have to go > > over the CD and fetch for every ID, > > This still doesn't allow you to properly index your data, does it? > > > On Jan 16, 8:14 pm, Bill wrote: > > > > > I'm not sure I've followed you with whole Ownership model.. > > > > Isn't that a RDBMS approach to the data and not BigTable's? > > > > The two approaches aren't mutually exclusive. In the case of User <-> > > > CD, a User can have thousands or more CDs and a CD could be purchased > > > by millions. Under those circumstances, storing the ownership > > > relationship in a list of references under either User or CD entities > > > will really impact performance. > > > > In Rafe Kaplan's article he says: > > > "Another more important one is that you want to avoid storing overly > > > large lists of keys in a ListProperty." > > > > The straightforward alternative is a separate Ownership model and now > > > there's a separate issue of constructing a transaction that handles > > > updating your genre counter upon a successful Ownership change. > > > > It'll be interesting if someone comes up with another approach, maybe > > > using multiple User entities (under one entity group) that all map to > > > a single user, with each User entity holding a subset of all the CDs > > > and genre counters. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Entities question
Bill if I use an ownership model, How do you fetch all the cds of a user? you select on Ownership, then get the tuples with user id / cd id Now you need to fetch many cd id from the CD entity.. So what's the difference? If you store them as a list of IDs in the User, you still have to go over the CD and fetch for every ID, This still doesn't allow you to properly index your data, does it? On Jan 16, 8:14 pm, Bill wrote: > > I'm not sure I've followed you with whole Ownership model.. > > Isn't that a RDBMS approach to the data and not BigTable's? > > The two approaches aren't mutually exclusive. In the case of User <-> > CD, a User can have thousands or more CDs and a CD could be purchased > by millions. Under those circumstances, storing the ownership > relationship in a list of references under either User or CD entities > will really impact performance. > > In Rafe Kaplan's article he says: > "Another more important one is that you want to avoid storing overly > large lists of keys in a ListProperty." > > The straightforward alternative is a separate Ownership model and now > there's a separate issue of constructing a transaction that handles > updating your genre counter upon a successful Ownership change. > > It'll be interesting if someone comes up with another approach, maybe > using multiple User entities (under one entity group) that all map to > a single user, with each User entity holding a subset of all the CDs > and genre counters. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Entities question
Hi, I'm not sure I've followed you with whole Ownership model.. Isn't that a RDBMS approach to the data and not BigTable's? Regarding the genres, they are fixed (53 to be exact) and he can't select new genres that aren't in the predefined list. Regarding the counter entity, this is basically what I have today, Simply that instead of using a ListReference I will save the string 'trance' to a ListStringProperty... So I can get for a cd the tuple: "name:world music 2008 genres:[indy, house, foreign]" On Jan 16, 11:54 am, Bill wrote: > You could do an entity that has 50 genre counters. > > Some thoughts: > > 1) It seems like you can make genre part of a list property in a CD > since each CD will only be a small number of genres. > > 2) I wouldn't use a Reference List for a User entity, because a User > might have thousands of CDs. See Rafe Kaplan's article on modeling > entity relationships (http://code.google.com/appengine/articles/ > modeling.html). I'd model the User <-> CD relationship with a > separate Ownership entity that has key references to a CD and User > entity. You could add additional info into this relationship model, > like whether the Owned CD has been lent to another User. > > 3) Are genres fixed or user-configurable (like a "tag" instead of a > universal genre)? If they are like tags and user-configurable, you > could but the genre list in each Ownership entity. Then if User X > wants to know how many "1980s Top Hits" he owns, you could query the > Ownership entities. You could then memcache the (User, Genre, #CDs > for genre) tuple instead of keeping 50 counters in User and just query > again if needed. > > -Bill > > On Jan 15, 2:23 am, Chen Harel wrote: > > > Hi, In case I want to represent a music album datastore, > > I wish the user can add a cd that he likes (no need for information > > other than cd name and genres) > > Now, at first I looked at it as a RDBMS even in BigTable, meaning I > > had > > User entity > > CD entity > > Genre entity > > With list of refrences keys... > > Now after playing with it, I realized (at least I think so) that I am > > killing my application, > > Since I need to be able to supply the aggregations on "how many R&B > > cd's user XXX has" > > this query can't be optimized (at least with my current knowledge) on > > BigTable, > > So I need to start putting up counters... but I am questioning you > > about the number of properties allowed (or make sense) > > If I support 50 genres, can I simply do an entity that has: > > User: > > id > > name > > cds (list of refrences) > > total_cd_counter > > trance_cd_counter > > house_cd_counter > > rnb_cd_counter > > .. (47 more counters) > > > And when I add / remove a cd for a user, I shall update the > > appropriate counter ... > > This will make query for the favorite genre (which is the main goal :) > > - Sorry I got to it only here) of the application... > > > Please tell me if this will work, and will have sufficient > > performance / scaling capabilities... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Entities question
Hi, In case I want to represent a music album datastore, I wish the user can add a cd that he likes (no need for information other than cd name and genres) Now, at first I looked at it as a RDBMS even in BigTable, meaning I had User entity CD entity Genre entity With list of refrences keys... Now after playing with it, I realized (at least I think so) that I am killing my application, Since I need to be able to supply the aggregations on "how many R&B cd's user XXX has" this query can't be optimized (at least with my current knowledge) on BigTable, So I need to start putting up counters... but I am questioning you about the number of properties allowed (or make sense) If I support 50 genres, can I simply do an entity that has: User: id name cds (list of refrences) total_cd_counter trance_cd_counter house_cd_counter rnb_cd_counter .. (47 more counters) And when I add / remove a cd for a user, I shall update the appropriate counter ... This will make query for the favorite genre (which is the main goal :) - Sorry I got to it only here) of the application... Please tell me if this will work, and will have sufficient performance / scaling capabilities... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] GAE Datastore & OpenSocial
Hi, I am saving information regarding the users of my gadget. I have a procedure where I need to get information about the user friends who are also using my gadget. a. Is there a best practice for this issue? b. I want to aggregate the data, I've read about the counting methods in BigTable, but they seem to work for data that you know from the start.. In case of user friends, it can vary on a daily basis, as well as totally dynamic (I currently retrieve the friends list via the python-client project in Google code)... How can this be done, without iterating through the list and fetching the user entities from the datastore (and even if that's the only way, won't this fetching cause bad performance? c.How common is the use of ListRefrence in BigTable, and is it known to be good? I have a DB model who has only 20 entities... But I like the back reference it creates for me (Instead of implementing a counter for each entity) But after digging and reading about the uses of BigTables I think that the more references you have, less performance you get... Please help, Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] How do you debug?
Does anyone here have a simple way to breakpoint your code? I saw a tutorial for PyDev in Eclipse, but what about simpler IDE such as ActivePython? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: AppEngine GET response headers
10x ! It worked :) On Dec 29, 12:33 am, Alexander Kojevnikov wrote: > You should use the response object: > > def get(self): > self.response.headers['Content-Type'] = 'text/plain' > self.response.out.write('your json') > > Cheers, > Alex > --www.muspy.com > > On Dec 29, 9:19 am, Chen Harel wrote: > > > I'm trying to create a data table in an appengine, and send it back to > > a user. > > The user requests the data table using GET method, and I use > > > class MainPage(webapp.RequestHandler): > > # This function is invoked when a user sends a get request > > def get(self): > > self.response.out.write("...") > > > To give him the response. > > The only problem is, that for visualizations, the tutorial states that > > the response should return: > > print "Content-type: text/plain" > > print > > print data_table.ToJSonResponse(columns_order=("name", "salary", > > "full_time"), > > order_by="salary") > > > (No stuff...) > > > But when I use it, I get the headers spilled into my response. > > > What is the best way to send text/plain response from get request? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] AppEngine GET response headers
I'm trying to create a data table in an appengine, and send it back to a user. The user requests the data table using GET method, and I use class MainPage(webapp.RequestHandler): # This function is invoked when a user sends a get request def get(self): self.response.out.write("...") To give him the response. The only problem is, that for visualizations, the tutorial states that the response should return: print "Content-type: text/plain" print print data_table.ToJSonResponse(columns_order=("name", "salary", "full_time"), order_by="salary") (No stuff...) But when I use it, I get the headers spilled into my response. What is the best way to send text/plain response from get request? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Multithreading in Python/AppEngine
That is interesting stuff... But if the AJAX will take too much time, will I get disconnected from the appEngine? 2) What is the behavior of ajax requests on IE7/FF3? 3) I shouldn't give the client any parsing to do on its own... correct? On Dec 23, 2:11 pm, Matija wrote: > Think of ajax request as one thread and use client(browser) and server > (app engine) as one system for parsing and not as two systems where > you parse only on server side. > > Ajax request is now thread/fiber/'what ever' in some way in Chrome and > in a few years many browsers will act the same. > > On Dec 23, 12:17 pm, Chen Harel wrote: > > > Hmmm... so what do you suggest I do? > > > On Dec 23, 12:53 pm, Alexander Kojevnikov > > wrote: > > > > Fromhttp://code.google.com/appengine/docs/python/sandbox.html: > > > > An App Engine application cannot spawn a sub-process or thread. A web > > > request to an application must be handled in a single process within a > > > few seconds. Processes that take a very long time to respond are > > > terminated to avoid overloading the web server. > > > > On Dec 23, 7:02 pm, Chen Harel wrote: > > > > > Hi, What do you think is the best way to parse many XMLs > > > > concurrently... > > > > I figured threading may be the case, but after reading some Python > > > > articles about it, > > > > I've decided to post this message, and get some feedback from the > > > > community... > > > > > Does someone actually uses threads in Python? > > > > How can you get massive parsing going in the server side? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Multithreading in Python/AppEngine
Hmmm... so what do you suggest I do? On Dec 23, 12:53 pm, Alexander Kojevnikov wrote: > Fromhttp://code.google.com/appengine/docs/python/sandbox.html: > > An App Engine application cannot spawn a sub-process or thread. A web > request to an application must be handled in a single process within a > few seconds. Processes that take a very long time to respond are > terminated to avoid overloading the web server. > > On Dec 23, 7:02 pm, Chen Harel wrote: > > > Hi, What do you think is the best way to parse many XMLs > > concurrently... > > I figured threading may be the case, but after reading some Python > > articles about it, > > I've decided to post this message, and get some feedback from the > > community... > > > Does someone actually uses threads in Python? > > How can you get massive parsing going in the server side? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Use AppEngine on Vista x64
Ok after adding prints to the dev_appserver and dev_appserver_main files, I've come up with the following argv: ['F:\\google_appengine\\dev_appserver.py'] This means, that for some reason that I don't know of, the parameters aren't coming from the command line... Should I install a different version of Python? maybe 2.6? On Dec 23, 10:00 am, Chen Harel wrote: > Ok I'll try, > Did you choose Python x64 although you have a Core 2 duo computer? > > On Dec 23, 2:39 am, Alexander Kojevnikov > wrote: > > > I have no problems running the SDK on Vista x64 with Python 2.5.2 x64. > > > To troubleshot the problem, you can insert print/assert statements > > into the appcfg.py/dev_appserver.py to see which execution path is > > taken. > > > On Dec 23, 9:36 am, Chen Harel wrote: > > > > I'm not sure it's the python that is making the problem, because for > > > instance > > > I'm in c:\apps > > > c:\apps>dev_appserver.py helloworld > > > (helloworld is a folder in c:\apps that contains the app.yaml file) > > > and it still brings me the dev_appserver.py printout (same as help) > > > and saying the Invalid arguments... > > > > yejun wrote: > > > > I have no problem with x86 version. > > > > I have both python and sdk add to system path during installation. > > > > > On Dec 22, 5:29 pm, Chen Harel wrote: > > > > > Hey, I'm on Intel Core 2 Duo, so I've installed the x86... > > > > > > On Dec 22, 10:26 pm, yejun wrote: > > > > > > > Did you install x86 or amd64 python? > > > > > > > On Dec 22, 2:58 pm, Chen Harel wrote: > > > > > > > > Hi, I've installed Python 2.5.2 and AppEngine 1.1.7 on Vista x64 > > > > > > > Ultimate... (Admin user - NO UTC) > > > > > > > both dev_appserver.py and appcfg.py gives me the help screen > > > > > > > (Like no > > > > > > > options were included) every single time.. > > > > > > > Please help me help you help me ... What more information do you > > > > > > > need --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Multithreading in Python/AppEngine
Hi, What do you think is the best way to parse many XMLs concurrently... I figured threading may be the case, but after reading some Python articles about it, I've decided to post this message, and get some feedback from the community... Does someone actually uses threads in Python? How can you get massive parsing going in the server side? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Use AppEngine on Vista x64
Ok I'll try, Did you choose Python x64 although you have a Core 2 duo computer? On Dec 23, 2:39 am, Alexander Kojevnikov wrote: > I have no problems running the SDK on Vista x64 with Python 2.5.2 x64. > > To troubleshot the problem, you can insert print/assert statements > into the appcfg.py/dev_appserver.py to see which execution path is > taken. > > On Dec 23, 9:36 am, Chen Harel wrote: > > > I'm not sure it's the python that is making the problem, because for > > instance > > I'm in c:\apps > > c:\apps>dev_appserver.py helloworld > > (helloworld is a folder in c:\apps that contains the app.yaml file) > > and it still brings me the dev_appserver.py printout (same as help) > > and saying the Invalid arguments... > > > yejun wrote: > > > I have no problem with x86 version. > > > I have both python and sdk add to system path during installation. > > > > On Dec 22, 5:29 pm, Chen Harel wrote: > > > > Hey, I'm on Intel Core 2 Duo, so I've installed the x86... > > > > > On Dec 22, 10:26 pm, yejun wrote: > > > > > > Did you install x86 or amd64 python? > > > > > > On Dec 22, 2:58 pm, Chen Harel wrote: > > > > > > > Hi, I've installed Python 2.5.2 and AppEngine 1.1.7 on Vista x64 > > > > > > Ultimate... (Admin user - NO UTC) > > > > > > both dev_appserver.py and appcfg.py gives me the help screen (Like > > > > > > no > > > > > > options were included) every single time.. > > > > > > Please help me help you help me ... What more information do you > > > > > > need --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Use AppEngine on Vista x64
I'm not sure it's the python that is making the problem, because for instance I'm in c:\apps c:\apps>dev_appserver.py helloworld (helloworld is a folder in c:\apps that contains the app.yaml file) and it still brings me the dev_appserver.py printout (same as help) and saying the Invalid arguments... yejun wrote: > I have no problem with x86 version. > I have both python and sdk add to system path during installation. > > On Dec 22, 5:29�pm, Chen Harel wrote: > > Hey, I'm on Intel Core 2 Duo, so I've installed the x86... > > > > On Dec 22, 10:26�pm, yejun wrote: > > > > > Did you install x86 or amd64 python? > > > > > On Dec 22, 2:58�pm, Chen Harel wrote: > > > > > > Hi, I've installed Python 2.5.2 and AppEngine 1.1.7 on Vista x64 > > > > Ultimate... (Admin user - NO UTC) > > > > both dev_appserver.py and appcfg.py gives me the help screen (Like no > > > > options were included) every single time.. > > > > Please help me help you help me ... What more information do you need --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Use AppEngine on Vista x64
Hey, I'm on Intel Core 2 Duo, so I've installed the x86... On Dec 22, 10:26 pm, yejun wrote: > Did you install x86 or amd64 python? > > On Dec 22, 2:58 pm, Chen Harel wrote: > > > Hi, I've installed Python 2.5.2 and AppEngine 1.1.7 on Vista x64 > > Ultimate... (Admin user - NO UTC) > > both dev_appserver.py and appcfg.py gives me the help screen (Like no > > options were included) every single time.. > > Please help me help you help me ... What more information do you need --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Use AppEngine on Vista x64
Hi, I've installed Python 2.5.2 and AppEngine 1.1.7 on Vista x64 Ultimate... (Admin user - NO UTC) both dev_appserver.py and appcfg.py gives me the help screen (Like no options were included) every single time.. Please help me help you help me ... What more information do you need --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---