import error....

10 views
Skip to first unread message

Karl Garcia

unread,
Apr 21, 2024, 3:28:44 AMApr 21
to osti...@googlegroups.com
Hi,

Just started getting this error:
Traceback (most recent call last):
  File "/home/karlg/ostinato/./ostinato_create_streams.py", line 17, in <module>
    from ostinato.core import DroneProxy, ost_pb
  File "/usr/local/lib/python3.10/dist-packages/python_ostinato-1.3.0-py3.10.egg/ostinato/core.py", line 15, in <module>
    from .protocols import protocol_pb2 as ost_pb
  File "/usr/local/lib/python3.10/dist-packages/python_ostinato-1.3.0-py3.10.egg/ostinato/protocols/protocol_pb2.py", line 34, in <module>
    _descriptor.EnumValueDescriptor(
  File "/home/karlg/.local/lib/python3.10/site-packages/google/protobuf/descriptor.py", line 789, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

Has anyone seen/dealt with this before ?  (As you can see, the error comes from when I import ost_pb from ostinato.core which is at the beginning of my script.)

For completeness, here are the packages I have installed:
ii  libprotobuf-lite23:amd64                   3.12.4-1ubuntu7.22.04.1                 amd64        protocol buffers C++ library (lite version)
ii  libprotobuf23:amd64                        3.12.4-1ubuntu7.22.04.1                 amd64        protocol buffers C++ library
ii  python3-protobuf                           3.12.4-1ubuntu7.22.04.1                 amd64        Python 3 bindings for protocol buffers

Do I need to downgrade my protobuf packages ?    Running ubuntu 22.04....

Thanks,
_____
Karl



This email and any relevant attachments may include confidential and/or proprietary information.  Any distribution or use by anyone other than the intended recipient(s) or other than for the intended purpose(s) is prohibited and may be unlawful.  If you are not the intended recipient of this message, please notify the sender by replying to this message and then delete it from your system.

Srivats P

unread,
Apr 21, 2024, 3:39:34 AMApr 21
to Karl Garcia, osti...@googlegroups.com
Hi Karl,

Which Ostinato PYAPI package do you have installed? 1.3.0 or 1.3.0.post1?

In case of the former, please try the latter - the package is available in the Ostinato download portal - link for the portal is in your purchase receipt email.

Srivats

--
Get Ostinato News and Updates on Twitter - Follow @ostinato (http://twitter.com/ostinato)
---
You received this message because you are subscribed to the Google Groups "ostinato" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ostinato+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ostinato/CALcBeoz1Xi6kNf5wb6gbqOk1z9hf9-9NhzKG0xOEEjqAhK2eAA%40mail.gmail.com.

Karl Garcia

unread,
Apr 22, 2024, 10:58:33 PMApr 22
to Srivats P, osti...@googlegroups.com
Hi,

I found my receipt email for the PythonAPI package and followed the link -- but I only see the 1.3.0 version.  There is no 1.3.0.post1 version.  Can you give me more info and/or instructions ?

Thanks,
______
Karl


Srivats P

unread,
Apr 23, 2024, 9:57:18 AMApr 23
to Karl Garcia, osti...@googlegroups.com
Karl,

There was some problem in the backend due to which the post1 packages may not have been visible - we have now fixed this issue.

Can you please recheck?

Srivats (Founder, Ostinato)
Now generate up to 100Gbps 🚀 with the Ostinato Turbo add-on!

Karl Garcia

unread,
Apr 23, 2024, 10:43:27 PMApr 23
to Srivats P, osti...@googlegroups.com
Hi,

Just to follow up, I re-checked and was able to see the post1 version this time.  I downloaded and built/installed and everything is now working.  Good to go.  Thanks for your help ! 
_____
Karl

Srivats P

unread,
Apr 24, 2024, 8:59:01 AMApr 24
to Karl Garcia, osti...@googlegroups.com
Thanks for confirming, Karl!

Srivats (Founder, Ostinato)
Now generate up to 100Gbps 🚀 with the Ostinato Turbo add-on!
Reply all
Reply to author
Forward
0 new messages