Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Cannot convert from ENU to Geo: Reference Point not defined. #27

Open
xfqbuaa opened this issue May 5, 2022 · 7 comments
Open

Comments

@xfqbuaa
Copy link

xfqbuaa commented May 5, 2022

When I insalled QGIS and plugin both ad_map_access, OpenSCENARIO Editor Toolkit, setting all pathes and then import oxsc and got a error:ValueError: Cannot convert from ENU to Geo: Reference Point not defined.
image
And also not any content shown in main window.

By the way, are there any tutorial to create a openscneario in traffic generation editor?

ubuntu 20.04
carla 0.9.13
scenariorunner 0.9.13
QGIS 3.10.4-A

@xfqbuaa
Copy link
Author

xfqbuaa commented May 5, 2022

I connected with Carla server and show maps.
after import xosc file, and press play scenario, there is python error in QGIS and not pygame window.

2022-05-05T22:46:26 WARNING warning:/usr/share/qgis/python/plugins/processing/algs/grass7/Grass7Utils.py:191: SyntaxWarning: "is" with a literal. Did you mean "=="?
if path is '':

         traceback: File "", line 1, in 
          File "/usr/lib/python3/dist-packages/qgis/utils.py", line 302, in loadPlugin
          __import__(packageName)
          File "/usr/lib/python3/dist-packages/qgis/utils.py", line 744, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 991, in _find_and_load
          File "", line 975, in _find_and_load_unlocked
          File "", line 671, in _load_unlocked
          File "", line 848, in exec_module
          File "", line 219, in _call_with_frames_removed
          File "/usr/share/qgis/python/plugins/processing/__init__.py", line 25, in 
          from processing.tools.general import * # NOQA
          File "/usr/lib/python3/dist-packages/qgis/utils.py", line 744, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 991, in _find_and_load
          File "", line 975, in _find_and_load_unlocked
          File "", line 671, in _load_unlocked
          File "", line 848, in exec_module
          File "", line 219, in _call_with_frames_removed
          File "/usr/share/qgis/python/plugins/processing/tools/general.py", line 32, in 
          from processing.core.Processing import Processing
          File "/usr/lib/python3/dist-packages/qgis/utils.py", line 744, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 991, in _find_and_load
          File "", line 975, in _find_and_load_unlocked
          File "", line 671, in _load_unlocked
          File "", line 848, in exec_module
          File "", line 219, in _call_with_frames_removed
          File "/usr/share/qgis/python/plugins/processing/core/Processing.py", line 55, in 
          from processing.algs.grass7.Grass7AlgorithmProvider import Grass7AlgorithmProvider
          File "/usr/lib/python3/dist-packages/qgis/utils.py", line 744, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 991, in _find_and_load
          File "", line 975, in _find_and_load_unlocked
          File "", line 671, in _load_unlocked
          File "", line 848, in exec_module
          File "", line 219, in _call_with_frames_removed
          File "/usr/share/qgis/python/plugins/processing/algs/grass7/Grass7AlgorithmProvider.py", line 33, in 
          from .Grass7Utils import Grass7Utils
          File "/usr/lib/python3/dist-packages/qgis/utils.py", line 744, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 991, in _find_and_load
          File "", line 975, in _find_and_load_unlocked
          File "", line 671, in _load_unlocked
          File "", line 844, in exec_module
          File "", line 981, in get_code
          File "", line 911, in source_to_code
          File "", line 219, in _call_with_frames_removed

@xfqbuaa
Copy link
Author

xfqbuaa commented May 6, 2022

After setting and correct path, pygame works but black screen.
Anything I can do to make it works?

image

@xfqbuaa
Copy link
Author

xfqbuaa commented May 16, 2022

some update from my side:
I cannot play scenario in QGIS.
It works when seperately run scenariorunner with generated xosc file, but need to change map, and sometime add some missing elements.

@baibingren
Copy link

Hi,I have the same problem,"ValueError: Cannot convert from ENU to Geo: Reference Point not defined. " . Have you solved it?

@xfqbuaa
Copy link
Author

xfqbuaa commented May 17, 2022

@baibingren
The first thing you need to check QGIS python path and make sure QGIS python, carla, scenariorunner path have been all included.
please check and modify QGIS setting->options->system->Environments

@baibingren
Copy link

image
image
Is it added in the path? I've added it, but it doesn't work

@xfqbuaa
Copy link
Author

xfqbuaa commented May 27, 2022

please make sure connect Carla fist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants