Cannot launch appengine SDK, even after re-install - python

Today when I attempted to launch the appengine SDK (python) I saw the error "Errors occurred" - see image below. More details:
The log file referenced in the error message does not exist at that location
I tried uninstalling the SDK entirely, and re-installing 1.9.13.msi (python)
It's on Windows 7, 74 Pro, python 2.7
I tried renaming the app files at %APPDATA%/local/temp/appengine.*
I'd been using app engine fine for weeks on this machine. Yesterday my machine failed to go to sleep properly, as it often does. At power up it booted into a new/clean Windows - ie. it crashed and lost all its state. (Warning dont buy a Thinkpad T440s for Windows until they have this fixed..). I suspect that something was corrupted when the machine crashed.
I tried restarting Windows, of course ;)
Any ideas on how to fix this?

Found the answer here: https://groups.google.com/forum/#!msg/google-appengine/Uphb04hV2tg/K6vL4osY_xgJ
I renamed the file 'google_appengine_launcher.ini' at users/[my profile]/Goolge

Related

ConnectionAbortedError: [WinError 10053] using socket and rsa encryption with pycryptodome [duplicate]

[2011-04-11 13:27:36 - ddmlib]An established connection was aborted by the software in your host machine
java.io.IOException: An established connection was aborted by the software in your host machine
at sun.nio.ch.SocketDispatcher.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(Unknown Source)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.write(Unknown Source)
at sun.nio.ch.SocketChannelImpl.write(Unknown Source)
at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213)
at com.android.ddmlib.Client.sendAndConsume(Client.java:573)
at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:349)
at com.android.ddmlib.Client.requestAllocationStatus(Client.java:419)
at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:840)
at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:808)
at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:767)
at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:635)
at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:42)
at com.android.ddmlib.DeviceMonitor$3.run(DeviceMonitor.java:563)
This problem can be simply solved by closing Eclipse and restarting it. Eclipse sometimes fails to establish a connection with the Emulator, so this can happen in some cases.
Checkout there might be two instances of Eclipse are pointing to same Android SDK...just keep one instance of Eclipse and try again...that's why you are getting Exception as "established connection was aborted by the software in your host machine"...go in details of android adb(Android Debug Bridge) you will get it...
I was getting these errors too and was stumped.
After reading and trying the two answers above, I was still getting the error.
However,I checked the processes tab of Task Manager to find a rogue copy of 'eclipse.exe *32' that the UI didn' t show as running. I guess this should have been obvious as the error does suggest that the reason the emulator/phone cannot connect is because it's already established a connection with the second copy.
Long story short, make sure via Task Manager that no other Eclipse instances are running before resorting to a PC restart!
If you develop in multiple IDE's or other programs that connect to AVD you should try closing them too.
Netbeans also can cause conflicts with eclipse if you set it up for NBAndroid.
I had the problem with multiple IDE. Closing Eclipse, killing from task manager or restarting didnt help. Just deleted the AVD and created it again.
SOLUTION :-
I was getting the same error as I was opening two eclipse window, so I close one eclipse window and run the app again. You will not get the error.
restart(close and start) the eclipse again if you have open only one eclipse window.
This problem may occur if you have two devices connected to the computer at the same time. Adb does not support reaching both devices via command/console. So, if you debug your app after connecting and disconnecting the second device you will most probably have this problem. One solution might be restarting adb and/or eclipse if necessary. It can be quite annoying sometimes and I am afraid there is no other solution to that.
This problem may also occur when you are opening Android Studio and Eclipse at once. Try to close one of them and it might solve your issue.
In My Case, I was running Android Studio and Eclipse at a time. AS and Eclipse were trying to communicate a device/emulator through adb.
Solution:
I closed Android Studio. Then I restarted Eclipse.
Hope this helps you :)
Close the emulator if already opened.
Right click on your project ->Run as -> run configurations -> Run.
After the emulator launched: Right click on your project ->Run as ->android project.
I encountered this issue on my Windows 7 64-bit development machine when running Android Studio 2.1.x and Android Studio 2.2.x side-by-side.
I had deployed an application via the 2.2.x instance the previous day and had left that IDE running. The next day I deployed a different application from the 2.1.x IDE and this is when I encountered the issue.
Shutting down both IDEs and then restarting the 2.1.x IDE resolved the issue for me.
Restarting the eclipse will solve the problem and kill the "adb disconnect" and then "adb kill-server"
On a Windows box, I wanted to avoid reboot and these did not work:
* /android/adt-bundle-windows/sdk/platform-tools/adb kill-server
* /android/adt-bundle-windows/sdk/platform-tools/adb start-server
So what did work to get adb running again without this error was
wait for the TIME WAIT to complete, which took multiple minutes. You can view the state of the ports and watch when to restart the debugger with this command: "PortQryV2/PortQry.exe -local" This tools is downloaded here: http://support.microsoft.com/?id=832919
force closing ports with "netsh int tcp reset"
The only thing that worked for me (under windows) was to reopen the IDE as administrator. All worked smoothly after that.
I solved this problem by closing Eclipse and restarting it again. Eclipse sometimes fails to establish a connection with the Emulator/device, so this can happen sometimes.
Running Eclipse Luna and using WifiADB app on my phone I started getting this error when Running my app from Eclipse. Oddly, in Indigo (I installed Luna last night) it was working fine.
The problem for me was I had the phone connected to the PC to charge it, and even when running a .bat script to kill ADB it appeared that a second instance was started when Run. Plugging the phone into the monitor to charge when debugging over wifi solved it. I need to debug on wifi sometimes to test my app stopping/starting on power state change.
Of course it reasonable to assume (highly likely) I've just not set Luna up the same.
This problem appear if two software use same port
generally Android studio use the port 5037
try to close the port by cmd according to your operating system
then reboot your Android studio or your Eclipse
I was having this problem.
Things I tried:
Restart Eclipse
Restart Eclipse & Kill adb as mentioned here.
Restart Machine & Open Eclipse
This is what worked for me
Powered off (pulled plug) my android device, Restart Machine, Power
on android device.
Hope this helps someone!
Close Eclipse
Open Task Manager and kill adb.exe
Start Eclipse
It should work.

An error ocurred while starting the kernel in python spyder

I have a long-lived WebSocket connection for a live trading application with python. I got the following error in spyder after 4 days of working.
An error ocurred while starting the kernel
No error (bundled\zeromq\src\ip.cpp:629)
I use a Microsoft Windows 365 cloud PC. Windows 10 has been installed on this PC cloud. Does anyone know what is the problem? What should I do to prevent such kinds of errors?

Making a file executable on a by the work place locked Mac

I have a Macbook pro that I have received from work. I want to run my webscraper with selenium. However the moment I call the webscraper from my Python code I get the following errors:
In a window: “chromedriver” cannot be opened because the developer cannot be verified.
macOS cannot verify that this app is free from malware.
Chrome downloaded this file today at 09:24 from chromedriver.storage.googleapis.com
In the terminal: selenium.common.exceptions.WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: -9
I have already:
Moved the file (chromedriver executable) to different directories (username/bin, usr/bin, usr/local/bin) that are in my PATH env.
Tried to unlock execution via mac interface via the instructions in this link: https://support.apple.com/en-us/HT202491
Changed the file characteristics with "sudo chmod 777 chromedriver"
Contacted my work ICT department. They don't want to remove the lock.
Is there a way to work around this lock? Help is very much appreciated.
Maybe you can find a vulnerability in mac or the softwares that are already installed in your mac. check cvedetails.com, any other website like that is fine, they synchronize their database.
But before doing so, you should know that this is policy is forced with your network admin. It means there is an agent already installed on your mac that is reporting the current status of mac to admin. If you break it then it will report it. You might loose your job.

Django manage.py runserver command freezing on OSX

I have a few different systems that I use for development of a Django project. The main being Linux, then Windows, and then Mac...all systems implement development using Pycharm
Up until about a week ago I was able to develop my Django project on Mac just fine, I could run the server and check updates as usual, however, for some reason I cannot seem to figure out, the terminal just freezes for about 5 minutes when I run:
python3 manage.py runserver 8000
The server still starts after that 5 minutes but the startup time is quite literally awful, and I do not know what to look at to figure out where the issue is.
I have not changed my code between work and home, just pulled directly from Git and I have the same issues. On my Windows System at home the Django app also runs within a few seconds of starting the server, as does the Linux system at work, so it seems to be only happening on OSX.
Again, I am using Pycharm, but even if I manually enter the project directory and run the server, the startup time is slow
Has anybody run into issues like this, or where can I look to try and find the cause of the error?

python on heroku. Get SIGHUP error

On working through HEROKU's guide to getting Python app to run on HEROKU and one first creates a hello world program ostensibly using python and flask and runs it locally using Foreman. I get an 'unsupported signal SIGHUP' from Ruby/Gems/foreman/engine. I am Running Win7. Anybody else hit this problem or have any ideas ? thanks.
If you are running locally, you can also just run the flask app from the command line using python, skipping Foreman altogether. This is how I run locally on my Windows 7 machines.
This is related to a known issue on Win7: https://github.com/ddollar/foreman/pull/219
Heroku just released a new version of the Foreman gem (v0.48) that resolves this issue. Thanks for your input.

Categories