PGAdmin 4 won't launch, giving error "The pgAdmin 4 server could not be contacted" - windows-server-2012-r2

I'm getting an error on launching PGadmin4 right after installing "postgresql-12.14-1-windows-x64" on Windows Server 2012R2 Build 9600.
I've tried installing PostgreSQL without pgadmin and installing it separatly after, tried diffrent versions of pgadmin4 non of that seems to help, i'm always getting the same error.
Tried deleting everything from AppData folder of Pgadmin both Local and Roaming, but no result.
Also tried intalling on a diffrent machine with excact same OS - there was a succes on launching PGAdmin.
The PostgreSQL server is running, i can telnet its port from other machine in local network.
Guessing, there is something about the line "File "ssl.py"", because every path before it was full.
Ofc running everything as administrator.
Been punching with this problem for a few days, hoping to get some help with it! Full output, that i'm getting in PGadmin window:
"The pgAdmin 4 server could not be contacted:
pgAdmin Runtime Environment
--------------------------------------------------------
Python Path: "C:\Program Files\PostgreSQL\12\pgAdmin 4\python\python.exe"
Runtime Config File: "C:\Users\<USERNAME>\AppData\Roaming\pgadmin\runtime_config.json"
pgAdmin Config File: "C:\Program Files\PostgreSQL\12\pgAdmin 4\web\config.py"
Webapp Path: "C:\Program Files\PostgreSQL\12\pgAdmin 4\web\pgAdmin4.py"
pgAdmin Command: "C:\Program Files\PostgreSQL\12\pgAdmin 4\python\python.exe -s C:\Program Files\PostgreSQL\12\pgAdmin 4\web\pgAdmin4.py"
Environment:
- ALLUSERSPROFILE: C:\ProgramData
- APPDATA: C:\Users\<USERNAME>\AppData\Roaming
- CHROME_CRASHPAD_PIPE_NAME: \\.\pipe\crashpad_1428_KWJZEMYPAOXYAGDS
- CHROME_RESTART: NW.js|Произошел сбой NW.js. Перезапустить?|LEFT_TO_RIGHT
- CLIENTNAME: DDADMIN
- CommonProgramFiles: C:\Program Files\Common Files
- CommonProgramFiles(x86): C:\Program Files (x86)\Common Files
- CommonProgramW6432: C:\Program Files\Common Files
- COMPUTERNAME: EPS
- ComSpec: C:\Windows\system32\cmd.exe
- FP_NO_HOST_CHECK: NO
- HOMEDRIVE: C:
- HOMEPATH: \Users\<USERNAME>
- LOCALAPPDATA: C:\Users\<USERNAME>\AppData\Local
- LOGONSERVER: \\DC1
- NUMBER_OF_PROCESSORS: 4
- OS: Windows_NT
- Path: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Intel\UCRT\;C:\Program Files\Intel\UCRT\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT
- PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
- PGADMIN_INT_KEY: bacd94c2-cabf-4152-9e40-a3fce8054470
- PGADMIN_INT_PORT: 61917
- PGADMIN_SERVER_MODE: OFF
- PROCESSOR_ARCHITECTURE: AMD64
- PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 158 Stepping 9, GenuineIntel
- PROCESSOR_LEVEL: 6
- PROCESSOR_REVISION: 9e09
- ProgramData: C:\ProgramData
- ProgramFiles: C:\Program Files
- ProgramFiles(x86): C:\Program Files (x86)
- ProgramW6432: C:\Program Files
- PSModulePath: C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\PowerShell\Modules\
- PUBLIC: C:\Users\Public
- SESSIONNAME: RDP-Tcp#7
- SystemDrive: C:
- SystemRoot: C:\Windows
- TEMP: C:\Users\0061~1.DOB\AppData\Local\Temp\2
- TMP: C:\Users\0061~1.DOB\AppData\Local\Temp\2
- USERDNSDOMAIN: <DOMAIN NAME>.LOCAL
- USERDOMAIN: <DOMAIN NAME>
- USERDOMAIN_ROAMINGPROFILE: <DOMAIN NAME>
- USERNAME: <USERNAME>
- USERPROFILE: C:\Users\<USERNAME>
- windir: C:\Windows
--------------------------------------------------------
Total spawn time to start the pgAdmin4 server: 0.014 Sec
Traceback (most recent call last):
File "C:\Program Files\PostgreSQL\12\pgAdmin 4\web\pgAdmin4.py", line 38, in <module>
import config
File "C:\Program Files\PostgreSQL\12\pgAdmin 4\web\config.py", line 25, in <module>
from pgadmin.utils import env, IS_WIN, fs_short_path
File "C:\Program Files\PostgreSQL\12\pgAdmin 4\web\pgadmin\__init__.py", line 24, in <module>
from flask_socketio import SocketIO
File "C:\Program Files\PostgreSQL\12\pgAdmin 4\python\lib\site-packages\flask_socketio\__init__.py", line 21, in <module>
import socketio
File "C:\Program Files\PostgreSQL\12\pgAdmin 4\python\lib\site-packages\socketio\__init__.py", line 3, in <module>
from .client import Client
File "C:\Program Files\PostgreSQL\12\pgAdmin 4\python\lib\site-packages\socketio\client.py", line 7, in <module>
import engineio
File "C:\Program Files\PostgreSQL\12\pgAdmin 4\python\lib\site-packages\engineio\__init__.py", line 3, in <module>
from .client import Client
File "C:\Program Files\PostgreSQL\12\pgAdmin 4\python\lib\site-packages\engineio\client.py", line 6, in <module>
import ssl
File "ssl.py", line 99, in <module>
ImportError: DLL load failed while importing _ssl: �� ������ ��������� ������."

