python setup.py install
give you error like:
[SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) -- Some packages may not be found!
it may be caused by outdate OpenSSL. But if after executing:
python -c "import ssl; print(ssl.OPENSSL_VERSION)"
you see something like:
OpenSSL 1.0.2n 7 Dec 2017
then your SSL is pretty good. What to do then?
1. If you are in Virtual Env mode, deactivate it
2. Remove your Virtual Env
3. Run “brew update”
4. Run “brew install openssl” just in case
5. Run “brew install python3”
Next thing is check available python versions which you can use in venv:
If you will see only “3.5”, go to python.org and download newest MacOs package (currently 3.6.5) then install as usual.
After installing make you that:
Now you can create new Virtual Env with forced python 3.6:
virtualenv envname --python=python3.6
Now installing packages should work.
Yesterday, after long period of API testing, new version was submitted gor review, the most important changes:
- trakt.tv synchronization
- switched to our own API – currently only for updating data, in next version for all operations
New API is built using Python 3.3 with Flask framework and MySql database
Python is an interpreted, interactive, object-oriented programming language. It is often compared to Tcl, Perl, Scheme, or Java.
Version 3.4.0 changes:
- PEP 428, a “pathlib” module providing object-oriented filesystem paths
- PEP 435, a standardized “enum” module
- PEP 436, a build enhancement that will help generate introspection information for builtins
- PEP 442, improved semantics for object finalization
- PEP 443, adding single-dispatch generic functions to the standard library
- PEP 445, a new C API for implementing custom memory allocators
- PEP 446, changing file descriptors to not be inherited by default in subprocesses
- PEP 450, a new “statistics” module
- PEP 451, standardizing module metadata for Python’s module import system
- PEP 453, a bundled installer for the pip package manager
- PEP 454, a new “tracemalloc” module for tracing Python memory allocations
- PEP 456, a new hash algorithm for Python strings and binary data
- PEP 3154, a new and improved protocol for pickled objects
- PEP 3156, a new “asyncio” module, a new framework for asynchronous I/O
Intel, OS X 10.6 or later
Not so long time ago I started using GAE (Google AppEngine) with Python, and so many questions came, some hard to find on google. This multipart tutorial is for guys like me, so you don’t need to google anymore to find what you need to start with writing python apps on GAE.
Today I faced with such problem – logs were delayed by about 30 minuted which maked development impossible, solution was pretty simple – I had to change timezone back to Pacific Time GMT-7