ibm-developer-skills-network / xzceb-flask_eng_fr Goto Github PK
View Code? Open in Web Editor NEWflask_enf_fr
License: Apache License 2.0
flask_enf_fr
License: Apache License 2.0
I am trying to do lab assignments in Python Project for AI & Application Development
from IBM Skills Network on Coursera.
Task 4: run tests.
After running the following command in terminal
$ python3 tests.py
I get the following error message:
Traceback (most recent call last):
File "tests.py", line 2, in
from translator import english_to_french, french_to_english
File "/home/project/xzceb-flask_eng_fr/final_project/machinetranslation/translator.py", line 18, in
authenticator=AUTHENTICATOR
File "/home/theia/.local/lib/python3.6/site-packages/ibm_watson/language_translator_v3.py", line 76, in init
authenticator=authenticator)
File "/home/theia/.local/lib/python3.6/site-packages/ibm_cloud_sdk_core/base_service.py", line 97, in init
self.http_adapter = SSLHTTPAdapter()
File "/home/theia/.local/lib/python3.6/site-packages/ibm_cloud_sdk_core/utils.py", line 35, in init
super().init(*args, **kwargs)
File "/home/theia/.local/lib/python3.6/site-packages/requests/adapters.py", line 130, in init
self.init_poolmanager(pool_connections, pool_maxsize, block=pool_block)
File "/home/theia/.local/lib/python3.6/site-packages/ibm_cloud_sdk_core/utils.py", line 42, in init_poolmanager
ssl_context.minimum_version = ssl.TLSVersion.TLSv1_2
AttributeError: module 'ssl' has no attribute 'TLSVersion'
As I am not really good at programming yet, I see some "ssl", I go to "Disabling SSL verification" on API Docs website
https://cloud.ibm.com/apidocs/language-translator?utm_medium=Exinfluencer&utm_source=Exinfluencer&utm_content=000026UJ&utm_term=10006555&utm_id=NA-SkillsNetwork-Channel-SkillsNetworkCoursesIBMDeveloperSkillsNetworkPY0222ENSkillsNetwork898-2022-01-01&code=python#translate
and include in my code the following line :
language_translator.set_disable_ssl_verification(True)
but I still get the same error message.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.