This question already has answers here:
OpenCV Python Scripts Mac "aborts"
(4 answers)
Closed 4 years ago.
I recently got a new Mac (macOS 10.14) and am trying to run the video capture method with openCV and python2.7.15.
import cv2
cv2.VideoCapture(0)
And I am getting the following error message:
Abort trap: 6
I have no idea why this is happening, it worked fine on my old computer, my guess is something with camera permissions maybe? Any help would be greatly appreciated.
I have encountered the same error after update to macOS 10.14(Mojave).
I used otool to debug, got this :
mac os error
These file reported on picture is from :/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreMediaIO.framework
after update iterm to "Build 3.2.4beta1", the "privacy problem" solved
Related
This question already has answers here:
How to install pygame?
(4 answers)
Unable to install Pygame using pip
(27 answers)
Closed 12 days ago.
This post was edited and submitted for review 12 days ago and failed to reopen the post:
Original close reason(s) were not resolved
VS Code not responding to ternimal input. Pygame will not install. Ternimal running place is wrong.
As of right now I am using two different computers hence the use of OneDrive (I know it's not optimal). Everything works absolutely fine on my other computer, including terminal input and pygame installation, running Python 3.11.2 MS Store version.
For the sake of this case I saved a py. file in the Downloads-folder (localy) and the terminal says that it is running from OneDrive, even though the file is not saved there.
I primarely use VS Code, but since this isn't working, I installed Spyder where pip works fine with minicoda.
Spyder Kernal/Console and pygame are working fine with conda: spyder-env (Python 3.10.9)
This is my first year learning Python so I'm really not sure what to do. My teacher is just as uncertain.
WHAT I HAVE TRIED:
VS Code:
I have tried re-installing VS Code by first deleting it completely. https://code.visualstudio.com/docs/setup/uninstall
Python:
I have tried re-innstalling Python with different versions.
Python: https://i.stack.imgur.com/ks7ND.png
Conda: https://i.stack.imgur.com/UDQyl.png
MS Store Python: https://i.stack.imgur.com/yfAAs.png
This question already has answers here:
Cannot Open Python. Error 0xc000007b
(12 answers)
Closed 1 year ago.
I installed python3 on my PC (Windows 7 sp1) but when I try tu run it told me first that there was a dll error, I thought I would solve it by downloading some files after googling my problem, effectively there is no dll error anymore but now there is "0xc000007b error" I searched a lot in Google and youtube but it doesn't work, how do I do please?
Try to uninstall it and download Python Releases for Windows. Please note that
Note that Python 3.9.6 cannot be used on Windows 7 or earlier.
This question already has answers here:
Pylint "unresolved import" error in Visual Studio Code
(40 answers)
PyLint "Unable to import" error - how to set PYTHONPATH?
(33 answers)
Imports failing in VScode for pylint when importing pygame
(3 answers)
Closed 1 year ago.
I’ve downloaded pygame but VS code says, in the problems section , it is “Unable to import ’pygame’ pylint(import-error)”
In the terminal it says “ModuleNotFoundError: No module named ‘pygame’”
What could be causing it to not import?
Edit: I added some more specifics
I'm pretty new to python, but I'll try to give you a solution.
You could create a virtual environment in your terminal. If you don't know how to do that, here's a link to a website I found for macos, https://sourabhbajaj.com/mac-setup/Python/virtualenv.html. For windows, https://mothergeo-py.readthedocs.io/en/latest/development/how-to/venv-win.html. Activate the virtualenv, and then pip install pygame inside the virtualenv, so when you run your code, pygame should work as long as the virtualenv you downloaded pygame in is activated.
I really hope this helps as this is my first time answering a question on stackoverflow!
This question already has answers here:
Error: Qt5 Video render error code 80040218
(4 answers)
QMediaPlayer resource error
(1 answer)
Qt QGraphicsView not playing any video
(1 answer)
Closed 2 years ago.
I want to create a videoplayer using mediaplayer in pyqt5 to display mp4 videos ,but it doesn't work for me (I have python 3.6.5 ,pyqt5.14.1 on windows os 10 ). I think that the problem is in windows because I tried the same code with the same version of python and pyqt on windows8 and it's working well.
I used this code How to play videos in pyqt
I got this with any error (when i run it in IDLE)
but when I run it in cmd i get this error :
DirectShowPlayerService :: doRender : Unresolved error code 0x80040266 (IDispatch error #102)
This question already has answers here:
PyCharm: Py_Initialize: can't initialize sys standard streams
(6 answers)
Closed 6 years ago.
I just started to us Python and Pycharm today. I installed Python 3.4.3 and pycharm 4.5, and I'm using Windows 7 OS on a acer TravelMate 8471 laptop.
When I try to print("hello"), the error is:
"Fatal Python error: Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding: x-windows-950"
Does anyone know how to fix this issue ?
Just put the hello.py file in a subdirectory of your project directory.
All the files in the project directory essentially provides relevant "system information" of the project. One project may contains couple of applications. Each application should be put in one subdirectory.
set:
"Settings/Editor/File Encodings/Project Encoding"
to:
"UTF-8"
It's likely due to the PY-15481 bug. Try PyCharm 4.5.1 RC build.