analitics

Pages

Showing posts with label 2015 news. Show all posts
Showing posts with label 2015 news. Show all posts

Sunday, November 22, 2015

The new Python 2.7.11rc1.

The next release in the 2.7.x series is now available with the version 2.7.11.rc.1 .
This can be download it from here.
Come with source release, installer for Windows, Mac OS X 10.6 and later.
I don't use linux instalation, just on Windows 10 - 64 MSI installer.
The changes of this version can be see here.
First I saw this python version will change my old python 2.7 version.

Also I check to compile all python scripts and module.
With installed Python 2.7 I check if is all ok.

C:\Python27>python.exe
Python 2.7.11rc1 (v2.7.11rc1:82dd9545bd93, Nov 21 2015, 23:25:27) [MSC v.1500 64
 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
Also I got a list of all available modules...
No handlers could be found for logger "OpenGL.Tk"
ImportError: numpy.core.multiarray failed to import
BaseHTTPServer      audioop             imaplib             scrap
Bastion             base                imghdr              select
BeautifulSoup       base64              imp                 sets
BeautifulSoupTests  bdb                 importlib           setuptools
CGIHTTPServer       binascii            imputil             sgmllib
Canvas              binhex              inspect             sha
ConfigParser        bisect              io                  shellescape
Cookie              bs4                 itertools           shelve
Dialog              bsddb               joystick            shelve_test
DocXMLRPCServer     bufferproxy         json                shlex
FileDialog          bz2                 key                 shutil
FixTk               cPickle             keyword             signal
HTMLParser          cProfile            lib2to3             simplejson
MimeWriter          cStringIO           linecache           site
Naked               cached_property     locale              six
OpenGL              calendar            locals              smtpd
PIL                 camera              logging             smtplib
PySide              cdrom               mac_scrap           sndarray
Queue               cgi                 macosx              sndhdr
ScrolledText        cgitb               macpath             socket
SimpleDialog        chunk               macurl2path         sprite
SimpleHTTPServer    cmath               mailbox             sqlite3
SimpleXMLRPCServer  cmd                 mailcap             sre
SocketServer        code                markupbase          sre_compile
StringIO            codecs              marshal             sre_constants
Tix                 codeop              mask                sre_parse
Tkconstants         collections         math                ssl
Tkdnd               color               md5                 stat
Tkinter             colorama            mhlib               statvfs
UserDict            colordict           midi                string
UserList            colorsys            mimetools           stringold
UserString          commands            mimetypes           stringprep
_LWPCookieJar       compat              mimify              strop
_MozillaCookieJar   compileall          mixer               struct
__builtin__         compiler            mixer_music         subprocess
__future__          constants           mmap                sunau
_abcoll             contextlib          modulefinder        sunaudio
_arraysurfarray     cookielib           mouse               surface
_ast                copy                movie               surfarray
_bisect             copy_reg            msilib              surflock
_bsddb              crypto              msvcrt              symbol
_camera             csv                 multifile           symtable
_camera_opencv_highgui ctypes              multiprocessing     sys
_camera_vidcapture  curses              mutex               sysconfig
_codecs             cursors             netrc               sysfont
_codecs_cn          cv                  new                 tabnanny
_codecs_hk          cv2                 newbuffer           tarfile
_codecs_iso2022     datetime            nmovie              telnetlib
_codecs_jp          dateutil            nntplib             tempfile
_codecs_kr          dbhash              nt                  test
_codecs_tw          decimal             ntpath              test27
_collections        decorator           nturl2path          test_crypto_python
_csv                difflib             numbers             tests
_ctypes             dircache            numpy               textwrap
_ctypes_test        dis                 oauth2client        this
_dummybackend       display             opcode              thread
_elementtree        distutils           operator            threading
_freetype           docs                optparse            threads
_functools          doctest             os                  time
_hashlib            draw                os2emxpath          timeit
_heapq              dumbdbm             overlay             tkColorChooser
_hotshot            dummy_thread        parser              tkCommonDialog
_io                 dummy_threading     pdb                 tkFileDialog
_json               easy_install        pickle              tkFont
_locale             ecdsa               pickletools         tkMessageBox
_lsprof             email               pip                 tkSimpleDialog
_markerlib          encodings           pipes               toaiff
_md5                ensurepip           pixelarray          token
_msi                errno               pixelcopy           tokenize
_multibytecodec     event               pkg_resources       trace
_multiprocessing    examples            pkgdata             traceback
_numericsndarray    exceptions          pkgutil             transform
_numericsurfarray   extraction          platform            ttk
_numpysndarray      fastevent           plistlib            tty
_numpysurfarray     filecmp             popen2              turtle
_osx_support        fileinput           poplib              types
_pyio               fnmatch             posixfile           unicodedata
_pytest             font                posixpath           unittest
_random             formatter           pprint              uritemplate
_sha                fpformat            profile             url-scrap
_sha256             fractions           pstats              urllib
_sha512             freetype            pty                 urllib2
_socket             ftfont              py                  urllib3
_sqlite3            ftplib              py_compile          urlparse
_sre                functools           pyasn1              urwid
_ssl                future_builtins     pyasn1_modules      user
_strptime           gc                  pyclbr              uu
_struct             genericpath         pycuda              uuid
_subprocess         get-pip             pydoc               version
_symtable           getopt              pydoc_data          vidcap
_testcapi           getpass             pyexpat             virtualenv
_threading_local    gettext             pygame              virtualenv_support
_tkinter            gfxdraw             pypm                warnings
_vlcbackend         glob                pysideuic           wave
_warnings           googleapiclient     pytest              weakref
_weakref            gp2x                pytools             webbrowser
_weakrefset         gzip                pytz                wheel
_winreg             hashlib             quopri              whichdb
abc                 heapq               random              winsound
aifc                hmac                re                  wsgiref
antigravity         hotshot             rect                xdrlib
anydbm              html5lib            repr                xlsxwriter
apiclient           htmlentitydefs      requests            xml
appdirs             htmllib             rexec               xmllib
argparse            httplib             rfc822              xmlrpclib
array               httplib2            rlcompleter         xxsubtype
ast                 idlelib             robotparser         yaml
asynchat            ihooks              rsa                 yt
asyncore            image               runpy               zipfile
atexit              imageext            rwobject            zipimport
audiodev            imageop             sched               zlib

Enter any module name to get more help.  Or, type "modules spam" to search
for modules whose descriptions contain the word "spam".
I update some module with pip2.7
C:\Python27\Scripts>C:\Python27\python.exe
Python 2.7.11rc1 (v2.7.11rc1:82dd9545bd93, Nov 21 2015, 23:25:27) [MSC v.1500 64
 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pip
>>> from subprocess import call
>>>
>>> for dist in pip.get_installed_distributions():
...     call("pip2.7.exe install --upgrade " + dist.project_name, shell=True)
...
Requirement already up-to-date: appdirs in c:\python27\lib\site-packages
0
Requirement already up-to-date: BeautifulSoup in c:\python27\lib\site-packages
0
Collecting beautifulsoup4
  Downloading beautifulsoup4-4.4.1-py2-none-any.whl (81kB)
    100% |################################| 81kB 327kB/s
Installing collected packages: beautifulsoup4
  Found existing installation: beautifulsoup4 4.3.2
    Uninstalling beautifulsoup4-4.3.2:
      Successfully uninstalled beautifulsoup4-4.3.2
Successfully installed beautifulsoup4-4.4.1
0
Some python modules has problems with update...

  Failed building wheel for pycuda
Note:
I think the python has some problems with keep and clean correct modules under pip.
Also I guest can be done with few rows of python scripts but also this can be done by default by python installation.

Sunday, November 8, 2015

WinPython - news and old stuff.

First good news: the team tells us about the WinPython will come with new release of WinPython.
This will be 3.4.3.7 version of WinPython and this will be great for most of users.
I love this portable python because first is easy to use and can easy test my python scripts.
One goal of this portable python it's the demos. I found some great demos with PyQt4 and networkx.

Also you can use Spyder to make your python scripts.
It's a free open-source development environment for the Python programming language.
This visual interface similar to MATLAB where you can run commands, edit and debug programs, check the values of variables and the definitions of functions, etc.
If you just getting started with Python then just take a look at google.com/edu/python.
The WinPython Control Panel allows to register your WinPython distribution to Windows with Advanced - Register distribution ...:
...and this allow you to:
  • associate file extensions .py, .pyc and .pyo to Python interpreter
  • register Python icons in Windows explorer
  • add context menu entries Edit with IDLE and Edit with Spyder for .py files
  • register WinPython as a standard Python distribution in the registry (the same way as the standard Python Windows installers will do)
Also you can use Jupyter Notebook web application.
This allow you to:
The Jupyter Notebook is a web application that allows you to create and share documents that contain live code, equations, visualizations and explanatory text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, machine learning and much more.

Sunday, August 23, 2015

Pillow python module with Python 3.4.1 .

This simple tutorial about PIL and Pillow python modules can show you how to install the Pillow python module.
I used pip3.4 and python 3.4.1 version.
Some problems about how to write your source code can be found : porting pil to pillow.

Friday, April 24, 2015

The new release Python 3.5.0a4 - tutorial.

I install the Windows amd64 web-based installer. This allow me to use the windows gui to make all settings.
You also need some administrator privileges for C Runtime ...

Some notes about this installation process:
  • If you have previously installed Python 3.5.0a1, you may need to manually uninstall it.
  • If installing Python 3.5.0a4 as a non-privileged user, you may need to escalate to administrator privileges to install an update to your C runtime libraries.
  • Python 3.5 now has an embeddable installer designed to be run as part of a larger application's installer for apps using or extending Python.There is now a third type of Windows installer for Python 3.5.
You can find your python files under \AppData\Local\Programs\Python\Python35.
The Python35 have python.exe, see:
Python 3.5.0a4 (v3.5.0a4:413e0e0004f4, Apr 19 2015, 18:01:47) [MSC v.1900 64 bit
 (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
Let's see all defaul Python35 modules:
__future__          abc                 hmac                select
_ast                aifc                html                selectors
_bisect             antigravity         http                setuptools
_bootlocale         argparse            idlelib             shelve
_bz2                array               imaplib             shlex
_codecs             ast                 imghdr              shutil
_codecs_cn          asynchat            imp                 signal
_codecs_hk          asyncio             importlib           site
_codecs_iso2022     asyncore            inspect             smtpd
_codecs_jp          atexit              io                  smtplib
_codecs_kr          audioop             ipaddress           sndhdr
_codecs_tw          base64              itertools           socket
_collections        bdb                 json                socketserver
_collections_abc    binascii            keyword             sqlite3
_compat_pickle      binhex              lib2to3             sre_compile
_compression        bisect              linecache           sre_constant
_csv                builtins            locale              sre_parse
_ctypes             bz2                 logging             ssl
_ctypes_test        cProfile            lzma                stat
_datetime           calendar            macpath             statistics
_decimal            cgi                 macurl2path         string
_dummy_thread       cgitb               mailbox             stringprep
_elementtree        chunk               mailcap             struct
_functools          cmath               marshal             subprocess
_hashlib            cmd                 math                sunau
_heapq              code                mimetypes           symbol
_imp                codecs              mmap                symtable
_io                 codeop              modulefinder        sys
_json               collections         msilib              sysconfig
_locale             colorsys            msvcrt              tabnanny
_lsprof             compileall          multiprocessing     tarfile
_lzma               concurrent          netrc               telnetlib
_markerlib          configparser        nntplib             tempfile
_markupbase         contextlib          nt                  test
_md5                copy                ntpath              textwrap
_msi                copyreg             nturl2path          this
_multibytecodec     crypt               numbers             threading
_multiprocessing    csv                 opcode              time
_opcode             ctypes              operator            timeit
_operator           curses              optparse            tkinter
_osx_support        datetime            os                  token
_overlapped         dbm                 parser              tokenize
_pickle             decimal             pathlib             trace
_pydecimal          difflib             pdb                 traceback
_pyio               dis                 pickle              tracemalloc
_random             distutils           pickletools         tty
_sha1               doctest             pip                 turtle
_sha256             dummy_threading     pipes               turtledemo
_sha512             easy_install        pkg_resources       types
_signal             email               pkgutil             unicodedata
_sitebuiltins       encodings           platform            unittest
_socket             ensurepip           plistlib            urllib
_sqlite3            enum                poplib              uu
_sre                errno               posixpath           uuid
_ssl                faulthandler        pprint              venv
_stat               filecmp             profile             warnings
_string             fileinput           pstats              wave
_strptime           fnmatch             pty                 weakref
_struct             formatter           py_compile          webbrowser
_symtable           fractions           pyclbr              winreg
_testbuffer         ftplib              pydoc               winsound
_testcapi           functools           pydoc_data          wsgiref
_testimportmultiple gc                  pyexpat             xdrlib
_thread             genericpath         queue               xml
_threading_local    getopt              quopri              xmlrpc
_tkinter            getpass             random              xxsubtype
_tracemalloc        gettext             re                  zipapp
_warnings           glob                reprlib             zipfile
_weakref            gzip                rlcompleter         zipimport
_weakrefset         hashlib             runpy               zlib
_winapi             heapq               sched
Also the this version come with pip3.5 under Script folder to use pip solution.
You can run some demos with this \Python35>python.exe Tools\demo\.
The all download files come with this options:
Gzipped source tarball Source release 34667f07604352a4a1ef4651dcb7f870 19874914 SIG
XZ compressed source tarball Source release dd8d2dcb8c8b301d57228be896317612 14704088 SIG
Mac OS X 32-bit i386/PPC installer Mac OS X for Mac OS X 10.5 and later c648d4f3f02ce06d839e2b754e8382bc 25250926 SIG
Mac OS X 64-bit/32-bit installer Mac OS X for Mac OS X 10.6 and later d7321ddabc46927fd619a694c0d87086 23587943 SIG
Windows amd64 embeddable installer Windows b2c3001cd03d478293680f88beaf5218 6660944 SIG
Windows amd64 web-based installer Windows b2c3001cd03d478293680f88beaf5218 912024 SIG
Windows amd executable installer Windows 5ca6f1dcc56c66065d874420ae95ea23 29316824 SIG
Windows help file Windows d5434e2cf712ebdf11ede3b6cdb43a64 7581518 SIG
Windows x86 embeddable installer Windows 32f1d62bc4cad46e5bf3444d648e53f0 6068184 SIG
Windows x86 executable installer Windows a220359f4f6cefcc316504cccd3dc0fb 28459976 SIG
Windows x86 web-based installer Windows dd6712fe691f4212fb9e516541103721 886400 SIG

See more about this new release here.
You can see also the new beta python module with all issues.

Friday, February 27, 2015

News: Python 3.4.3 is out.

Python 3.4.3 was released on February 25th, 2015 with many bugfixes and other small improvements.
More about that and can be found here.
This are the new library modules from this new release :
  • asyncio: New provisional API for asynchronous IO (PEP 3156).
  • ensurepip: Bootstrapping the pip installer (PEP 453).
  • enum: Support for enumeration types (PEP 435).
  • pathlib: Object-oriented filesystem paths (PEP 428).
  • selectors: High-level and efficient I/O multiplexing, built upon the select module primitives (part of PEP 3156).
  • statistics: A basic numerically stable statistics library (PEP 450).
  • tracemalloc: Trace Python memory allocations (PEP 454).
NOTE: The PEP contains the index of all Python Enhancement Proposals are assigned by the PEP editors, and once assigned are never changed

Sunday, January 4, 2015

News: FOSDEM 2015 and python room.

FOSDEM is a free event that offers open source communities a place to meet, share ideas and collaborate. It is renowned for being highly developer-oriented and brings together 5000+ geeks from all over the world.
You can find a schedule of python room here.
The FOSDEM 2015 will take place at ULB Campus Solbosch on Saturday 31 January and Sunday 1 February 2015 - Brussels.
Also no registration necessary on this event , according to FOSDEM website.