OpenScenarioEditor icon indicating copy to clipboard operation
OpenScenarioEditor copied to clipboard

File open error

Open yumianhuli2 opened this issue 2 years ago • 12 comments

Hello! The following error occurs when I select to open an XOSC file: osc filename: /XXX/OpenScenarioEditor/pyesmini/resources/xosc/straight_500m.xosc disable_ctrls = False , use_viewer = True , threads = True , recordFile =
Traceback (most recent call last): File "OpenScenarioEditor.py", line 462, in openxml self.gui.load_file(self.xmlfn) File "/XXX/OpenScenarioEditor/gui_qt.py", line 1122, in load_file self.reload() File "/XXX/OpenScenarioEditor/gui_qt.py", line 894, in reload oscFile=True) File "/XXX/OpenScenarioEditor/pyesmini/pyesmini/pyesmini.py", line 103, in init self.se = CDLL(dir_path + "/libesminiLib.so") File "/XXX/anaconda3/lib/python3.7/ctypes/init.py", line 364, in init self._handle = _dlopen(self._name, mode) OSError: /XXX/OpenScenarioEditor/pyesmini/pyesmini/libesminiLib.so: cannot open shared object file: No such file or directory

yumianhuli2 avatar Apr 23 '22 06:04 yumianhuli2

@yumianhuli2 Can you provide more information on how you run the program and more about the environment?

ebadi avatar Apr 23 '22 08:04 ebadi

Hi! I followed the instructions below: Building and running on Linux First clone the repository:

git clone https://github.com/ebadi/OpenScenarioEditor ~/OpenScenarioEditor To build and run on Ubuntu (tested on 20.04), simply run the following command that automatically downloads Environment Simulator Minimalistic (esmini) , PyEsmini and required resources/dependencies.

cd ~/OpenScenarioEditor ./run.sh

But My OS is :Ubuntu18.04

Error message is: OSError: /XXX/OpenScenarioEditor/pyesmini/pyesmini/libesminiLib.so: cannot open shared object file: No such file or directory. Maybe because of the lack of this file?

Thank you!

yumianhuli2 avatar Apr 23 '22 09:04 yumianhuli2

Maybe because of the lack of this file?

Yes, but run.sh clone a repository and build that file automatically. Please first remove pyesmini and report back what is the result of running run.sh

ebadi avatar Apr 23 '22 10:04 ebadi

Hi! If first remove pyesmini A lot of errors like below: OSError: /XXX/../OpenScenarioEditor/pyesmini/pyesmini/libesminiLib.so: cannot open shared object file: No such file or directory

yumianhuli2 avatar Apr 23 '22 11:04 yumianhuli2

Please remove the mentioned directory again and run the following ./run.sh &> log.txt

And upload the file here.

ebadi avatar Apr 23 '22 15:04 ebadi

Hi! The file is here log.txt

yumianhuli2 avatar Apr 24 '22 02:04 yumianhuli2

It seems that the pyesmini directory is not removed since I was expecting this line to be executed. Please run the following and upload the log.txt again:

rm -rf ~/OpenScenarioEditor
git clone https://github.com/ebadi/OpenScenarioEditor ~/OpenScenarioEditor
cd  ~/OpenScenarioEditor
./run.sh &> log.txt

ebadi avatar Apr 24 '22 09:04 ebadi

It seems that the pyesmini directory is not removed since I was expecting this line to be executed. Please run the following and upload the log.txt again:

rm -rf ~/OpenScenarioEditor
git clone https://github.com/ebadi/OpenScenarioEditor ~/OpenScenarioEditor
cd  ~/OpenScenarioEditor
./run.sh &> log.txt

Hi! Now open the xosc file and the program will not crash,But it doesn't seem to be working yet. log is below: log.txt

And where is the link to the previous C++ repo version?Thank U!

yumianhuli2 avatar Apr 25 '22 01:04 yumianhuli2

the link to the previous C++ repo version?

What do you mean? Which version?

I inspected the log file but found nothing. Let's try these instead:

cd ~
rm -rf ~/OpenScenarioEditor
git clone https://github.com/ebadi/OpenScenarioEditor ~/OpenScenarioEditor  > ~/log0.txt
cd  ~/OpenScenarioEditor
sudo apt install git python3-pip python3-pyqt5  ;     pip3 install PyQt5  > ~/log1.txt
git clone https://github.com/ebadi/pyesmini pyesmini > ~/log2.txt
cd pyesmini ; ./build.sh > ~/log3.txt 
cd ~
python3 OpenScenarioEditor.py > ~/log4.txt 

ebadi avatar Apr 25 '22 05:04 ebadi

hi! logs are below: log0 and log2 are empty log1.txt log3.txt log4.txt

yumianhuli2 avatar Apr 26 '22 15:04 yumianhuli2

As you see in log3.txt some packages are still not installed. Run these commands to installed all dependence.

sudo apt install build-essential git pkg-config libgl1-mesa-dev libpthread-stubs0-dev libjpeg-dev libxml2-dev libpng-dev libtiff5-dev libgdal-dev libpoppler-dev libdcmtk-dev libgstreamer1.0-dev libgtk2.0-dev libcairo2-dev libpoppler-glib-dev libxrandr-dev libxinerama-dev curl cmake
sudo apt install git python3-pip python3-pyqt5 

and try again these commands: https://github.com/ebadi/OpenScenarioEditor/issues/10#issuecomment-1108087320

ebadi avatar Apr 26 '22 18:04 ebadi

Please check /pyesmini/build.sh 1, the tag should be ec2f3e7256c97d32b1a97f0cb8b9bf7f5085bc7e

xfqbuaa avatar May 07 '22 15:05 xfqbuaa