# general


06/14/2022, 8:45 PM
hi was successful in getting pex file generated with 3rd party dependencies but getting this error due to proto buffer version. even after downgrading to 3.19 * version no sucess TypeError: Descriptors cannot not be created directly. If this call came from a 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:
[1]+ Stopped ./pipeline-pex.pex (venv) root@7781114-8501:~/pavithra/dagster-crawler-pipeline/dist# ./pipeline-pex.pex Python 3.8.10 (default, Mar 15 2022, 122208) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole)


06/15/2022, 5:57 PM
hey @adamant-umbrella-23142: do you think you could open a github issue that describes 1. how your protobuf files are laid out, and which version of protobuf they’re written for 2. which version of Pants and protobuf you’re using: a. note that the protobuf compiler (configured in
) and protobuf runtime need to be in alignment 3. what the consuming code looks like?
also, have you taken a look at ?


06/20/2022, 3:52 PM
@polite-garden-50641 // use ./pants dependencies and give it the pex target instead of :: i.e. src/project/thing/foo:my_pex_target_name// Can you specify this ?
@hundreds-father-404 @polite-garden-50641 @witty-crayon-22786 Hi even my inflection dependency has been listed out when i executed the pants dependency command . but when i execute the pex file then that dependency isnt included. even when i tried import inflection.