Related

Python : Strange multiprocessing function crash in console

I maintain an experimental tool that still python 2.7 that use a bunch of libraries, such as Gdal, shapely, astropy, OpenCV2, scipy, etc. Everything was fine until the system as changed, so virtual environment has been redone and then I have a problem with multiprocessing function.
The most simplified code to reproduce the behaviour:
import multiprocessing
if __name__ == '__main__':
cpus = multiprocessing.cpu_count()
cpus = cpus - 1
pool = multiprocessing.Pool(processes=cpus)
Result #1 with:
Python : VirEnv 2.7 build
Console : Pycharm PyDev console
Traceback (most recent call last): File "", line 1, in
Traceback (most recent call last): File "", line 1,
in File "C:\Python27\Lib\multiprocessing\forking.py", line
380, in main
prepare(preparation_data) File "C:\Python27\Lib\multiprocessing\forking.py", line 504, in prepare
File "C:\Python27\Lib\multiprocessing\forking.py", line 380, in main
file, path_name, etc = imp.find_module(main_name, dirs) ImportError: No module named input
prepare(preparation_data) File "C:\Python27\Lib\multiprocessing\forking.py", line 504, in prepare
file, path_name, etc = imp.find_module(main_name, dirs) ImportError: No module named input
Why it is looking into "C:\Python27\Lib\multiprocessing\" instead of the VirEnv 2.7 build?
Result #2 with:
Python : VirEnv 2.7 from Anaconda
Console : Pycharm PyDev console
Traceback (most recent call last): File "", line 1, in
File
"C:\Users\_____\AppData\Local\conda\conda\envs\Python_27\lib\multiprocessing\spawn.py",
line 105, in spawn_main
exitcode = _main(fd) File "C:\Users\_____\AppData\Local\conda\conda\envs\Python_27\lib\multiprocessing\spawn.py",
line 114, in _main
prepare(preparation_data) File "C:\Users\_____\AppData\Local\conda\conda\envs\Python_27\lib\multiprocessing\spawn.py",
line 225, in prepare
_fixup_main_from_path(data['init_main_from_path']) File "C:\Users\_____\AppData\Local\conda\conda\envs\Python_27\lib\multiprocessing\spawn.py",
line 277, in _fixup_main_from_path
run_name="mp_main") File "C:\Users\_____\AppData\Local\conda\conda\envs\Python_27\lib\runpy.py",
line 261, in run_path
code, fname = _get_code_from_file(run_name, path_name) File "C:\Users\_____\AppData\Local\conda\conda\envs\Python_27\lib\runpy.py",
line 231, in _get_code_from_file
with open(fname, "rb") as f: OSError: [Errno 22] Invalid argument: 'B:\WorkingSpace\_____\API\'
Result #3 with:
Python : VirEnv 2.7 build
Console : Pycharm terminal
Passed without error
Result #4 with:
Python : VirEnv 2.7 from Anaconda
Console : Pycharm terminal
Passed without error
Result #5 with:
Python : VirEnv 2.7 from Anaconda
Console : Anaconda terminal
Passed without error
So, Pycharm PyDev console seems where only the crash occurs? Why? How to get rid of this?
In addition :
After the console initialization, I have:
B:\WorkingSpace\_____\API\virEnv_Desktop_V2.7\Scripts\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2019.2\helpers\pydev\pydevconsole.py" --mode=client --port=_____
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['B:\\WorkingSpace\\_____\\API', 'B:/WorkingSpace/_____/API'])
PyDev console: starting.
Python 2.7.16 (v2.7.16:413a49145e, Mar 4 2019, 01:37:19) [MSC v.1500 64 bit (AMD64)] on win32
When I pass the simplified code to reproduce the behaviour, the error "ImportError: No module named " occur in the forking.py which is in the path "C:\Python27\Lib\multiprocessing\".
Sys.path are:
'C:\Program Files\JetBrains\PyCharm Community Edition
2019.2\helpers\pydev',
'C:\Program Files\JetBrains\PyCharm Community Edition 2019.2\helpers\third_party\thriftpy',
'C:\Program Files\JetBrains\PyCharm Community Edition 2019.2\helpers\pydev',
'C:\Windows\SYSTEM32\python27.zip',
'B:\WorkingSpace\_____\API\virEnv_Desktop_V2.7\DLLs',
'B:\WorkingSpace\_____\API\virEnv_Desktop_V2.7\lib',
'B:\WorkingSpace\_____\API\virEnv_Desktop_V2.7\lib\plat-win',
'B:\WorkingSpace\_____\API\virEnv_Desktop_V2.7\lib\lib-tk',
'B:\WorkingSpace\_____\API\virEnv_Desktop_V2.7\Scripts',
'C:\Python27\Lib',
'C:\Python27\DLLs',
'C:\Python27\Lib\lib-tk',
'B:\WorkingSpace\_____\API\virEnv_Desktop_V2.7',
'B:\WorkingSpace\_____\API\virEnv_Desktop_V2.7\lib\site-packages',
'B:\WorkingSpace\_____\API',
'B:/WorkingSpace/_____/API'
What happening?

