[google-appengine] Re: Sudden import errors in unmodified Python 2.7 applications since the past few hours.

2017-04-11 Thread 'Ram Sagar Mogalasetty' via Google App Engine
HI Team,

I am also facing the same issue while importing the module gspread in 
Google App Engine. 
but gspread module is already installed

rmogalase...@google.com:python-practice-164309:~$ pythonPython 2.7.9 
(default, Jun 29 2016, 13:08:31) [GCC 4.9.2] on linux2Type "help", 
"copyright", "credits" or "license" for more information.>>> import gspread
>>>  

*Issue:-*


Traceback (most recent call last):
  File 
"/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
 line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File 
"/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
 line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
  File 
"/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
 line 85, in LoadObject
obj = __import__(path[0])
  File 
"/base/data/home/apps/s~google.com:python-practice-164309/20170411t174854.400482399619859826/read_file.py",
 line 1, in 
import gspread
ImportError: No module named gspread



Please help me out of this Issue. Thanks in Advance


Regards,
M Ram Sagar


On Tuesday, March 28, 2017 at 3:15:22 PM UTC+5:30, rrk wrote:
>
> Hi,
>
> Anyone else facing sudden ImportError issues with previously working 
> applications in Python 2.7 runtime of Google App Engine?
>
> One such error is given below, which happens when *requests *package is 
> trying to import *netrc*. This code was working fine until today. 
>
> Traceback (most recent call last):
>
>   File 
> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>  
> line 240, in Handle
>
> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>
>   File 
> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>  
> line 299, in _LoadHandler
>
> handler, path, err = LoadObject(self._handler)
>
>   File 
> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>  
> line 85, in LoadObject
>
> obj = __import__(path[0])
>
>   File 
> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/x.py",
>  
> line 36, in 
>
> from yy import *
>
>   File "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/
> yy.py", line 32, in 
>
> import requests
>
>   File 
> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/__init__.py",
>  
> line 52, in 
>
> from . import utils
>
>   File 
> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/utils.py",
>  
> line 19, in 
>
> from netrc import netrc, NetrcParseError
>
>   File 
> "/base/data/home/runtimes/python27_experiment/python27_dist/lib/python2.7/netrc.py",
>  
> line 7, in 
>
> import pwd
>
> ImportError: No module named pwd
>
>
> I have the same application deployed for other customers within their 
> accounts and also in my account, but this error seems to have occurred only 
> for one deployment.
>
> Why is this happening? Does this have something to do with the 
> python27_experiment version, which I believe has been in use since over a 
> month (based on error traces on the internet with this version), but this 
> ImportError seems to have got triggered only today? May be my client's 
> application has been included within the experimental version?
>
> Thanks and regards,
> Raj
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2f0e51e8-69aa-4346-9530-65e26201b38d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Sudden import errors in unmodified Python 2.7 applications since the past few hours.

2017-03-31 Thread 'Nick (Cloud Platform Support)' via Google App Engine
@Richard specifically,

Do you think you could post the details of this patch you apply after each 
upgrade? This sounds like a feature request in the making.

On Thursday, March 30, 2017 at 3:56:03 AM UTC-4, Richard Cheesmar wrote:
>
> Hi, Nick, I've been got the same evening/morning 29th 30th March. Some 
> continuous errors all of the the ImportError: No module named pwd kind.
>
> I get this with the dev environment everytime I upgrade to a new version 
> of the cloud software, but that is solved by white listing pwd in one of 
> the local Google Cloud setting files, can't remember which at the moment.
>
> Never had this on the live environment though.
>
> On Tuesday, March 28, 2017 at 12:45:22 PM UTC+3, rrk wrote:
>>
>> Hi,
>>
>> Anyone else facing sudden ImportError issues with previously working 
>> applications in Python 2.7 runtime of Google App Engine?
>>
>> One such error is given below, which happens when *requests *package is 
>> trying to import *netrc*. This code was working fine until today. 
>>
>> Traceback (most recent call last):
>>
>>   File 
>> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>>  
>> line 240, in Handle
>>
>> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>>
>>   File 
>> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>>  
>> line 299, in _LoadHandler
>>
>> handler, path, err = LoadObject(self._handler)
>>
>>   File 
>> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>>  
>> line 85, in LoadObject
>>
>> obj = __import__(path[0])
>>
>>   File 
>> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/x.py",
>>  
>> line 36, in 
>>
>> from yy import *
>>
>>   File "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/
>> yy.py", line 32, in 
>>
>> import requests
>>
>>   File 
>> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/__init__.py",
>>  
>> line 52, in 
>>
>> from . import utils
>>
>>   File 
>> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/utils.py",
>>  
>> line 19, in 
>>
>> from netrc import netrc, NetrcParseError
>>
>>   File 
>> "/base/data/home/runtimes/python27_experiment/python27_dist/lib/python2.7/netrc.py",
>>  
>> line 7, in 
>>
>> import pwd
>>
>> ImportError: No module named pwd
>>
>>
>> I have the same application deployed for other customers within their 
>> accounts and also in my account, but this error seems to have occurred only 
>> for one deployment.
>>
>> Why is this happening? Does this have something to do with the 
>> python27_experiment version, which I believe has been in use since over 
>> a month (based on error traces on the internet with this version), but this 
>> ImportError seems to have got triggered only today? May be my client's 
>> application has been included within the experimental version?
>>
>> Thanks and regards,
>> Raj
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8c0ffdbc-84e6-4b86-ab29-c816f44b884d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Sudden import errors in unmodified Python 2.7 applications since the past few hours.

2017-03-31 Thread 'Nick (Cloud Platform Support)' via Google App Engine
Hey Folks,
 
The root cause of this issue has been identified and we're in the process 
of rolling out a fix. Please check in to this thread and let us know if 
this issue persists, and email me your project ID at pay...@google.com if 
so.

Cheers,

Nick
Cloud Platform Community Support

On Thursday, March 30, 2017 at 3:56:03 AM UTC-4, Richard Cheesmar wrote:
>
> Hi, Nick, I've been got the same evening/morning 29th 30th March. Some 
> continuous errors all of the the ImportError: No module named pwd kind.
>
> I get this with the dev environment everytime I upgrade to a new version 
> of the cloud software, but that is solved by white listing pwd in one of 
> the local Google Cloud setting files, can't remember which at the moment.
>
> Never had this on the live environment though.
>
> On Tuesday, March 28, 2017 at 12:45:22 PM UTC+3, rrk wrote:
>>
>> Hi,
>>
>> Anyone else facing sudden ImportError issues with previously working 
>> applications in Python 2.7 runtime of Google App Engine?
>>
>> One such error is given below, which happens when *requests *package is 
>> trying to import *netrc*. This code was working fine until today. 
>>
>> Traceback (most recent call last):
>>
>>   File 
>> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>>  
>> line 240, in Handle
>>
>> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>>
>>   File 
>> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>>  
>> line 299, in _LoadHandler
>>
>> handler, path, err = LoadObject(self._handler)
>>
>>   File 
>> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>>  
>> line 85, in LoadObject
>>
>> obj = __import__(path[0])
>>
>>   File 
>> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/x.py",
>>  
>> line 36, in 
>>
>> from yy import *
>>
>>   File "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/
>> yy.py", line 32, in 
>>
>> import requests
>>
>>   File 
>> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/__init__.py",
>>  
>> line 52, in 
>>
>> from . import utils
>>
>>   File 
>> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/utils.py",
>>  
>> line 19, in 
>>
>> from netrc import netrc, NetrcParseError
>>
>>   File 
>> "/base/data/home/runtimes/python27_experiment/python27_dist/lib/python2.7/netrc.py",
>>  
>> line 7, in 
>>
>> import pwd
>>
>> ImportError: No module named pwd
>>
>>
>> I have the same application deployed for other customers within their 
>> accounts and also in my account, but this error seems to have occurred only 
>> for one deployment.
>>
>> Why is this happening? Does this have something to do with the 
>> python27_experiment version, which I believe has been in use since over 
>> a month (based on error traces on the internet with this version), but this 
>> ImportError seems to have got triggered only today? May be my client's 
>> application has been included within the experimental version?
>>
>> Thanks and regards,
>> Raj
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/85b701df-2316-4532-bab7-1ad9bf9846fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Sudden import errors in unmodified Python 2.7 applications since the past few hours.

2017-03-30 Thread Richard Cheesmar
Hi, Nick, I've been got the same evening/morning 29th 30th March. Some 
continuous errors all of the the ImportError: No module named pwd kind.

I get this with the dev environment everytime I upgrade to a new version of 
the cloud software, but that is solved by white listing pwd in one of the 
local Google Cloud setting files, can't remember which at the moment.

Never had this on the live environment though.

