Giter Club home page Giter Club logo

Comments (7)

crwilcox avatar crwilcox commented on August 14, 2024

This does not seem to repro on a current version of dialogflow (https://pypi.org/project/dialogflow/0.5.1/)

Can you try installing a newer version?

from python-dialogflow.

gmolau avatar gmolau commented on August 14, 2024

I get the exact same result with v0.5.1.

from python-dialogflow.

crwilcox avatar crwilcox commented on August 14, 2024

EDIT: removing IPython from the issue. also fails in a repl.
@gmolau I was also able to get this to fail. I think I may have originally tried on 3.7. I just retried and it failed with 3.6.6. Perhaps it is something particular to 3.6 is causing the segfault.

Versions:

  • Python: 3.6.6
  • pip: 18.1
  • dialogflow: 0.5.1
(venv366) > python                                                                                                                                                                      Python 3.6.6 (default, Oct 18 2018, 15:02:58)
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.10.44.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import dialogflow as df
>>> project_id = "test-project-test"
>>> entity_name = "test-entity-type"

>>> client = df.EntityTypesClient()
>>>
>>> entity_id = "blahblah-blah-blah-blahblah"
>>>
>>> name = client.entity_type_path(project_id, entity_id)
>>> entity = client.get_entity_type(name)
>>>
>>> help(entity)
[1]    4129 segmentation fault  python

from python-dialogflow.

crwilcox avatar crwilcox commented on August 14, 2024

Here is a simple repro. This succeeds on 3.7 and fails on 3.6.6

import dialogflow
help(dialogflow.types.entity_type_pb2.EntityType)

Under LLDB, more info:

(lldb) run test.py
Process 14821 launched: '/Users/crwilcox/scratch/google-cloud-dialogflow/venv366/bin/python' (x86_64)
Process 14821 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
    frame #0: 0x0000000104b66c69 _message.cpython-36m-darwin.so`google::protobuf::python::message_meta::GetExtensionsByName(google::protobuf::python::CMessageClass*, void*) + 41
_message.cpython-36m-darwin.so`google::protobuf::python::message_meta::GetExtensionsByName:
->  0x104b66c69 <+41>: movq   0x10(%rax), %rax
    0x104b66c6d <+45>: movq   0x360(%rdi), %rsi
    0x104b66c74 <+52>: leaq   -0x40(%rbp), %rdx
    0x104b66c78 <+56>: movq   %rax, %rdi
Target 0: (python) stopped.

from python-dialogflow.

crwilcox avatar crwilcox commented on August 14, 2024

This issue is related to protocolbuffers/protobuf#2974

from python-dialogflow.

crwilcox avatar crwilcox commented on August 14, 2024

pip freeze for this failure. Up to date on google-api-core, googleapis-common-protos, grpcio

pip freeze
cachetools==2.1.0
certifi==2018.10.15
chardet==3.0.4
dialogflow==0.5.1
google-api-core==1.5.0
google-auth==1.5.1
googleapis-common-protos==1.5.3
grpcio==1.16.0
idna==2.7
protobuf==3.6.1
pyasn1==0.4.4
pyasn1-modules==0.2.2
pytz==2018.6
requests==2.20.0
rsa==4.0
six==1.11.0
urllib3==1.24

from python-dialogflow.

tseaver avatar tseaver commented on August 14, 2024

There is nothing we can do in this repo to work around protocolbuffers/protobuf#2974.

from python-dialogflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.