Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #18578 > unrolled thread

Re: problem to install Flask

Started byMRAB <python@mrabarnett.plus.com>
First post2012-01-06 03:05 +0000
Last post2012-01-06 00:01 -0800
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: problem to install  Flask MRAB <python@mrabarnett.plus.com> - 2012-01-06 03:05 +0000
    Re: problem to install  Flask 88888 Dihedral <dihedral88888@googlemail.com> - 2012-01-06 00:01 -0800
    Re: problem to install  Flask 88888 Dihedral <dihedral88888@googlemail.com> - 2012-01-06 00:01 -0800

#18578 — Re: problem to install Flask

FromMRAB <python@mrabarnett.plus.com>
Date2012-01-06 03:05 +0000
SubjectRe: problem to install Flask
Message-ID<mailman.4467.1325819069.27778.python-list@python.org>
On 06/01/2012 02:24, 水静流深 wrote:
> ~$ sudo easy_install Flask
> Searching for Flask
> Reading http://pypi.python.org/simple/Flask/
> Reading http://github.com/mitsuhiko/flask/
> Best match: Flask 0.8
> Downloading
> http://pypi.python.org/packages/source/F/Flask/Flask-0.8.tar.gz#md5=a5169306cfe49b3b369086f2a63816ab
> Processing Flask-0.8.tar.gz
> Running Flask-0.8/setup.py -q bdist_egg --dist-dir
> /tmp/easy_install-tnoyjj/Flask-0.8/egg-dist-tmp-pq04_a
> Traceback (most recent call last):
> File "/usr/local/bin/easy_install", line 9, in <module>
> load_entry_point('distribute==0.6.24', 'console_scripts', 'easy_install')()
> File
> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> line 1883, in main
> with_ei_usage(lambda:
> File
> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> line 1864, in with_ei_usage
> return f()
> File
> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> line 1887, in <lambda>
> distclass=DistributionWithoutHelpCommands, **kw
> File "/usr/local/lib/python3.2/distutils/core.py", line 148, in setup
> dist.run_commands()
> File "/usr/local/lib/python3.2/distutils/dist.py", line 917, in run_commands
> self.run_command(cmd)
> File "/usr/local/lib/python3.2/distutils/dist.py", line 936, in run_command
> cmd_obj.run()
> File
> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> line 349, in run
> self.easy_install(spec, not self.no_deps)
> File
> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> line 589, in easy_install
> return self.install_item(spec, dist.location, tmpdir, deps)
> File
> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> line 619, in install_item
> dists = self.install_eggs(spec, download, tmpdir)
> File
> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> line 809, in install_eggs
> return self.build_and_install(setup_script, setup_base)
> File
> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> line 1086, in build_and_install
> self.run_setup(setup_script, setup_base, args)
> File
> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> line 1075, in run_setup
> run_setup(setup_script, args)
> File
> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/sandbox.py",
> line 31, in run_setup
> lambda: exec(compile(open(
> File
> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/sandbox.py",
> line 73, in run
> return func()
> File
> "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/sandbox.py",
> line 33, in <lambda>
> ).read(), "setup.py", 'exec'),
> File "setup.py", line 62
> print "Audit requires PyFlakes installed in your system."""
> ^
> SyntaxError: invalid syntax
>
>
> what is the matter?
>
The syntax of this line:

print "Audit requires PyFlakes installed in your system."

tells me that it's written for Python 2, but this:

/usr/local/lib/python3.2

tells me that you're using Python 3.

In Python 2, "print" is a statement; in Python 3 it's a function.

[toc] | [next] | [standalone]


#18589

From88888 Dihedral <dihedral88888@googlemail.com>
Date2012-01-06 00:01 -0800
Message-ID<mailman.4474.1325836867.27778.python-list@python.org>
In reply to#18578
MRAB於 2012年1月6日星期五UTC+8上午11時05分03秒寫道:
> On 06/01/2012 02:24, 水静流深 wrote:
> > ~$ sudo easy_install Flask
> > Searching for Flask
> > Reading http://pypi.python.org/simple/Flask/
> > Reading http://github.com/mitsuhiko/flask/
> > Best match: Flask 0.8
> > Downloading
> > http://pypi.python.org/packages/source/F/Flask/Flask-0.8.tar.gz#md5=a5169306cfe49b3b369086f2a63816ab
> > Processing Flask-0.8.tar.gz
> > Running Flask-0.8/setup.py -q bdist_egg --dist-dir
> > /tmp/easy_install-tnoyjj/Flask-0.8/egg-dist-tmp-pq04_a
> > Traceback (most recent call last):
> > File "/usr/local/bin/easy_install", line 9, in <module>
> > load_entry_point('distribute==0.6.24', 'console_scripts', 'easy_install')()
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 1883, in main
> > with_ei_usage(lambda:
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 1864, in with_ei_usage
> > return f()
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 1887, in <lambda>
> > distclass=DistributionWithoutHelpCommands, **kw
> > File "/usr/local/lib/python3.2/distutils/core.py", line 148, in setup
> > dist.run_commands()
> > File "/usr/local/lib/python3.2/distutils/dist.py", line 917, in run_commands
> > self.run_command(cmd)
> > File "/usr/local/lib/python3.2/distutils/dist.py", line 936, in run_command
> > cmd_obj.run()
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 349, in run
> > self.easy_install(spec, not self.no_deps)
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 589, in easy_install
> > return self.install_item(spec, dist.location, tmpdir, deps)
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 619, in install_item
> > dists = self.install_eggs(spec, download, tmpdir)
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 809, in install_eggs
> > return self.build_and_install(setup_script, setup_base)
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 1086, in build_and_install
> > self.run_setup(setup_script, setup_base, args)
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 1075, in run_setup
> > run_setup(setup_script, args)
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/sandbox.py",
> > line 31, in run_setup
> > lambda: exec(compile(open(
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/sandbox.py",
> > line 73, in run
> > return func()
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/sandbox.py",
> > line 33, in <lambda>
> > ).read(), "setup.py", 'exec'),
> > File "setup.py", line 62
> > print "Audit requires PyFlakes installed in your system."""
> > ^
> > SyntaxError: invalid syntax
> >
> >
> > what is the matter?
> >
> The syntax of this line:
> 
> print "Audit requires PyFlakes installed in your system."
> 
> tells me that it's written for Python 2, but this:
> 
> /usr/local/lib/python3.2
> 
> tells me that you're using Python 3.
> 
> In Python 2, "print" is a statement; in Python 3 it's a function.

http://docs.python.org/library/2to3.html

I am studying the Python 2 to 3 module for code generation techniques
under my debugged environments by various operating systems such as 
 the linux, Windows or Apples. 
 
Python is an excellent programming language that really support 
cross platform SW developments. 

[toc] | [prev] | [next] | [standalone]


#18590

From88888 Dihedral <dihedral88888@googlemail.com>
Date2012-01-06 00:01 -0800
Message-ID<21175980.655.1325836864075.JavaMail.geo-discussion-forums@preg25>
In reply to#18578
MRAB於 2012年1月6日星期五UTC+8上午11時05分03秒寫道:
> On 06/01/2012 02:24, 水静流深 wrote:
> > ~$ sudo easy_install Flask
> > Searching for Flask
> > Reading http://pypi.python.org/simple/Flask/
> > Reading http://github.com/mitsuhiko/flask/
> > Best match: Flask 0.8
> > Downloading
> > http://pypi.python.org/packages/source/F/Flask/Flask-0.8.tar.gz#md5=a5169306cfe49b3b369086f2a63816ab
> > Processing Flask-0.8.tar.gz
> > Running Flask-0.8/setup.py -q bdist_egg --dist-dir
> > /tmp/easy_install-tnoyjj/Flask-0.8/egg-dist-tmp-pq04_a
> > Traceback (most recent call last):
> > File "/usr/local/bin/easy_install", line 9, in <module>
> > load_entry_point('distribute==0.6.24', 'console_scripts', 'easy_install')()
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 1883, in main
> > with_ei_usage(lambda:
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 1864, in with_ei_usage
> > return f()
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 1887, in <lambda>
> > distclass=DistributionWithoutHelpCommands, **kw
> > File "/usr/local/lib/python3.2/distutils/core.py", line 148, in setup
> > dist.run_commands()
> > File "/usr/local/lib/python3.2/distutils/dist.py", line 917, in run_commands
> > self.run_command(cmd)
> > File "/usr/local/lib/python3.2/distutils/dist.py", line 936, in run_command
> > cmd_obj.run()
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 349, in run
> > self.easy_install(spec, not self.no_deps)
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 589, in easy_install
> > return self.install_item(spec, dist.location, tmpdir, deps)
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 619, in install_item
> > dists = self.install_eggs(spec, download, tmpdir)
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 809, in install_eggs
> > return self.build_and_install(setup_script, setup_base)
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 1086, in build_and_install
> > self.run_setup(setup_script, setup_base, args)
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/easy_install.py",
> > line 1075, in run_setup
> > run_setup(setup_script, args)
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/sandbox.py",
> > line 31, in run_setup
> > lambda: exec(compile(open(
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/sandbox.py",
> > line 73, in run
> > return func()
> > File
> > "/usr/local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/sandbox.py",
> > line 33, in <lambda>
> > ).read(), "setup.py", 'exec'),
> > File "setup.py", line 62
> > print "Audit requires PyFlakes installed in your system."""
> > ^
> > SyntaxError: invalid syntax
> >
> >
> > what is the matter?
> >
> The syntax of this line:
> 
> print "Audit requires PyFlakes installed in your system."
> 
> tells me that it's written for Python 2, but this:
> 
> /usr/local/lib/python3.2
> 
> tells me that you're using Python 3.
> 
> In Python 2, "print" is a statement; in Python 3 it's a function.

http://docs.python.org/library/2to3.html

I am studying the Python 2 to 3 module for code generation techniques
under my debugged environments by various operating systems such as 
 the linux, Windows or Apples. 
 
Python is an excellent programming language that really support 
cross platform SW developments. 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web