Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError when installing via pip #4

Closed
felciano opened this issue Aug 6, 2012 · 3 comments
Closed

AttributeError when installing via pip #4

felciano opened this issue Aug 6, 2012 · 3 comments

Comments

@felciano
Copy link

felciano commented Aug 6, 2012

When trying to install biopy-isatab via pip I run into an AttributeError when it tries to create the install egg. We would like to try using this package in a deployed virtual environment via pip. Can someone please take a look at this?

Thx!


C:\Dropbox\Code\isa-tab>pip install biopy-isatab
Downloading/unpacking biopy-isatab
  Downloading biopy-isatab-0.1.tar.gz
  Running setup.py egg_info for package biopy-isatab

    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "C:\Dropbox\Code\isa-tab\build\biopy-isatab\setup.py", line 16, in <module>
        install_requires = [
      File "C:\Python27\lib\distutils\core.py", line 152, in setup
        dist.run_commands()
      File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
        cmd_obj.run()
      File "<string>", line 12, in replacement_run
      File "C:\Python27\lib\site-packages\setuptools\command\egg_info.py", line 254, in find_sources
        mm.run()
      File "C:\Python27\lib\site-packages\setuptools\command\egg_info.py", line 310, in run
        self.read_template()
      File "C:\Python27\lib\site-packages\setuptools\command\sdist.py", line 209, in read_template
        sys.exc_info()[2].tb_next.tb_frame.f_locals['template'].close()
      File "C:\Python27\lib\distutils\text_file.py", line 128, in close
        self.file.close ()
    AttributeError: 'NoneType' object has no attribute 'close'
    Complete output from command python setup.py egg_info:
    running egg_info

creating pip-egg-info\biopy_isatab.egg-info

writing pip-egg-info\biopy_isatab.egg-info\PKG-INFO

writing namespace_packages to pip-egg-info\biopy_isatab.egg-info\namespace_packages.txt

writing top-level names to pip-egg-info\biopy_isatab.egg-info\top_level.txt

writing dependency_links to pip-egg-info\biopy_isatab.egg-info\dependency_links.txt

writing manifest file 'pip-egg-info\biopy_isatab.egg-info\SOURCES.txt'

warning: manifest_maker: standard file '-c' not found



reading manifest file 'pip-egg-info\biopy_isatab.egg-info\SOURCES.txt'

reading manifest template 'MANIFEST.in'

Traceback (most recent call last):

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

  File "C:\Dropbox\Code\isa-tab\build\biopy-isatab\setup.py", line 16, in <module>

    install_requires = [

  File "C:\Python27\lib\distutils\core.py", line 152, in setup

    dist.run_commands()

  File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands

    self.run_command(cmd)

  File "C:\Python27\lib\distutils\dist.py", line 972, in run_command

    cmd_obj.run()

  File "<string>", line 12, in replacement_run

  File "C:\Python27\lib\site-packages\setuptools\command\egg_info.py", line 254, in find_sources

    mm.run()

  File "C:\Python27\lib\site-packages\setuptools\command\egg_info.py", line 310, in run

    self.read_template()

  File "C:\Python27\lib\site-packages\setuptools\command\sdist.py", line 209, in read_template

    sys.exc_info()[2].tb_next.tb_frame.f_locals['template'].close()

  File "C:\Python27\lib\distutils\text_file.py", line 128, in close

    self.file.close ()

AttributeError: 'NoneType' object has no attribute 'close'

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in C:\Users\felciano\AppData\Roaming\pip\pip.log

C:\Dropbox\Code\isa-tab>pip install biopy-isatab
@felciano
Copy link
Author

felciano commented Aug 6, 2012

Same error occurs with easy_install:

C:\Dropbox\Code\isa-tab>easy_install biopy-isatab
Searching for biopy-isatab
Reading http://pypi.python.org/simple/biopy-isatab/
Reading https://github.com/ISA-tools/biopy-isatab
Best match: biopy-isatab 0.1
Downloading http://pypi.python.org/packages/source/b/biopy-isatab/biopy-isatab-0.1.tar.gz#md5=15f4d074a56315787860cf28f6acdbe9
Processing biopy-isatab-0.1.tar.gz
Running biopy-isatab-0.1\setup.py -q bdist_egg --dist-dir c:\users\felciano\appdata\local\temp\easy_install-qgmdgb\biopy-isatab-0.1\egg-dist-tmp-bhtmad
Traceback (most recent call last):
  File "C:\Python27\Scripts\easy_install-script.py", line 9, in <module>
    load_entry_point('distribute==0.6.19', 'console_scripts', 'easy_install')()
  File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1864, in main
    with_ei_usage(lambda:
  File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1845, in with_ei_usage
    return f()
  File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1868, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "C:\Python27\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 345, in run
    self.easy_install(spec, not self.no_deps)
  File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 585, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 615, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 805, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1082, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1071, in run_setup
    run_setup(setup_script, args)
  File "C:\Python27\lib\site-packages\setuptools\sandbox.py", line 30, in run_setup
    lambda: execfile(
  File "C:\Python27\lib\site-packages\setuptools\sandbox.py", line 72, in run
    return func()
  File "C:\Python27\lib\site-packages\setuptools\sandbox.py", line 32, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 16, in <module>
  File "C:\Python27\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Python27\lib\site-packages\setuptools\command\bdist_egg.py", line 172, in run
    self.run_command("egg_info")
  File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Python27\lib\site-packages\setuptools\command\egg_info.py", line 179, in run
    self.find_sources()
  File "C:\Python27\lib\site-packages\setuptools\command\egg_info.py", line 254, in find_sources
    mm.run()
  File "C:\Python27\lib\site-packages\setuptools\command\egg_info.py", line 310, in run
    self.read_template()
  File "C:\Python27\lib\site-packages\setuptools\command\sdist.py", line 209, in read_template
    sys.exc_info()[2].tb_next.tb_frame.f_locals['template'].close()
  File "C:\Python27\lib\distutils\text_file.py", line 128, in close
    self.file.close ()
AttributeError: 'NoneType' object has no attribute 'close'

C:\Dropbox\Code\isa-tab>

@chapmanb
Copy link
Member

chapmanb commented Aug 7, 2012

Ramon;
Can you try with version 0.1.1, just pushed to pypi? I don't have a windows machine so can't replicate here, but tried a fix based on this Stackoverflow question:

http://stackoverflow.com/questions/9136375/django-file-picker-setup-py-broken

Hopefully that fixes it for you.

@chapmanb
Copy link
Member

Closing as fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants