I am currently learning Python on Fedora. While I'm coding PyQt5 on Visual Studio Code, I got Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. error and couldnt find a way that works. So can you help me fix it?
I was trying to get an app that I programmed in Python using Kivy to run on an Xcode simulator. I followed these instructions from link seemingly without issues.
Note: I have Kivy installed and use it within Anaconda / Spyder.
Running the Xcode project for the first time brought up the following error (the build didn't succeed):
in /Users/.../Documents/NR4/kivy-ios/dist/lib/libsdl2_image.a(IMG_bmp.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/.../Documents/NR4/kivy-ios/dist/lib/libsdl2_image.a' for architecture arm64
I solved this the following way: Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
When running the project now, I get the error:
ModuleNotFoundError: No module named 'kivy'
1
and the app crashes.
Thank you for taking the time to read through.
I would greatly appreciate help or ideas related to the problem.
Installing a newer version of Cython before building with toolchian resolved the problem for me.
pip3 install Cython==0.29.17
I am trying to get a working setup of the object detection and tracking algorithm talked about in this tutorial: https://www.pyimagesearch.com/2018/08/13/opencv-people-counter/
I am using a Mac and I have python 3.7.6 installed into a virtual environment named 'SARDroneV2' to keep installed packages from above tutorial isolated to just the virtual env.
I followed through the tutorial exactly, but when I try executing the code into Terminal I get the following error: (I included the command I entered into command line as well)
(SARDroneV2) adammuzzarelli#Adams-iMac ~ % python /Users/adammuzzarelli/Desktop/SAR\ Tracker/Tracker\ Algo/people_counter.py --prototxt /Users/adammuzzarelli/Desktop/SAR\ Tracker/Tracker\ Algo/mobilenet_ssd/MobileNetSSD_deploy.prototxt --model /Users/adammuzzarelli/Desktop/SAR\ Tracker/Tracker\ Algo/mobilenet_ssd/MobileNetSSD_deploy.caffemodel
[INFO] loading model...
[INFO] starting video stream...
qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
I am trying to run a simple small app I made in python on a device running Windows 7 embedded (2GB RAM, Intel Atom).
I am creating an exe using pyinstaller (dev version, for supporting Python 3.6)
When I run the exe I get the following error:
the procedure entry point ucrtbase.terminate api-ms-win-crt-runtime-l1-1-0.dll
Followed by this error:
"Error loading Python DLL:
C:\Users\User\AppData\Local\Temp\_MEI57202\python36.dll (error code 127)"
I used pyinstaller as follows: pyinstaller -w -F
Any help will be greatly appreciated.
Thank you.
Please let me know if you need to see the script, it's a simple one.
Edit: Installing KB2999226 from Microsoft did make the error's
disappear but now the script will silently not execute.
Any ideas?
Final Edit: Installing the above update solved it. The problem with
not executing was I used a 64Bit FFMPEG on a 32bit OS. Closing with
solution
Installing KB2999226 from MS solved it
I am new on stack overflow and I hope I am not asking something obvious. In fact, I did quite a search online and I could not find a proper answer/solution to my problem.
I am building an open-source cross-platform desktop application based on python. I am using cx_freeze to build a distribution version. The cx_freeze works well on Windows 7 and Mac OS X 10.9.2 and the app are already built. Nonetheless, when I try to use the same setup.py file to build the diet_version on Linux 13.10, I get the following error:
My building options are:
build_exe_options = {"includes":["matplotlib.backends.backend_tkagg","sys","os","PyQt4","numpy","sys","os","matplotlib"],
"include_files":[(matplotlib.get_data_path(), 'mpl-data')],
"excludes":[],
}
and I get the following error:
error: build/exe.linux-x86_64-2.7/mpl-data: Is a directory
I tried to use the full path of mpl-data in the building options, i.e.
build_exe_options = {"includes":["matplotlib.backends.backend_tkagg","sys","os","PyQt4","numpy","sys","os","matplotlib"],
"include_files":[("/usr/share/matplotlib/mpl-data", 'mpl-data'), ("/usr/share/matplotlib/mpl-data/fonts", 'mpl-data/fonts'),("/usr/share/matplotlib/mpl-data/images", 'mpl-data/images'),("/etc/matplotlibrc", 'mpl-data')],
"excludes":[],
}
but I keep getting the same error mentioned above.
If I do not declare the build_exe options, as I did on Windows 7, I get the following error on Linux:
error: /usr/lib/pymodules/python2.7/matplotlib/mpl-data: No such file or directory
I am afraid the error happens because mpl-data is located in $/usr/share/matplotlib/mpl-data rather than $/usr/lib/pymodules/python2.7/matplotlib/mpl-data, but I have no clue why the error persists even after declaring the path to the folder.
To sum up, I release the desktop app for windows and mac os without any problems (works like a charm!), but the linux version is still pending a stand-alone version (check the Linux source code here: http://concrete.fsv.cvut.cz/~wilson/Software.html). Can anybody shed some light on this issue? How to tell cx_freeze to get the mpldata without errors.
Thanks in advance,
Wbr