cuisine_sweet
cuisine_sweet copied to clipboard
Error installing on windows
(emessage) C:\projects\work\django-project-mpc\branches\saxon_vagrant>pip install cuisine_sweet
Downloading/unpacking cuisine-sweet
Downloading cuisine_sweet-0.1.16.tar.gz
Running setup.py (path:C:\Users\saxon\Envs\emessage\build\cuisine-sweet\setup.py) egg_info for package cuisine-sweet
Traceback (most recent call last):
File "
File "
File "C:\Users\saxon\Envs\emessage\build\cuisine-sweet\setup.py", line 15, in
packages = find_packages('src/'),
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools__init__.py", line 28, in find_packages
File "C:\Python27\Lib\distutils\util.py", line 126, in convert_path
raise ValueError, "path '%s' cannot end with '/'" % pathname
ValueError: path 'src/' cannot end with '/'
Cleaning up... Command python setup.py egg_info failed with error code 1 in C:\Users\saxon\Envs\emessage\build\cuisine-sweet Storing debug log for failure in C:\Users\saxon\pip\pip.log
First thing I've tried is changing setup.py find_packages('src/') to find_packates('src') this gets things further:
diff --git a/setup.py b/setup.py
index 6a1d255..1a9c6fe 100755
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ setup(
keywords = [ "fabric", "cuisine", "deployment" ],
url = "http://github.com/dexterbt1/cuisine_sweet",
- packages = find_packages('src/'),
+ packages = find_packages('src'),
package_dir = {
'': 'src',
},
However then things get stuck a bit further on:
(emessage) C:\projects\scratch\cuisine_sweet>python setup.py install
running install
running bdist_egg
running egg_info
creating src\cuisine_sweet.egg-info
writing requirements to src\cuisine_sweet.egg-info\requires.txt
writing src\cuisine_sweet.egg-info\PKG-INFO
writing top-level names to src\cuisine_sweet.egg-info\top_level.txt
writing dependency_links to src\cuisine_sweet.egg-info\dependency_links.txt
writing manifest file 'src\cuisine_sweet.egg-info\SOURCES.txt'
reading manifest file 'src\cuisine_sweet.egg-info\SOURCES.txt'
writing manifest file 'src\cuisine_sweet.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build
creating build\lib
creating build\lib\cuisine_sweet
copying src\cuisine_sweet\git.py -> build\lib\cuisine_sweet
copying src\cuisine_sweet\utils.py -> build\lib\cuisine_sweet
copying src\cuisine_sweet\version.py -> build\lib\cuisine_sweet
copying src\cuisine_sweet\__init__.py -> build\lib\cuisine_sweet
creating build\lib\cuisine_sweet\ensure
copying src\cuisine_sweet\ensure\cpan_module.py -> build\lib\cuisine_sweet\ensure
copying src\cuisine_sweet\ensure\fs.py -> build\lib\cuisine_sweet\ensure
copying src\cuisine_sweet\ensure\git.py -> build\lib\cuisine_sweet\ensure
copying src\cuisine_sweet\ensure\local_git.py -> build\lib\cuisine_sweet\ensure
copying src\cuisine_sweet\ensure\supervisord.py -> build\lib\cuisine_sweet\ensure
copying src\cuisine_sweet\ensure\user_crontab.py -> build\lib\cuisine_sweet\ensure
copying src\cuisine_sweet\ensure\yum.py -> build\lib\cuisine_sweet\ensure
copying src\cuisine_sweet\ensure\__init__.py -> build\lib\cuisine_sweet\ensure
creating build\bdist.win32
creating build\bdist.win32\egg
creating build\bdist.win32\egg\cuisine_sweet
creating build\bdist.win32\egg\cuisine_sweet\ensure
copying build\lib\cuisine_sweet\ensure\cpan_module.py -> build\bdist.win32\egg\cuisine_sweet\ensure
copying build\lib\cuisine_sweet\ensure\fs.py -> build\bdist.win32\egg\cuisine_sweet\ensure
copying build\lib\cuisine_sweet\ensure\git.py -> build\bdist.win32\egg\cuisine_sweet\ensure
copying build\lib\cuisine_sweet\ensure\local_git.py -> build\bdist.win32\egg\cuisine_sweet\ensure
copying build\lib\cuisine_sweet\ensure\supervisord.py -> build\bdist.win32\egg\cuisine_sweet\ensure
copying build\lib\cuisine_sweet\ensure\user_crontab.py -> build\bdist.win32\egg\cuisine_sweet\ensure
copying build\lib\cuisine_sweet\ensure\yum.py -> build\bdist.win32\egg\cuisine_sweet\ensure
copying build\lib\cuisine_sweet\ensure\__init__.py -> build\bdist.win32\egg\cuisine_sweet\ensure
copying build\lib\cuisine_sweet\git.py -> build\bdist.win32\egg\cuisine_sweet
copying build\lib\cuisine_sweet\utils.py -> build\bdist.win32\egg\cuisine_sweet
copying build\lib\cuisine_sweet\version.py -> build\bdist.win32\egg\cuisine_sweet
copying build\lib\cuisine_sweet\__init__.py -> build\bdist.win32\egg\cuisine_sweet
byte-compiling build\bdist.win32\egg\cuisine_sweet\ensure\cpan_module.py to cpan_module.pyc
byte-compiling build\bdist.win32\egg\cuisine_sweet\ensure\fs.py to fs.pyc
byte-compiling build\bdist.win32\egg\cuisine_sweet\ensure\git.py to git.pyc
byte-compiling build\bdist.win32\egg\cuisine_sweet\ensure\local_git.py to local_git.pyc
byte-compiling build\bdist.win32\egg\cuisine_sweet\ensure\supervisord.py to supervisord.pyc
byte-compiling build\bdist.win32\egg\cuisine_sweet\ensure\user_crontab.py to user_crontab.pyc
byte-compiling build\bdist.win32\egg\cuisine_sweet\ensure\yum.py to yum.pyc
byte-compiling build\bdist.win32\egg\cuisine_sweet\ensure\__init__.py to __init__.pyc
byte-compiling build\bdist.win32\egg\cuisine_sweet\git.py to git.pyc
byte-compiling build\bdist.win32\egg\cuisine_sweet\utils.py to utils.pyc
byte-compiling build\bdist.win32\egg\cuisine_sweet\version.py to version.pyc
byte-compiling build\bdist.win32\egg\cuisine_sweet\__init__.py to __init__.pyc
creating build\bdist.win32\egg\EGG-INFO
copying src\cuisine_sweet.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying src\cuisine_sweet.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
copying src\cuisine_sweet.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO
copying src\cuisine_sweet.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO
copying src\cuisine_sweet.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
cuisine_sweet.utils: module MAY be using inspect.stack
creating dist
creating 'dist\cuisine_sweet-0.1.16-py2.7.egg' and adding 'build\bdist.win32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)
Processing cuisine_sweet-0.1.16-py2.7.egg
creating c:\users\saxon\envs\emessage\lib\site-packages\cuisine_sweet-0.1.16-py2.7.egg
Extracting cuisine_sweet-0.1.16-py2.7.egg to c:\users\saxon\envs\emessage\lib\site-packages
Adding cuisine-sweet 0.1.16 to easy-install.pth file
Installed c:\users\saxon\envs\emessage\lib\site-packages\cuisine_sweet-0.1.16-py2.7.egg
Processing dependencies for cuisine-sweet==0.1.16
Searching for pexpect
Reading http://pypi.python.org/simple/pexpect/
Reading http://pexpect.readthedocs.org/
Reading http://pexpect.sourceforge.net/
Reading http://sourceforge.net/project/showfiles.php?group_id=59762
Best match: pexpect 3.1
Downloading https://pypi.python.org/packages/source/p/pexpect/pexpect-3.1.tar.gz#md5=5a8e1573062e2e2c203c9a6d213b16e7
Processing pexpect-3.1.tar.gz
Running pexpect-3.1\setup.py -q bdist_egg --dist-dir c:\users\saxon\appdata\local\temp\easy_install-br6utd\pexpect-3.1\egg-dist-tmp-czlsrs
Traceback (most recent call last):
File "setup.py", line 40, in <module>
"Topic :: Utilities",
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:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\install.py", line 76, in run
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\install.py", line 104, in do_egg_install
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\easy_install.py", line 211, in run
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\easy_install.py", line 427, in easy_install
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\easy_install.py", line 478, in install_item
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\easy_install.py", line 519, in process_distribution
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resources.py", line 563, in resolve
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resources.py", line 799, in best_match
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resources.py", line 811, in obtain
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\easy_install.py", line 446, in easy_install
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\easy_install.py", line 476, in install_item
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\easy_install.py", line 655, in install_eggs
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\easy_install.py", line 930, in build_and_install
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\easy_install.py", line 919, in run_setup
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\sandbox.py", line 62, in run_setup
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\sandbox.py", line 105, in run
File "C:\Users\saxon\Envs\emessage\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\sandbox.py", line 64, in <lambda>
File "setup.py", line 3, in <module>
execfile('src/cuisine_sweet/version.py')
File "c:\users\saxon\appdata\local\temp\easy_install-br6utd\pexpect-3.1\pexpect\__init__.py", line 88, in <module>
ImportError: No module named resource
A critical module was not found. Probably this operating system does not
support it. Pexpect is intended for UNIX-like operating systems.
Hi, looks like a pexpect issue on windows. AFAIK, pexpect will fail in windows. http://stackoverflow.com/questions/1042778/can-i-use-expect-on-windows-without-installing-cygwin
We may have two options:
- As I currently don't have access to a windows PC, can I ask for help testing the use of winpexpect instead (https://bitbucket.org/geertj/winpexpect)?
- If possible, can installing and using cygwin + tooling a workable solution?
Thanks!
Hi, I had a go at installing wexpect from sage (though it's a bit outdated) .. I'll have a poke at winpexpect when I get some time.
These windows vms are useful for testing (@ home I don't run windows) https://github.com/xdissent/ievms
Cygwin might be a solution, though for now it was easier to switch to fabtools + require (though I have other issues there)..