On Tuesday, March 28, 2017 at 12:45:22 PM UTC+3, rrk wrote:
>
> Hi,
>
> Anyone else facing sudden ImportError issues with previously working 
> applications in Python 2.7 runtime of Google App Engine?
>
> One such error is given below, which happens when *requests *package is 
> trying to import *netrc*. This code was working fine until today. 
>
> Traceback (most recent call last):
>
>   File 
> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>  
> line 240, in Handle
>
> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>
>   File 
> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>  
> line 299, in _LoadHandler
>
> handler, path, err = LoadObject(self._handler)
>
>   File 
> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>  
> line 85, in LoadObject
>
> obj = __import__(path[0])
>
>   File 
> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/x.py",
>  
> line 36, in 
>
> from yy import *
>
>   File "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/
> yy.py", line 32, in 
>
> import requests
>
>   File 
> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/__init__.py",
>  
> line 52, in 
>
> from . import utils
>
>   File 
> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/utils.py",
>  
> line 19, in 
>
> from netrc import netrc, NetrcParseError
>
>   File 
> "/base/data/home/runtimes/python27_experiment/python27_dist/lib/python2.7/netrc.py",
>  
> line 7, in 
>
> import pwd
>
> ImportError: No module named pwd
>
>
> I have the same application deployed for other customers within their 
> accounts and also in my account, but this error seems to have occurred only 
> for one deployment.
>
> Why is this happening? Does this have something to do with the 
> python27_experiment version, which I believe has been in use since over a 
> month (based on error traces on the internet with this version), but this 
> ImportError seems to have got triggered only today? May be my client's 
> application has been included within the experimental version?
>
> Thanks and regards,
> Raj
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/37b4902b-dd31-4fb1-af77-f58dc65b1317%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Sudden import errors in unmodified Python 2.7 applications since the past few hours.

2017-03-29 Thread 'Nick (Cloud Platform Support)' via Google App Engine
We're currently looking into the possible causes for this behaviour and 
hope to be able to update this thread shortly. Thanks for your patience!

On Wednesday, March 29, 2017 at 10:47:26 AM UTC-4, Nick (Cloud Platform 
Support) wrote:
>
> Hey Dima,
>
> I've sent you an email from esupp...@google.com as well, as Raj has not 
> responded to the initial email. Generally, something like this should be 
> posted to the Public Issue Tracker  if 
> you've determined that it's unlikely to be resolvable or a consequence of 
> your own code. 
>
> Cheers,
>
> Nick
> Cloud Platform Community Support
>
> On Wednesday, March 29, 2017 at 8:49:12 AM UTC-4, Dima Gimburg wrote:
>>
>> Hi Raj, did you manage to fix this issue?
>>
>> On Tuesday, March 28, 2017 at 9:45:22 AM UTC, rrk wrote:
>>>
>>> Hi,
>>>
>>> Anyone else facing sudden ImportError issues with previously working 
>>> applications in Python 2.7 runtime of Google App Engine?
>>>
>>> One such error is given below, which happens when *requests *package is 
>>> trying to import *netrc*. This code was working fine until today. 
>>>
>>> Traceback (most recent call last):
>>>
>>>   File 
>>> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>>>  
>>> line 240, in Handle
>>>
>>> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>>>
>>>   File 
>>> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>>>  
>>> line 299, in _LoadHandler
>>>
>>> handler, path, err = LoadObject(self._handler)
>>>
>>>   File 
>>> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>>>  
>>> line 85, in LoadObject
>>>
>>> obj = __import__(path[0])
>>>
>>>   File 
>>> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/x.py",
>>>  
>>> line 36, in 
>>>
>>> from yy import *
>>>
>>>   File "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/
>>> yy.py", line 32, in 
>>>
>>> import requests
>>>
>>>   File 
>>> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/__init__.py",
>>>  
>>> line 52, in 
>>>
>>> from . import utils
>>>
>>>   File 
>>> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/utils.py",
>>>  
>>> line 19, in 
>>>
>>> from netrc import netrc, NetrcParseError
>>>
>>>   File 
>>> "/base/data/home/runtimes/python27_experiment/python27_dist/lib/python2.7/netrc.py",
>>>  
>>> line 7, in 
>>>
>>> import pwd
>>>
>>> ImportError: No module named pwd
>>>
>>>
>>> I have the same application deployed for other customers within their 
>>> accounts and also in my account, but this error seems to have occurred only 
>>> for one deployment.
>>>
>>> Why is this happening? Does this have something to do with the 
>>> python27_experiment version, which I believe has been in use since over 
>>> a month (based on error traces on the internet with this version), but this 
>>> ImportError seems to have got triggered only today? May be my client's 
>>> application has been included within the experimental version?
>>>
>>> Thanks and regards,
>>> Raj
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6b9dce98-1bdf-424f-bf91-7ebacece40ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Sudden import errors in unmodified Python 2.7 applications since the past few hours.

2017-03-29 Thread 'Nick (Cloud Platform Support)' via Google App Engine
Hey Dima,