502 Bad Gateway with nginx/1.14.0 (Ubuntu) while deploying django app on app engine

I have successfully deployed my app while following the tutorial on Google cloud platform for deploying django on a standard environment.
I have mapped my custom domain to app engine like six hours back so am not sure whether DNS propagation is not complete AND am nolonger using the default .appspot.com in allowed hosts, I have only my domain.
What could the issue really be? I am also using settings.py and local_settings.py
LOGS after running gcloud app deploy:
UException in thread Thread-17: Traceback (most recent call last):
File "C:\Program Files (x86)\Google\Cloud
SDK\google-cloud-sdk\platform\bundledpython\lib\threading.py", line
801, in __bootstrap_inner
self.run() File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\lib\threading.py", line
754, in run
self.__target(*self.__args, **self.__kwargs) File "C:\Program Files (x86)\Google\Cloud
SDK\google-cloud-sdk\lib\googlecloudsdk\core\console\progress_tracker.py",
line 164, in Ticker
if self.Tick(): File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\console\progress_tracker.py",
line 235, in Tick
self._Print(self._GetSuffix()) File "C:\Program Files (x86)\Google\Cloud
SDK\google-cloud-sdk\lib\googlecloudsdk\core\console\progress_tracker.py",
line 261, in _Print
self._console_output.UpdateConsole() File "C:\Program Files (x86)\Google\Cloud
SDK\google-cloud-sdk\lib\googlecloudsdk\core\console\multiline.py",
line 154, in UpdateConsole
self._UpdateConsole() File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\console\multiline.py",
line 168, in _UpdateConsole
self._messages[self._last_print_index].Print() File "C:\Program Files (x86)\Google\Cloud
SDK\google-cloud-sdk\lib\googlecloudsdk\core\console\multiline.py",
line 281, in Print
self._WriteLine(line) File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\console\multiline.py",
line 331, in _WriteLine
self._stream.write(self._level * INDENTATION_WIDTH * ' ' + line) IOError: [Errno 0] Error
Updating service [default]...done. SException in thread Thread-18:
Traceback (most recent call last): File "C:\Program Files
(x86)\Google\Cloud
SDK\google-cloud-sdk\platform\bundledpython\lib\threading.py", line
801, in __bootstrap_inner
self.run() File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\lib\threading.py", line
754, in run
self.__target(*self.__args, **self.__kwargs) File "C:\Program Files (x86)\Google\Cloud
SDK\google-cloud-sdk\lib\googlecloudsdk\core\console\progress_tracker.py",
line 164, in Ticker
if self.Tick(): File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\console\progress_tracker.py",
line 235, in Tick
self._Print(self._GetSuffix()) File "C:\Program Files (x86)\Google\Cloud
SDK\google-cloud-sdk\lib\googlecloudsdk\core\console\progress_tracker.py",
line 261, in _Print
self._console_output.UpdateConsole() File "C:\Program Files (x86)\Google\Cloud
SDK\google-cloud-sdk\lib\googlecloudsdk\core\console\multiline.py",
line 154, in UpdateConsole
self._UpdateConsole() File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\console\multiline.py",
line 168, in _UpdateConsole
self._messages[self._last_print_index].Print() File "C:\Program Files (x86)\Google\Cloud
SDK\google-cloud-sdk\lib\googlecloudsdk\core\console\multiline.py",
line 281, in Print
self._WriteLine(line) File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\console\multiline.py",
line 331, in _WriteLine
self._stream.write(self._level * INDENTATION_WIDTH * ' ' + line) IOError: [Errno 0] Error
Gunicorn:
Could it also be Gunicorn
NB: Am using app engine for my first time thou experience has been a bad one since morning. Fixing error after error. Tutorials should be improved

