← Back to team overview

divmod-dev team mailing list archive

[Bug 794331] Re: pyflakes script not executable on Windows

 

I get this trying to use pyflakes on Windows (Python 2.6 - windows 7 -
pyflakes 0.4.0):

C:\My Dropbox\RoboRally\RoboRallyIronPython
> pyflakes MyBrain.py
Traceback (most recent call last):
  File "C:\Python26\Scripts\pyflakes.py", line 3, in <module>
    from pyflakes.scripts.pyflakes import main
  File "C:\Python26\Scripts\pyflakes.py", line 3, in <module>
    from pyflakes.scripts.pyflakes import main
ImportError: No module named scripts.pyflakes

That is after installation with easy_install. Using pip it doesn't
install an executable script for Windows at all.

-- 
You received this bug notification because you are a member of Divmod-
dev, which is the registrant for Pyflakes.
https://bugs.launchpad.net/bugs/794331

Title:
  pyflakes script not executable on Windows

Status in Pyflakes:
  New

Bug description:
  Pyflakes script is installed on Windows without any extension. As a
  result, on Windows, it has no file type and cannot be executed from a
  command-line. Consider using setuptools console_script entry_points or
  adding a .py extension when installing under Windows.

  PS C:\Users\jaraco> easy_install pyflakes
  Searching for pyflakes
  Reading http://pypi.python.org/simple/pyflakes/
  Reading http://www.divmod.org/projects/pyflakes
  Reading http://www.divmod.org/trac/wiki/DivmodPyflakes
  Best match: pyflakes 0.4.0
  Downloading http://pypi.python.org/packages/source/p/pyflakes/pyflakes-0.4.0.tar.gz#md5=630a72510aae8758f48cf60e4fa17176
  Processing pyflakes-0.4.0.tar.gz
  Running pyflakes-0.4.0\setup.py -q bdist_egg --dist-dir c:\users\jaraco\appdata\local\temp\easy_install-bi_1bs\pyflakes-0.4.0\egg-dist-tmp-u6vcvn
  hgtools.SubprocessManager('.') could not find files: abort: There is no Mercurial repository here (.hg not found)!
  zip_safe flag not set; analyzing archive contents...
  pyflakes.checker: module references __file__
  pyflakes.checker: module references __path__
  pyflakes.test.test_undefined_names: module references __file__
  pyflakes.test.test_undefined_names: module references __path__
  Adding pyflakes 0.4.0 to easy-install.pth file
  Installing pyflakes script to C:\Python\Scripts

  Installed c:\python\lib\site-packages\pyflakes-0.4.0-py2.7.egg
  Processing dependencies for pyflakes
  Finished processing dependencies for pyflakes

To manage notifications about this bug go to:
https://bugs.launchpad.net/pyflakes/+bug/794331/+subscriptions


References