I am using Fceux 2.2.3 emulator and i am trying to run a lua script using torch while playing super mario bros. When i load the script i face this error
Lua thread bombed out: error loading module 'libpaths' from file
'/home/antonis/torch/install/lib/lua/5.1/libpaths.so':
/home/antonis/torch/install/lib/lua/5.1/libpaths.so: undefined
symbol: lua_gettop
I looked in the specific folder in the path and the libpaths.so is there.
What this error means?
You need to build tha latest FCEUX from source (https://github.com/TASVideos/fceux) using the option to use system libraries. Then you specify LuaJIT (install it first) in the SContruct file and install. After that, install torch on your system. It will be available to FCEUX through "require 'torch'". That is the way I did it (right now, tbh), but you could probably install Torch first and then link its own LuaJIT files to FCEUX.
Related
I've been trying to use the ROS(Robot Operating System) using this page:
Tutorial page
In the link it makes you use turtle sim it seemed to work fine with me without any errors.
In the 4th step(install rqt),i get this error:
`INPUT: RQT
OUTPUT: ImportError for 'pyqt': No module named 'PyQt5'
ModuleNotFoundError: No module named 'PyQt5'
ModuleNotFoundError: No module named 'PySide2'`
There was more lines of error but it seemed irrelevant to me because it only says file names.
I'm using python version 3.8.3 and qt version 5.12.12.
I downloaded the qt manually in their website.Didn't use:
pip install PyQt5
And i don't exactly remember now but someone said something about local files of pyhton but i had none of them:
screenshot of C:\Users\Boran\AppData\Local\Programs
It supposed to be Pyhton files in here.
Also there is no problem about python it works fine and i used talker and listener(pyhton coded applications of ROS.) and they worked fine.
I solved the problem by installing graphviz.It appears that to run rqt i had to install graphviz.
I am trying to build this code:
https://docs.opencv.org/3.2.0/d5/d6f/tutorial_feature_flann_matcher.html
I am using Ubuntu 16.04 with CLion 2017.3 and have OpenCV 3.4 installed.
xfeatures2d.hpp can't be found on the system.
I have looked at many different problems on the internet, but couldn't find a solution.
Any help?
You have to include cmake comiplation flag to opencv OPENCV_EXTRA_MODULES_PATH and set it to the opencv_contrib/modules.
cmake -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules
Here's what I had to do to compile OpenCV with xfeatures2d:
Download opencv_contrib (I took a release from the releases page). This step is what gives us xfeatures2d.
Unpack the tarball somewhere, e.g., ~/src/opencv_contrib-4.5.5
When configuring OpenCV (the main OpenCV source like opencv-4.5.2) with CMake, add the following option to cmake command line (adjusting the value to be your actual path to the modules subdirectory of the opencv_contrib tarball):
-DOPENCV_EXTRA_MODULES_PATH=$HOME/src/opencv_contrib-4.5.5/modules/
Now just build as you normally would and install.
The above actions gave me the expected file (among others): /usr/include/opencv4/opencv2/xfeatures2d.hpp.
I wanted to install locally VLC on a 6.9 CentOS desktop (at work) to watch this video. Since I don't have root access, I downloaded the 2.2.6 version in my home folder and ran configure as said in INSTALL
Then, it failed because Lua wasn't found. So I downloaded the latest version following the method propose by the official website, with lua -v working.
I've added the executable and the .h headers (as answered in this question) to my PATH in local bin folder. Then ran configure again. Still it cannot find lua. Looking at the configure script and the INSTALL text, I wasn't able to find a solution to make VLC search for Lua in PATH.
So how do I configure my system to makes VLC working ?
I have tried to build and run OpenCV on Ubuntu 14.04. I have previously installed CUDA 7.0 (which is working perfectly with other programs) and when I try to run openCV (opencv_traincascade) I get the following error:
error while loading shared libraries: libcudart.so.6.5: cannot open shared object file: No such file or directory
If I understand correctly, OpenCV expects CUDA v6.5 which is not installed. Does anyone know how to install OpenCV with CUDA 7.0?
try to find libcudart.so.6.5, use find or locate command, make sure it exists or link to the file exists.
then add path to your ~/.bashrc or ~/.profile(or sth else, I add it to bashrc on Ubuntu), like:
PATH=/usr/local/cuda-7.0/bin:$PATH
LD_LIBRARY_PATH=/usr/local/cuda-7.0/lib64:$LD_LIBRARY_PATH
if you change your path to install cuda, use your real path instead.
I have downloaded the prepackaged Kivy zip file onto a Windows 8.1 machine and installed Kivy-Garden using pip (after running kivy.bat). However, I have been unable to successfully use Kivy-Garden. I have attempted the following commands:
garden install graph
garden list
However, neither of them work. They both result in the following error:
Traceback (most recent call last):
File "c:\kivy\Python27\Scripts\garden", line 5, in <module>
pkg_resources.run_script('Kivy-Garden==0.1.1', 'garden')
File "C:\Python27\lib\site-packages\pkg_resources.py", line 483, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "C:\Python27\lib\site-packages\pkg_resources.py", line 1335, in run_script
raise ResolutionError("No script named %r" % script_name)
pkg_resources.ResolutionError: No script named 'garden'
Does this indicate a bad installation? How might I fix it?
Kivy for windows comes in a bundle with all the prerequisites to run, since some are hard to install in windows, so it's not using you installed python.
You should go to your kivy installation folder, inside you'll find the python folder, inside is the python descriptor used for kivy, you can run that python exe, or use pip or easy install (i don't remember if both), like an extra advice i could saw to use PyCharm to program, it's easy to install the python modules and code, i have it myself with SqlAlchemy instaled from the PyCharm Gui (previous config here Configure PyCharm and Kivy).
In the other hand you can configure kivy to run with your installed python (instructions here Kivy with an installed Python in Windows) i haven't tried myself since i use the same python included in kivy with no problems
I never figured out why pip wouldn't work, but I found a workaround.
Just download the package from pypi and run setup.py:
https://pypi.python.org/pypi/kivy-garden/0.1.1
The only workaround I've found that works is to manually install flowers into the kivy garden folder. Ceremcem has a great explanation of it here: filebrowser error in windows for kivy
Also I found I had to explicitly use pip2 for pip to work.