Trying to install gRPC python module on Splunk

I am trying to run an external python script "PyClient.py" on Splunk, and it requires the external gRPC module. I installed the gRPC module locally following the quickstart python guide from http://www.grpc.io/docs/quickstart/python.html . The logs generated in the splunkd file are as follows:
06-16-2017 18:20:49.728 +0530 WARN IntrospectionGenerator:resource_usage - RU - Failure executing PDH query, skipping getting iostats data this collection cycle. Status code is -2147481643
06-16-2017 18:20:56.501 +0530 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\Test\bin\pyClient.py"" Traceback (most recent call last):
06-16-2017 18:20:56.501 +0530 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\Test\bin\pyClient.py"" File "C:\Program Files\Splunk\etc\apps\Test\bin\pyClient.py", line 2, in <module>
06-16-2017 18:20:56.501 +0530 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\Test\bin\pyClient.py"" import grpc
06-16-2017 18:20:56.501 +0530 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\Test\bin\pyClient.py"" File "C:\Program Files\Splunk\etc\apps\Test\bin\grpc\__init__.py", line 37, in <module>
06-16-2017 18:20:56.501 +0530 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\Test\bin\pyClient.py"" from grpc._cython import cygrpc as _cygrpc
06-16-2017 18:20:56.501 +0530 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\Test\bin\pyClient.py"" ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
06-16-2017 18:21:06.502 +0530 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\Test\bin\pyClient.py"" Traceback (most recent call last):
06-16-2017 18:21:06.502 +0530 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\Test\bin\pyClient.py"" File "C:\Program Files\Splunk\etc\apps\Test\bin\pyClient.py", line 2, in <module>
06-16-2017 18:21:06.502 +0530 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\Test\bin\pyClient.py"" import grpc
06-16-2017 18:21:06.502 +0530 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\Test\bin\pyClient.py"" File "C:\Program Files\Splunk\etc\apps\Test\bin\grpc\__init__.py", line 37, in <module>
06-16-2017 18:21:06.502 +0530 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\Test\bin\pyClient.py"" from grpc._cython import cygrpc as _cygrpc
06-16-2017 18:21:06.502 +0530 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\Test\bin\pyClient.py"" ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
Does anyone have any suggestions on how to clear this error? Or how to install the external gRPC module on Splunk?
Thanks in advance.
This looks like a 32/64 bit Windows incompatibility.
When installing gRPC, make sure you are explicitly using the Splunk distribution of of Python to pip install grpcio.
C:\Program Files\Splunk\<Python2.7 binary> -m pip install --upgrade pip
C:\Program Files\Splunk\<Python2.7 binary> -m pip install grpcio
I already found the solution. I had to write a wrapper script for my python script which which unset or delete (del) "LD_LIBRARY_PATH" and "PYTHONPATH". For Linux based systems, I also had to unset or delete (del) the "PATH" environment variable.
After following the above steps, Splunk used my local version of Python and the installed modules as well. And it worked. Hope this helps anyone who is trying to use external modules in Splunk but cannot seem to figure out why it does not work. :)

GEOSversion error when installing cartopy on python 2.7 64-bit

I downloaded the .whl file of cartopy from http://www.lfd.uci.edu/~gohlke/pythonlibs/. Using command line of pip install cartopyETC.whl, it says installation successful. But when I test it using import cartopy, I got the following error:
Using python in E:\Program Files Extra\Python27
2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)]
Traceback (most recent call last):
File "C:\Users\KubiK\Desktop\SciPy2013-master\check_install.py", line 58, in <module>
import_version('cartopy')
File "C:\Users\KubiK\Desktop\SciPy2013-master\check_install.py", line 13, in import_version
exec('from %s import __version__' % pkg)
File "<string>", line 1, in <module>
File "E:\Program Files Extra\Python27\lib\site-packages\cartopy\__init__.py", line 24, in <module>
import shapely.speedups
File "E:\Program Files Extra\Python27\lib\site-packages\shapely-1.5.9-py2.7.egg\shapely\speedups\__init__.py", line 3, in <module>
from shapely.geometry import linestring, polygon
File "E:\Program Files Extra\Python27\lib\site-packages\shapely-1.5.9-py2.7.egg\shapely\geometry\__init__.py", line 4, in <module>
from .base import CAP_STYLE, JOIN_STYLE
File "E:\Program Files Extra\Python27\lib\site-packages\shapely-1.5.9-py2.7.egg\shapely\geometry\base.py", line 9, in <module>
from shapely.coords import CoordinateSequence
File "E:\Program Files Extra\Python27\lib\site-packages\shapely-1.5.9-py2.7.egg\shapely\coords.py", line 8, in <module>
from shapely.geos import lgeos
File "E:\Program Files Extra\Python27\lib\site-packages\shapely-1.5.9-py2.7.egg\shapely\geos.py", line 137, in <module>
geos_version_string, geos_version, geos_capi_version = _geos_version()
File "E:\Program Files Extra\Python27\lib\site-packages\shapely-1.5.9-py2.7.egg\shapely\geos.py", line 124, in _geos_version
GEOSversion = _lgeos.GEOSversion
File "E:\Program Files Extra\Python27\lib\ctypes\__init__.py", line 378, in __getattr__
func = self.__getitem__(name)
File "E:\Program Files Extra\Python27\lib\ctypes\__init__.py", line 383, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'GEOSversion' not found
[Finished in 0.4s with exit code 1]
[shell_cmd: python -u "C:\Users\KubiK\Desktop\SciPy2013-master\check_install.py"]
[dir: C:\Users\KubiK\Desktop\SciPy2013-master]
[path: C:\ProgramData\Oracle\Java\javapath;C:\Tcl\bin;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;E:\Program Files Extra\Python27;E:\Program Files Extra\Python27\Scripts;C:\Tcl\bin;E:\Program Files Extra\Calibre2\;E:\Program Files Extra\Python34;E:\Program Files Extra\Python34\Scripts;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.2 & MySQL Utilities 1.5.2 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.2 & MySQL Utilities 1.5.2 1.5\Doctrine extensions for PHP\;E:\Program Files Extra\Git\cmd;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\GDAL;C:\Program Files\Common Files\Microsoft Shared\Windows Live]
I dig much deeper (and longer), and found this page. I uninstalled shapely (pip install shapely) and instead I pip install the shapely's .whl file from http://www.lfd.uci.edu/~gohlke/pythonlibs/. After when I install the .whl file of Cartopy, it seems to solve the problem.

