Posts

Showing posts with the label python

Combined letters in Unicode - How to used with Python

Image
 I have to utlised the combined letters of Sinhala for my study. This is not a problem of English, however, a language having vowel sounds by combining parts with a letter, the analysis of letters within the word ideally need to carry out with combing parts.   Output : ['ඵ', ';', '\u200c', ':', 'ෙ', 'ු', 'ඕ', 'c', 'ප', 'ථ', 'ඥ', 'x', '්', '2', '☔', 'උ', 'n', 'ම', '3', '}', '?', 'ඃ', 'ත', 'හ', '0', 'ො', 'z', 'ෲ', ',', 'ඔ', 'ඳ', 'i', 'ං', '▪', 'ි', '[', 'ඤ', 'ස', 'b', 'ූ', '_', '☁', 'ඟ', 'ඩ', 'ෑ', 'ේ', '1', 'අ', 'ආ', 'ට', 'ී', 'q', '•', 'd', 'ද', '–

Mac OSX version 10.12 - There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping

Image
This is a common issue I have seen in Mac OSX when I try to use pip. eg:sudo pip install -t lib -r requirements.txt   Could not fetch URL https://pypi.python.org/simple/google-api-python-client/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping However the reason for the problem is pip version update  with relevant to underlying OSX infrastructure. You have to identify which version of pip is there within mac OS.  Run brew install python    Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to `python3`, `python3-config`, `pip3` etc., respectively, have been installed into

python.exe: Resolve "command not found"

Recently when I was working on hosting Django site in Windows 7 machine I came up through the following error (python command not found) $ c:\Python27\python.exe django-admin.py startproject myproject . sh.exe": c:Python27python.exe: command not found Frist I discovered it is because of not having back -slash  and I added (\\)  $ c:\\Python27\\python.exe django-admin.py startproject myproject . c:\Python27\python.exe: can't open file 'django-admin.py': [Errno 2] No such fil e or directory In this way you can invoke phthon.exe without adding it to environmental variables by giving absolute location. (c:\Python27\python.exe) However another error still persisting "can't open file 'django-admin.py': [Errno 2] No such fil e or directory". Since django is located in the site packages it also required to give the absolute parth. In my case it is "C:\\Python27\\Lib\\site-packages\\django\\bin\\django-admin.py" So that below