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

erdos module error during the first run #261

Open
fabiom95 opened this issue May 11, 2022 · 2 comments
Open

erdos module error during the first run #261

fabiom95 opened this issue May 11, 2022 · 2 comments

Comments

@fabiom95
Copy link

erdos module gives an error when i follow the manual installation instructions listed here to run pylot.py:

export CARLA_HOME=$PYLOT_HOME/dependencies/CARLA_0.9.10.1/
cd $PYLOT_HOME/scripts/
source ./set_pythonpath.sh
cd  $PYLOT_HOME/
python3 pylot.py --flagfile=configs/detection.conf

The output is:

I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcudart.so.11.0
Traceback (most recent call last):
  File "pylot.py", line 261, in main
    node_handle, control_display_stream = driver()
  File "pylot.py", line 51, in driver
    pipeline_finish_notify_stream,
  File "/home/fabio/Desktop/pylot/pylot/pylot/operator_creator.py", line 15, in add_simulator_bridge
    from pylot.simulation.carla_operator import CarlaOperator
  File "/home/fabio/Desktop/pylot/pylot/pylot/simulation/carla_operator.py", line 20, in <module>
    class CarlaOperator(erdos.Operator):
AttributeError: module 'erdos' has no attribute 'Operator'`

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "pylot.py", line 274, in <module>
    app.run(main)
  File "/home/fabio/anaconda3/envs/pylotEnv_py37/lib/python3.7/site-packages/absl/app.py", line 312, in run
    _run_main(main, args)
  File "/home/fabio/anaconda3/envs/pylotEnv_py37/lib/python3.7/site-packages/absl/app.py", line 258, in _run_main
    sys.exit(main(argv))
  File "pylot.py", line 269, in main
    shutdown_pylot(node_handle, client, world)
UnboundLocalError: local variable 'node_handle' referenced before assignment

It seems I am having problems with the erdos module.
I installed the version 0.4.0 and I checked it is listed in the virtual environment. (I tried also other versions as the 0.3.1).

@sukritkalra
Copy link
Collaborator

sukritkalra commented May 17, 2022

Hi @fabiom95!

ERDOS v0.4.0 has a new API that isn't compatible with the Pylot API (we are currently in the midst of porting Pylot to it and you can follow the development on the redesign branch).

However, Pylot should be compatible with v0.3.1, but it looks to me that your erdos installation didn't complete successfully. Did you build it from Github or do a pip install erdos==0.3.1?

In any case, could you please try running any of the examples from the ERDOS repository here (maybe the watermarks.py one) and let us know what errors you receive if any?

Also, you could pull the pylot docker image to ensure that all your dependencies are in sync, which is the current recommended way of experimenting with pylot.

@yang-yk
Copy link

yang-yk commented Jul 19, 2022

Hello, I have met the same problem. Have you solved it? I have changed my erdos version to 0.3.1 and the problem still exists. The code stopped in the driver function in the pylot.py file (line 55 for adding sensors). Thanks very much! @fabiom95 @sukritkalra

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

3 participants