Django-nonrel and GAE - Error - Unexpected attribute 'builtins'

I'm trying to run django-testapp from allbuttonpressed which uses Django-nonrel.
When I run manage.py from django-testapp it gives me an error saying that
C:\Projects\Goog\django-testapp>manage.py
Traceback (most recent call last):
File "C:\Projects\Goog\django-testapp\manage.py", line 4, in <module>
import settings # Assumed to be in the same directory.
File "C:\Projects\Goog\django-testapp\settings.py", line 4, in <module>
from djangoappengine.settings_base import *
File "C:\Projects\Goog\django-testapp\djangoappengine\settings_base.py", line 6, in <module>
setup_env()
File "C:\Projects\Goog\django-testapp\djangoappengine\boot.py", line 64, in setup_env
setup_project()
File "C:\Projects\Goog\django-testapp\djangoappengine\boot.py", line 114, in setup_project
from .utils import have_appserver, on_production_server
File "C:\Projects\Goog\django-testapp\djangoappengine\utils.py", line 12, in <module>
appconfig, unused = dev_appserver.LoadAppConfig(PROJECT_DIR, {})
File "D:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3440, in LoadAppConfig
File "D:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3295, in ReadAppConfig
File "D:\Program Files (x86)\Google\google_appengine\google\appengine\api\appinfo.py", line 444, in LoadSingleAppInfo
File "D:\Program Files (x86)\Google\google_appengine\google\appengine\api\yaml_listener.py", line 218, in Parse
self._HandleEvents(self._GenerateEventParameters(stream, loader_class))
File "D:\Program Files (x86)\Google\google_appengine\google\appengine\api\yaml_listener.py", line 169, in _HandleEvents
raise yaml_errors.EventError(e, event_object)
google.appengine.api.yaml_errors.EventError: Unexpected attribute 'builtins' for object of type <class 'google.appengine.api.appinfo.AppInfoExternal'>.
in "C:\Projects\Goog\django-testapp\app.yaml", line 7, column 1
I'm using latest 1.4 GAE SDK
Anyone knows if this is an issue with the Django-nonrel or something specific to my setup.
app.yaml file:
application: ctst
version: 1
runtime: python
api_version: 1
builtins:
- remote_api: on
inbound_services:
- warmup
handlers:
- url: /_ah/queue/deferred
script: djangoappengine/deferred/handler.py
login: admin
- url: /media/admin
static_dir: django/contrib/admin/media
expiration: '0'
- url: /.*
script: djangoappengine/main/main.py
You have an error in your app.yaml file. Try to reset it and run application.
You're not actually using the latest SDK. Possibly you have multiple SDKs installed, and Django is using a different one. Make sure you update the one in D:\Program Files (x86)\Google\google_appengine to the latest version.
If you have a file called index.yalm and other app.yalm, try delete index.yalm and test it. I have same problem and I've resolved.