I'm working with OpenALPR with Python scripts. The input image from argparse arguments, whenever I run from command prompt, it is giving output and displaying a dailogue box with error
"python has stopped working"
Why it is happening could anyone help?
If try to debug using mcsv2017 it shows
Unhandled exception at 0x00007FF8BC68AA2C (ntdll.dll) in python3.exe:
0xC0000374: A heap has been corrupted (parameters:
0x00007FF8BC6E3180).
I solved the issue: Do not download the current github repository. Use the source code of the released version from here: https://github.com/openalpr/openalpr/releases/
and run python setup.py install in src\bindings\python folder. here you go
Related
I want to run the python package described here: https://github.com/A4Vision/enumerate-markdown/blob/master/README.md
First, I installed python 3.10.4, then I installed pip 22.1, then I used pip to install "enumerate markdown". My terminal shows "Successfully installed enumerate-markdown-1.0.0 mistune-2.0.4
Now I try to run the package. In the terminal I enter the exact text shown in the example:
markdown-enum inputFile.md outputFile.md
However, it shows me an error message:
'markdown-enum' is not recognized as an internal or external command, operable program or batch file.
Even if I try pointing to an actual file (e.g markdown-enum "C:\Users\test.md" outputFile.md) it gives the same error.
I thought it might be something to do with the PATH system variable but I have entered all the paths I can think of:
C:\Users\EISAM\AppData\Local\Programs\Python\Python310
C:\Users\EISAM\AppData\Local\Programs\Python\Python310\Lib
C:\Users\EISAM\AppData\Local\Programs\Python\Python310\Lib\site-packages
C:\Users\EISAM\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip
C:\Users\EISAM\AppData\Local\Programs\Python\Python310\Scripts\
(After adding these paths I restarted the cmd window and tried again but still no joy)
What am I doing wrong?
Thanks
I'm working on a web scraping project using Python. I'm using the requests_html library. My problem is identical to one that someone else had . When I run
r.html.render()
I get an error that says
OSError: [WinError 14001] The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail`.
On the other thread I linked, someone said that the issue is with chromium and that I should reinstall requests & Python. I did a reinstallation of Python (both from VSCode and from the Python website) as well as reinstalling requests. However, I am still receiving this error when trying to run my code. Does anyone have any advice on what I can do?
Go to command prompt as admin and run sxstrace.exe.
sxstrace.exe Trace -logfile:tracefile.etl
run your program until error occurs then go to the cmd window and press Enter key.
Then run
sxstrace.exe Parse -logfile:tracefile.etl -outfile:tracefile.txt
this will output a file into your System32 directory. Find it and post contents of the .txt file here. It should contain information on what is wrong.
I got this error after initially installing python via the Microsoft App store. I uninstalled that instance of python and reinstalled it using an installer from python.org and that resolved the error. There was one error on the very first run of my code when the initial chromium download was triggered by the call to render() but after that it worked.
im new using VS Code, and im not able to get to work a plugin called "Python preview"
Im using Ubuntu 20.04 and VS code 1.46.1.
When i try to "open preview on the side" of any .py file, its tries to open but close suddenly raising always this issue:
"Failed to launch the Python Process, please validate the path 'python'"
I suspect that this might happen with other extensions.
Any idea?
I had the same problem. Follow these steps and it will be OK:
How To Install Anaconda on Ubuntu
reload the vs code
try python preview in vs code
A funny behavior started happening on my Win10 64 machine.
PyDev refuses to initialize a "Console for currently active editor" with the following error message:
Error initializing console. Unexpected error connecting to console.
Failed to recive suitable Hello response from pydevconsole. Last msg
received: Console already exited with value: 1 while waiting for an
answer.
Command Line used: C:\Anaconda\python.exe -u
D:\eclipse\plugins\org.python.pydev_4.5.4.201601292234\pysrc\pydevconsole.py
51249 51250 51249 51250
Environment: USERDOMAIN_ROAMINGPROFILE=... PATH=C:/Program
Files/Java/jre1.8.0_71/bin/server;C:/Program
Files/Java/jre1.8.0_71/bin;C:/Program
Files/Java/jre1.8.0_71/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program...
...
PYTHONPATH=D:\eclipse\plugins\org.python.pydev_4.5.4.201601292234\pysrc\pydev_sitecustomize;D:\CORRECT
PATH TO PYTHON PROJECT IS
HERE;C:\Anaconda\DLLs;C:\Anaconda\lib;C:\Anaconda\lib\lib-tk;C:\Anaconda;C:\Anaconda\lib\site-packages;C:\Anaconda\lib\site-packages\Sphinx-1.3.1-py2.7.egg;C:\Anaconda\lib\site-packages\cryptography-0.9.1-py2.7-win-amd64.egg;C:\Anaconda\lib\site-packages\win32;C:\Anaconda\lib\site-packages\win32\lib;C:\Anaconda\lib\site-packages\Pythonwin;C:\Anaconda\lib\site-packages\setuptools-17.1.1-py2.7.egg
...
I tried to put some additional commands for sys.path or os.environ + os.chdir into the settings for default commands at initialization, but it never seems to reach that phase and as you can see from the entry in bold the correct path to the python project is there anyway.
Not really sure what else I can provide as info here. It does seem to happen only for some of my projects now.
For other or for new ones it works just fine...
Working with Eclipse Mars 4.5.1 EE and if not obvious from the log PyDev 4.5.4.
I am at a loss... Any ideas?
Try:
pip uninstall traitlets
As is documented here
It's worked for me
I'm trying to run my Python script form the Terminal (I write the scripts in Sublime Text2 and I use a Mac osx). This is by no means my first time running one as such but I keep on getting this error that I have never seen before, nor do I understand it:
dyld: Library not loaded: #rpath/Python
Referenced from: /Users/ronaldoisabeast/Library/Enthought/Canopy_64bit/User/bin/python
Reason: image not found
The only two commands I wrote were:
dhcp-18-111-122-239:~ ronaldoisabeast$ cd Desktop/
dhcp-18-111-122-239:Desktop ronaldoisabeast$ python dicegame.py
export PATH=/usr/bin:$PATH
Putting that line in your ~/.bash_profile (and restarting your terminal) might fix your issue