aurora-opensource/xviz

Python xviz-avs error

shreyas2311 opened this issue · 8 comments

Getting the below error while running serve_scenarios.py

File "serve_scenarios.py", line 9, in
import xviz_avs
File "/usr/local/lib/python3.8/dist-packages/xviz_avs/init.py", line 1, in
from .builder import XVIZBuilder, XVIZMetadataBuilder,
File "/usr/local/lib/python3.8/dist-packages/xviz_avs/builder/init.py", line 8, in
from .base_builder import XVIZBaseBuilder,
File "/usr/local/lib/python3.8/dist-packages/xviz_avs/builder/base_builder.py", line 17, in
(PRIMITIVE_TYPES.CIRCLE, [
AttributeError: 'EnumTypeWrapper' object has no attribute 'CIRCLE'

Even simply importing the package produces error. A file with just the line
import xvs_avs produces the error.

Odd, i was just using this. i'll try to verify. What version of python where you using, and on what platform?

Thanks for the reply! I am using Ubuntu-20 with python 3.8.5.

I have the same situation. And I am using Ubuntu 20.1 and Python 3.8.5.

It seems to work when I run it through anaconda though. However, I got another error in gltf.py where the file was opened in read mode to write into it. Therefore, I downloaded the file from the official python page and made the required change which worked.
However, the fix seems to be there in the github repository. The wheel needs to be modified and the source files have to be updated in the official python page as well.

sidml commented

@shreyas2311
I am getting the same error. How did you resolve it ?

I used Python 3.6.9

sidml commented

It seems that installing the latest version of protobuf fixes the issue (even in python 3.8.5 and ubuntu 20)
pip install -U protobuf
Then go to the xviz_avs directory and
python setup.py install