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

UserWarning: MessageFactory class is deprecated #1583

Open
salsabeel-imagry opened this issue May 5, 2024 · 1 comment
Open

UserWarning: MessageFactory class is deprecated #1583

salsabeel-imagry opened this issue May 5, 2024 · 1 comment

Comments

@salsabeel-imagry
Copy link

Problem Description

Hi,

Seems that the "MessageFactory" class is deprecated, and I got the following warning when reading channel data

/usr/local/lib/python3.8/dist-packages/ecal/proto/helper.py:72: UserWarning: MessageFactory class is deprecated. Please use GetMessageClass() instead of MessageFactory.GetPrototype. MessageFactory class will be removed after 2024.
return google.protobuf.message_factory.MessageFactory(desc_pool).GetPrototype(desc)

How to reproduce

Here is a sample code for reproduction:

import ecal
from ecal.measurement.measurement import Measurement

measurement = Measurement("/path/to/measurement/file.hdf5")
channel =  measurement[measurement.channel_names[0]]
# or
channel = measurement['myChannelName'] 

reproduction

How did you get eCAL?

Ubuntu PPA (apt-get)

Environment

  • eCAL v5.13.0
  • python 3.8.10

eCAL System Information

------------------------- SYSTEM ---------------------------------
Version                  : v5.13.0 (2024-04-24 14:44:35 +0200)
Platform                 : linux

------------------------- CONFIGURATION --------------------------
Default INI              : /etc/ecal/ecal.ini

------------------------- NETWORK --------------------------------
Host name                : _
Host group name          : _
Network mode             : local
Network ttl              : 1
Network sndbuf           : 5 MByte
Network rcvbuf           : 5 MByte
Multicast cfg version    : v1
Multicast group          : 239.0.0.1
Multicast mask           : 0.0.0.15
Multicast ports          : 14000 - 14010
Multicast join all IFs   : off
Bandwidth limit (udp)    : not limited

------------------------- TIME -----------------------------------
Synchronization realtime : "ecaltime-localtime"
Synchronization replay   : 
State                    :  synchronized 
Master / Slave           :  Master 
Status (Code)            : "everything is fine." (0)

------------------------- PUBLISHER LAYER DEFAULTS ---------------
Layer Mode INPROC        : off
Layer Mode SHM           : auto
Layer Mode TCP           : off
Layer Mode UDP MC        : auto

------------------------- SUBSCRIPTION LAYER DEFAULTS ------------
Layer Mode INPROC        : on
Layer Mode SHM           : on
Layer Mode TCP           : on
Layer Mode UDP MC        : on
Npcap UDP Reciever       : off

------------------------- EXPERIMENTAL ---------------------------
SHM Monitoring           : off
SHM Monitoring (Domain)  : ecal_mon
SHM Monitoring (Queue)   : 1024
Network Monitoring       : on
Drop out-of-order msgs   : off
@KerstinKeller
Copy link
Contributor

Thanks for reporting.
We are currently working on our Python bindings, and we will take a look at this issue.

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