ValdikSS / blockcheck

Russian ISP blocking type checker NOTE: NOT WORKING CURRENTLY. ВНИМАНИЕ: НЕ РАБОТАЕТ НА ТЕКУЩИЙ МОМЕНТ
MIT License
1.37k stars 143 forks source link

Missing package dependencies #3

Closed ZyX-I closed 10 years ago

ZyX-I commented 10 years ago

When trying to install the package with

/usr/lib/python-exec/python3.3/pip install git+https://github.com/ValdikSS/blockcheck

(pip.conf includes [install] user = true) I get the “No module named 'cx_Freeze'” error that gets fixed by installing cx_Freeze.

Full log:

Downloading/unpacking git+https://github.com/ValdikSS/blockcheck
  Cloning https://github.com/ValdikSS/blockcheck to /tmp/pip-hq24cl-build
  Running setup.py egg_info for package from git+https://github.com/ValdikSS/blockcheck
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/tmp/pip-hq24cl-build/setup.py", line 3, in <module>
        from cx_Freeze import setup, Executable
    ImportError: No module named 'cx_Freeze'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/tmp/pip-hq24cl-build/setup.py", line 3, in <module>

    from cx_Freeze import setup, Executable

ImportError: No module named 'cx_Freeze'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-hq24cl-build
Storing complete log in ~/.log/pip-file.log
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.3/pip", line 9, in <module>
    load_entry_point('pip==1.4.1', 'console_scripts', 'pip')()
  File "/usr/lib64/python3.3/site-packages/pip/__init__.py", line 148, in main
    return command.main(args[1:], options)
  File "/usr/lib64/python3.3/site-packages/pip/basecommand.py", line 176, in main
    logger.fatal('Storing complete log in %s' % log_fn)
  File "/usr/lib64/python3.3/site-packages/pip/log.py", line 48, in fatal
    self.log(self.FATAL, msg, *args, **kw)
  File "/usr/lib64/python3.3/site-packages/pip/log.py", line 75, in log
    backwardcompat.fwrite(consumer, rendered)
  File "/usr/lib64/python3.3/site-packages/pip/backwardcompat/__init__.py", line 59, in fwrite
    f.buffer.write(b(s))
ValueError: write to closed file
ValdikSS commented 10 years ago

setup.py is used only for building standalone executables for Windows.

ZyX-I commented 10 years ago

@ValdikSS It is not what it is designed for.

ValdikSS commented 10 years ago

This is not a package. There is no point in installing it with pip.

ZyX-I commented 10 years ago

setup.py is for packages. There is no point in using setup.py for something that cannot be installed by pip. It will not work worse if you name it build.py, but I would not expect it to be installable by pip then.

ValdikSS commented 10 years ago

Fixed in commit d61844d