Comments (7)
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.
I get the exact same result with v0.5.1.
from python-dialogflow.
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.
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.
This issue is related to protocolbuffers/protobuf#2974
from python-dialogflow.
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.
There is nothing we can do in this repo to work around protocolbuffers/protobuf#2974.
from python-dialogflow.
Related Issues (20)
- Exporting Agent Bytes Then Fails to Import HOT 13
- Migrate to main branch
- samples.snippets.participant_management_test: test_analyze_content_text failed HOT 11
- samples.snippets.participant_management_test: test_analyze_content_text failed HOT 1
- Dependency Dashboard
- samples.snippets.create_document_test: test_create_document failed HOT 5
- samples.snippets.create_knowledge_base_test: test_create_knowledge_base failed HOT 5
- participant_management.py test failed.
- Segmentation fault with multiprocessing HOT 2
- Increase code coverage from 99% to 100% HOT 1
- No DesignTimeAgent found for project `python-docs-samples-*` HOT 2
- AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key' HOT 9
- Resolve sphinx docs warnings and enable warnings as errors HOT 1
- seminar HOT 1
- Warning: a recent release failed
- AttributeError: module 'google.cloud.dialogflow_v2' has no attribute 'Entity' HOT 1
- Add sample code for StreamingAnalyzeContent with audio live transcription HOT 1
- Add Code Snippet for Pulling Session ID from WebhookRequests HOT 1
- AttributeError: 'dict' object has no attribute 'index' HOT 2
- unable to import name "common_pb2" from "google.cloud.dialogflow_v2.types" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-dialogflow.