I have recently updated the Requests package for Python (I also installed WireShark around the same time, but I'm not sure if that's relevant). Since doing this, whenever I try and execute a Python file from the command line that imports the Requests library, I receive a pop up on screen stating:
"Cannot locate the Microsoft Visual FoxPro support library".
If I click OK on the prompt, the file executes as normal. I suspect that this is causing problems for my scheduled tasks that import Requests, as they have stopped running to completion since this issue has come about.
I used to have a FoxPro database installed on the machine; that's the only time I've ever even heard of Visual FoxPro. Apart from that, I have no idea why this has started showing up. If anybody knows why this might be happening and/or how I can get it to stop, it would be great to hear some suggestions. I'm happy to provide more details if necessary. Thank you.
EDIT: I've been able to stop the pop up message from appearing and get my scheduled tasks working by rolling back Requests to an older version. It would still be ideal if anyone could suggest what might be going on with the latest version that would cause the behavior that I described.
The message above is caused by a Foxpro application not being able to locate its correct runtime libraries.
The below link will provide an installer for all of the Visual Foxpro runtime libraries. Just download the correct runtime installer and install the files to your PC to correct the problem.
http://www.foxpert.com/download/runtime.html
Related
I have a problem with one of the build-in python extensions.
After closing Visual Studio Code a new task starts, which takes up a considerable amount of processing power.
I have confirmed it to be related with the python vscode extension, as the problem does not occur after I uninstall it.
According to the info found in the official vscode-python repository it is a recent feature.
Has someone encountered a similar problem or could someone give me a hint on how to further inspect this problem ?
I am trying to run an embedded python application which runs well on desktop computers but on a laptop it is giving errors.
Initial error was:
The program can't start because api-ms-win-core-timezone-l1-1-0.dll is
missing from your computer.
On installing above, it gives error that api-ms-win-core-file-l2-1-0.dll is missing.
How far this will go? What is the problem and how can this be solved? Thanks for your help.
The problem is that the developers have used some version of C++ to create their programs and the programs require some runtime files (Dynamic Linked Libraries) to be present in order to install/run and the developers do not include those files with their installation (why not?) and the websites for the programs often do not list the prerequisites and requirements of what you need to have installed for their programs to work.
Read more here:
https://answers.microsoft.com/en-us/windows/forum/windows_7-performance/missing-api-ms-win-core-timezone-i1-1-0dll/3754703c-241c-451a-a9b6-e690399fc83e
Try installing the missing files.
https://www.microsoft.com/en-us/download/details.aspx?id=48145
https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows
I just installed the Python development workload for VS 2017 but the editor shows none of the red squiggly underlining for syntax errors that I'm used to seeing with C# on VS, nor any entries in the error list. If I try to run the code with errors, it warns me there are errors in the code but does not specify what they until exceptions are thrown from running.
I've tried reinstalling the workload and looked through every available option under the Tools/Options tab but can find nothing about syntax errors. Any fixes detailed for earlier versions of VS no longer seem to apply, what am I missing?
I had exactly the same problem using the simplest project from the VS Python tutorial.
The fix was to upgrade from VS 15.4.1 to 15.5.
Walt
I have had the same thing happen to me. Though this was actually with a C# application. I noticed Visual Studios stopped detecting the errors after adding a few NuGet references and doing some manual modifications of the project files. I noticed that this was only happening on this one project. All the other projects I worked on did not seem to have the same issue.
I was able to get it to start working again by creating a new project, moving my code over, and adding the references back one by one. For this situation, it looked as if a corrupt project file or bad reference was to blame even though the project would compile and run correctly.
Does this issue exist in other programming languages/projects?
when launching Xcode beta 8 on a macOS Sierra beta I'm getting this error:
Loading a plug-in failed.
The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled.
After searching, it seems that the issue is related with python and the new security measures that Apple introduced after XCode Ghost.
I couldn't find a solution, anybody can help?
EDIT
By looking at the Xcode logs, I noticed that it has NOTHING (apparently) to do with Python.
I see a whole bunch of
*Requested but did not find extension point with identifier Xcode.**
errors
I have to say that I also have Xcode 7 installed on my machine.
I had the exact thing happen to me except on High Sierra. I had deleted the old version folders of Python in /System/Library/Frameworks/Python.framework/Versions/, which was a mistake seeing that these are the Apple installed Python files. After trying to launch Xcode, Xcode could no longer access the Python files it needed. Unfortunately I had deleted them and emptied the trash, so the only way I could restore those files was by reinstalling High Sierra.
So if you run into this plugin error and you've messed with Python files, you need to recover those files either by taking them back out of the trash or by reinstalling your operating system (reinstalling doesn't erase the data on your computer, but it will add missing files, such as the Python ones I deleted).
Hope that helps someone in a similar situation.
I've had the similar logs that seemed to have nothing to do with Python, but what ended up working for it is removing python from /Library/Frameworks with help from this answer https://stackoverflow.com/a/3819829/3046504
It was still not working, but then extracting Xcode 9.1 from the xip and launching it triggered some additional installer all worked.
Had the same issue, found the solution over there : https://developer.apple.com/forums/thread/100026
I found the key to a solution here:
https://developer.apple.com/forums/thread/100026
In the Xcode app directory:
/Applications/Xcode.app/Contents/Resources/Packages
there are four packages: CoreTypes.pkg MobileDevice.pkg
MobileDeviceDevelopment.pkg XcodeSystemResources.pkg
I had to open and install all of these packages to fix the Xcode
launch failure. Then Xcode opens normally.
if you were doing something in Python, you may have accidently deleted some files. I had the same problem and I was trying to fix it for a few days. Finally, I found a way how to fix it. Just right click on "Finder app" icon and select "Go to folder..", then paste "/System/Library/Frameworks/". If you have there a file called "Python.framework", just delete it and download new one on my website[link]. Then just restart your Mac. If it works, contact me so I know if it worked. If not, conctact me too so we can figure it out together🙂
I just created an exe with cx_Freeze and proudly handed it over to a co-worker.....and it promptly crashed ("The application was unable to start correctly") I was curious to know if he must have python already installed and ready to go when he runs my exe or if it is something else that I should be worried about. (If that is the case, I will do some more research)
I am using Python 2.7 64 bit, Wxpython, and Cx_Freeze 4.2.7
UPDATE:
So I have found that a download of Python 2.7 DOES indeed fix the problem--but this is not what I really want. I have heard that with the correct options selected in the setup.py script that I can truly create a stand alone--Does ANYONE know about how I could do this? Filesize is no object.
The purpose of cx_Freeze is so that the user doesn't need Python installed. But sometimes there might be some DLL dependencies that aren't sorted out automatically by cx_Freeze. For one example, see my recent question and answer for "ImportError: DLL load failed when importing win32clipboard in application frozen with cx_Freeze".
But if you're getting the message "The application was unable to start correctly", then that sounds as though the problem is some implicit-linking DLL dependency. Try using Dependency Walker to track down which DLL is missing. Let us know your results.
No, he doesn't need to have Python installed - cx_Freeze should copy a Python DLL into the build folder. Make sure that all the files in the build folder are still with the EXE when you run it.
However, it might be necessary for him to install the Microsoft 'Visual C++ redistributable' that Python requires. I don't think cx_Freeze can automatically include that, for legal reasons (but I am not a lawyer, and I'm happy to be proved wrong). The details are in the documentation:
http://cx_freeze.readthedocs.org/en/latest/overview.html#microsoft-visual-c-2008-redistributable-package
Or there may be some other problem with the bundling for your application. I don't know what would cause that error message.