I've sent you an email from esupp...@google.com as well, as Raj has not 
responded to the initial email. Generally, something like this should be 
posted to the Public Issue Tracker  if 
you've determined that it's unlikely to be resolvable or a consequence of 
your own code. 

Cheers,

Nick
Cloud Platform Community Support

On Wednesday, March 29, 2017 at 8:49:12 AM UTC-4, Dima Gimburg wrote:
>
> Hi Raj, did you manage to fix this issue?
>
> On Tuesday, March 28, 2017 at 9:45:22 AM UTC, rrk wrote:
>>
>> Hi,
>>
>> Anyone else facing sudden ImportError issues with previously working 
>> applications in Python 2.7 runtime of Google App Engine?
>>
>> One such error is given below, which happens when *requests *package is 
>> trying to import *netrc*. This code was working fine until today. 
>>
>> Traceback (most recent call last):
>>
>>   File 
>> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>>  
>> line 240, in Handle
>>
>> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>>
>>   File 
>> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>>  
>> line 299, in _LoadHandler
>>
>> handler, path, err = LoadObject(self._handler)
>>
>>   File 
>> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>>  
>> line 85, in LoadObject
>>
>> obj = __import__(path[0])
>>
>>   File 
>> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/x.py",
>>  
>> line 36, in 
>>
>> from yy import *
>>
>>   File "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/
>> yy.py", line 32, in 
>>
>> import requests
>>
>>   File 
>> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/__init__.py",
>>  
>> line 52, in 
>>
>> from . import utils
>>
>>   File 
>> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/utils.py",
>>  
>> line 19, in 
>>
>> from netrc import netrc, NetrcParseError
>>
>>   File 
>> "/base/data/home/runtimes/python27_experiment/python27_dist/lib/python2.7/netrc.py",
>>  
>> line 7, in 
>>
>> import pwd
>>
>> ImportError: No module named pwd
>>
>>
>> I have the same application deployed for other customers within their 
>> accounts and also in my account, but this error seems to have occurred only 
>> for one deployment.
>>
>> Why is this happening? Does this have something to do with the 
>> python27_experiment version, which I believe has been in use since over 
>> a month (based on error traces on the internet with this version), but this 
>> ImportError seems to have got triggered only today? May be my client's 
>> application has been included within the experimental version?
>>
>> Thanks and regards,
>> Raj
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/80b3c3c3-7069-4c2f-9a99-75f6fb70565d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Sudden import errors in unmodified Python 2.7 applications since the past few hours.

2017-03-29 Thread Dima Gimburg
Hello Nick, we are facing same issue on our application. Can you please 
contact me as well? thanks.

On Tuesday, March 28, 2017 at 6:01:26 PM UTC, Nick (Cloud Platform Support) 
wrote:
>
> Hey Raj,
>
> This should be posted to the Public Issue Tracker 
> , since it appears to be an issue on the 
> platform, rather than this forum which is meant for general discussion on 
> the platform and services, design patterns. 
>
> I've sent you an email from esup...@google.com  to request 
> your project ID so we can take a look at this. 
>
> Cheers,
>
> Nick
> Cloud Platform Community Support
>
> On Tuesday, March 28, 2017 at 5:45:22 AM UTC-4, rrk wrote:
>>
>> Hi,
>>
>> Anyone else facing sudden ImportError issues with previously working 
>> applications in Python 2.7 runtime of Google App Engine?
>>
>> One such error is given below, which happens when *requests *package is 
>> trying to import *netrc*. This code was working fine until today. 
>>
>> Traceback (most recent call last):
>>
>>   File 
>> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>>  
>> line 240, in Handle
>>
>> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>>
>>   File 
>> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>>  
>> line 299, in _LoadHandler
>>
>> handler, path, err = LoadObject(self._handler)
>>
>>   File 
>> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>>  
>> line 85, in LoadObject
>>
>> obj = __import__(path[0])
>>
>>   File 
>> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/x.py",
>>  
>> line 36, in 
>>
>> from yy import *
>>
>>   File "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/
>> yy.py", line 32, in 
>>
>> import requests
>>
>>   File 
>> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/__init__.py",
>>  
>> line 52, in 
>>
>> from . import utils
>>
>>   File 
>> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/utils.py",
>>  
>> line 19, in 
>>
>> from netrc import netrc, NetrcParseError
>>
>>   File 
>> "/base/data/home/runtimes/python27_experiment/python27_dist/lib/python2.7/netrc.py",
>>  
>> line 7, in 
>>
>> import pwd
>>
>> ImportError: No module named pwd
>>
>>
>> I have the same application deployed for other customers within their 
>> accounts and also in my account, but this error seems to have occurred only 
>> for one deployment.
>>
>> Why is this happening? Does this have something to do with the 
>> python27_experiment version, which I believe has been in use since over 
>> a month (based on error traces on the internet with this version), but this 
>> ImportError seems to have got triggered only today? May be my client's 
>> application has been included within the experimental version?
>>
>> Thanks and regards,
>> Raj
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/694fc460-df52-4e66-972e-f69b4597045c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Sudden import errors in unmodified Python 2.7 applications since the past few hours.

2017-03-29 Thread Dima Gimburg
Hi Raj, did you manage to fix this issue?

On Tuesday, March 28, 2017 at 9:45:22 AM UTC, rrk wrote:
>
> Hi,
>
> Anyone else facing sudden ImportError issues with previously working 
> applications in Python 2.7 runtime of Google App Engine?
>
> One such error is given below, which happens when *requests *package is 
> trying to import *netrc*. This code was working fine until today. 
>
> Traceback (most recent call last):
>
>   File 
> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>  
> line 240, in Handle
>
> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>
>   File 
> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>  
> line 299, in _LoadHandler
>
> handler, path, err = LoadObject(self._handler)
>
>   File 
> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>  
> line 85, in LoadObject
>
> obj = __import__(path[0])
>
>   File 
> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/x.py",
>  
> line 36, in 
>
> from yy import *
>
>   File "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/
> yy.py", line 32, in 
>
> import requests
>
>   File 
> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/__init__.py",
>  
> line 52, in 
>
> from . import utils
>
>   File 
> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/utils.py",
>  
> line 19, in 
>
> from netrc import netrc, NetrcParseError
>
>   File 
> "/base/data/home/runtimes/python27_experiment/python27_dist/lib/python2.7/netrc.py",
>  
> line 7, in 
>
> import pwd
>
> ImportError: No module named pwd
>
>
> I have the same application deployed for other customers within their 
> accounts and also in my account, but this error seems to have occurred only 
> for one deployment.
>
> Why is this happening? Does this have something to do with the 
> python27_experiment version, which I believe has been in use since over a 
> month (based on error traces on the internet with this version), but this 
> ImportError seems to have got triggered only today? May be my client's 
> application has been included within the experimental version?
>
> Thanks and regards,
> Raj
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/bd3a9594-ca6c-45cb-8404-dd9d8c211ba5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Sudden import errors in unmodified Python 2.7 applications since the past few hours.

2017-03-28 Thread 'Nick (Cloud Platform Support)' via Google App Engine
Hey Raj,

This should be posted to the Public Issue Tracker 
, since it appears to be an issue on the 
platform, rather than this forum which is meant for general discussion on 
the platform and services, design patterns. 

I've sent you an email from esupp...@google.com to request your project ID 
so we can take a look at this. 

Cheers,

Nick
Cloud Platform Community Support

On Tuesday, March 28, 2017 at 5:45:22 AM UTC-4, rrk wrote:
>
> Hi,
>
> Anyone else facing sudden ImportError issues with previously working 
> applications in Python 2.7 runtime of Google App Engine?
>
> One such error is given below, which happens when *requests *package is 
> trying to import *netrc*. This code was working fine until today. 
>
> Traceback (most recent call last):
>
>   File 
> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>  
> line 240, in Handle
>
> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>
>   File 
> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>  
> line 299, in _LoadHandler
>
> handler, path, err = LoadObject(self._handler)
>
>   File 
> "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
>  
> line 85, in LoadObject
>
> obj = __import__(path[0])
>
>   File 
> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/x.py",
>  
> line 36, in 
>
> from yy import *
>
>   File "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/
> yy.py", line 32, in 
>
> import requests
>
>   File 
> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/__init__.py",
>  
> line 52, in 
>
> from . import utils
>
>   File 
> "/base/data/home/apps/s~app-id-removed/p31-b.391085029481971487/requests/utils.py",
>  
> line 19, in 
>
> from netrc import netrc, NetrcParseError
>
>   File 
> "/base/data/home/runtimes/python27_experiment/python27_dist/lib/python2.7/netrc.py",
>  
> line 7, in 
>
> import pwd
>
> ImportError: No module named pwd
>
>
> I have the same application deployed for other customers within their 
> accounts and also in my account, but this error seems to have occurred only 
> for one deployment.
>
> Why is this happening? Does this have something to do with the 
> python27_experiment version, which I believe has been in use since over a 
> month (based on error traces on the internet with this version), but this 
> ImportError seems to have got triggered only today? May be my client's 
> application has been included within the experimental version?
>
> Thanks and regards,
> Raj
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2c623f08-1246-4dac-84e5-b5d21c034206%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.