Я пытаюсь установить средство выбора файлов django, но по какой-то причине кажется, что есть проблема с setup.py.Я не знаком с тем, как работает установка, так что это может быть что-то легко исправить, но я не могу сказать.Далее следы стеказагруженный пакет:
>pip install ./caktus-django-file-picker-c1d628d
Unpacking c:\users\marcin\documents\oneclickcos\caktus-django-file-picker-c1d628d
Running setup.py egg_info for package from file:///c%7C%5Cusers%5Cmarcin%5Cdocuments%5Coneclickcos%5Ccaktus-django-file-picker-c1d
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "c:\users\marcin\appdata\local\temp\pip-2kgmcr-build\setup.py", line 25, in <module>
zip_safe=False, # because we're including media that Django needs
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:\Users\Marcin\Documents\oneclickcos\lib\site-packages\setuptools\command\egg_info.py", line 252, in find_sources
mm.run()
File "C:\Users\Marcin\Documents\oneclickcos\lib\site-packages\setuptools\command\egg_info.py", line 308, in run
self.read_template()
File "C:\Users\Marcin\Documents\oneclickcos\lib\site-packages\setuptools\command\sdist.py", line 162, 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\django_file_picker.egg-info
writing requirements to pip-egg-info\django_file_picker.egg-info\requires.txt
writing pip-egg-info\django_file_picker.egg-info\PKG-INFO
writing top-level names to pip-egg-info\django_file_picker.egg-info\top_level.txt
writing dependency_links to pip-egg-info\django_file_picker.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\django_file_picker.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info\django_file_picker.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "c:\users\marcin\appdata\local\temp\pip-2kgmcr-build\setup.py", line 25, in <module>
zip_safe=False, # because we're including media that Django needs
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:\Users\Marcin\Documents\oneclickcos\lib\site-packages\setuptools\command\egg_info.py", line 252, in find_sources
mm.run()
File "C:\Users\Marcin\Documents\oneclickcos\lib\site-packages\setuptools\command\egg_info.py", line 308, in run
self.read_template()
File "C:\Users\Marcin\Documents\oneclickcos\lib\site-packages\setuptools\command\sdist.py", line 162, 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\Marcin\AppData\Roaming\pip\pip.log
(oneclickcos) C:\Users\Marcin\Documents\oneclickcos>python caktus-django-file-picker-c1d628d\setup.py
Traceback (most recent call last):
File "caktus-django-file-picker-c1d628d\setup.py", line 23, in <module>
long_description=open('README.rst').read(),
IOError: [Errno 2] No such file or directory: 'README.rst'
Из pypi:
>pip install django-file-picker
Running setup.py egg_info for package django-file-picker
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "C:\Users\Marcin\Documents\oneclickcos\build\django-file-picker\setup.py", line 25, in <module>
zip_safe=False, # because we're including media that Django needs
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:\Users\Marcin\Documents\oneclickcos\lib\site-packages\setuptools\command\egg_info.py", line 252, in find_sources
mm.run()
File "C:\Users\Marcin\Documents\oneclickcos\lib\site-packages\setuptools\command\egg_info.py", line 308, in run
self.read_template()
File "C:\Users\Marcin\Documents\oneclickcos\lib\site-packages\setuptools\command\sdist.py", line 162, 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\django_file_picker.egg-info
writing requirements to pip-egg-info\django_file_picker.egg-info\requires.txt
writing pip-egg-info\django_file_picker.egg-info\PKG-INFO
writing top-level names to pip-egg-info\django_file_picker.egg-info\top_level.txt
writing dependency_links to pip-egg-info\django_file_picker.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\django_file_picker.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info\django_file_picker.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "C:\Users\Marcin\Documents\oneclickcos\build\django-file-picker\setup.py", line 25, in <module>
zip_safe=False, # because we're including media that Django needs
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:\Users\Marcin\Documents\oneclickcos\lib\site-packages\setuptools\command\egg_info.py", line 252, in find_sources
mm.run()
File "C:\Users\Marcin\Documents\oneclickcos\lib\site-packages\setuptools\command\egg_info.py", line 308, in run
self.read_template()
File "C:\Users\Marcin\Documents\oneclickcos\lib\site-packages\setuptools\command\sdist.py", line 162, 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\Marcin\AppData\Roaming\pip\pip.log