-
Notifications
You must be signed in to change notification settings - Fork 2
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
pip install bitfield failes #3
Comments
Thank you for submitting this. I haven't tested it on Windows, I'll do so and upload a fix, but it may take a week or so |
This was a lot more complicated to set up that I was expecting, but finally: This works on Windows x64 using Mingw, as bundled with Python(x,y) package. I am currently trying to get a working installation of Visual C++ that I can use with cython to reproduce your problem. I have a patch that should work |
This should work now. Thanks again for reporting this |
Just seen this again on Windows 10 |
Hey,
I would like to try out the package/add it as a requirement to my own package but it appears to be failing with pip install
Here is the error i get:
cimpl\field.c(301) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe"' failed with exit status 2
Here is the full pip log
C:\Python27\Scripts\pip-script.py run on 07/16/13 14:26:04
Downloading/unpacking bitfield
Getting page https://pypi.python.org/simple/bitfield/
URLs to search for versions for bitfield:
https://pypi.python.org/simple/bitfield/
Analyzing links from page https://pypi.python.org/simple/bitfield/
Found link https://pypi.python.org/packages/source/b/bitfield/bitfield-1.2.tar.gz#md5=441129691d48dbe977a144d1b7e5931f (from https://pypi.python.org/simple/bitfield/), version: 1.2
Found link https://pypi.python.org/packages/source/b/bitfield/bitfield-1.3.tar.gz#md5=3854e5b80907231639a96b8c68fbde6a (from https://pypi.python.org/simple/bitfield/), version: 1.3
Found link https://pypi.python.org/packages/source/b/bitfield/bitfield-1.32.tar.gz#md5=7ddb172aba63417859b506816e6ee08a (from https://pypi.python.org/simple/bitfield/), version: 1.32
Found link https://pypi.python.org/packages/source/b/bitfield/bitfield-1.0.tar.gz#md5=789d54350ed758a6c96210e4299d04fd (from https://pypi.python.org/simple/bitfield/), version: 1.0
Found link https://pypi.python.org/packages/source/b/bitfield/bitfield-1.31.tar.gz#md5=a80d6c7ca4ec7e134944d22c46599b89 (from https://pypi.python.org/simple/bitfield/), version: 1.31
Found link https://pypi.python.org/packages/source/b/bitfield/bitfield-1.1.tar.gz#md5=0abc203174331426eaee349c1a759192 (from https://pypi.python.org/simple/bitfield/), version: 1.1
Using version 1.32 (newest of versions: 1.32, 1.31, 1.3, 1.2, 1.1, 1.0)
Downloading from URL https://pypi.python.org/packages/source/b/bitfield/bitfield-1.32.tar.gz#md5=7ddb172aba63417859b506816e6ee08a (from https://pypi.python.org/simple/bitfield/)
Running setup.py egg_info for package bitfield
running egg_info
creating pip-egg-info\bitfield.egg-info
writing pip-egg-info\bitfield.egg-info\PKG-INFO
writing top-level names to pip-egg-info\bitfield.egg-info\top_level.txt
writing dependency_links to pip-egg-info\bitfield.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\bitfield.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info\bitfield.egg-info\SOURCES.txt'
writing manifest file 'pip-egg-info\bitfield.egg-info\SOURCES.txt'
Source in c:\users\krockman\appdata\local\temp\pip-build-krockman\bitfield has version 1.32, which satisfies requirement bitfield
Installing collected packages: bitfield
Running setup.py install for bitfield
Running command C:\Python27\python.exe -c "import setuptools;file='c:\users\krockman\appdata\local\temp\pip-build-krockman\bitfield\setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record c:\users\krockman\appdata\local\temp\pip-0ahjlk-record\install-record.txt --single-version-externally-managed
running install
running build
running build_ext
skipping 'cimpl\field.c' Cython extension (up-to-date)
building 'bitfield' extension
creating build
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\cimpl
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python27\include -IC:\Python27\PC /Tccimpl\field.c /Fobuild\temp.win-amd64-2.7\Release\cimpl\field.obj -g
cl : Command line warning D9002 : ignoring unknown option '-g'
field.c
cimpl\field.c(301) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe"' failed with exit status 2
Complete output from command C:\Python27\python.exe -c "import setuptools;file='c:\users\krockman\appdata\local\temp\pip-build-krockman\bitfield\setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record c:\users\krockman\appdata\local\temp\pip-0ahjlk-record\install-record.txt --single-version-externally-managed:
running install
running build
running build_ext
skipping 'cimpl\field.c' Cython extension (up-to-date)
building 'bitfield' extension
creating build
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\cimpl
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python27\include -IC:\Python27\PC /Tccimpl\field.c /Fobuild\temp.win-amd64-2.7\Release\cimpl\field.obj -g
cl : Command line warning D9002 : ignoring unknown option '-g'
field.c
cimpl\field.c(301) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe"' failed with exit status 2
Command C:\Python27\python.exe -c "import setuptools;file='c:\users\krockman\appdata\local\temp\pip-build-krockman\bitfield\setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record c:\users\krockman\appdata\local\temp\pip-0ahjlk-record\install-record.txt --single-version-externally-managed failed with error code 1 in c:\users\krockman\appdata\local\temp\pip-build-krockman\bitfield
Exception information:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\pip\basecommand.py", line 139, in main
status = self.run(options, args)
File "C:\Python27\lib\site-packages\pip\commands\install.py", line 271, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "C:\Python27\lib\site-packages\pip\req.py", line 1185, in install
requirement.install(install_options, global_options, _args, *_kwargs)
File "C:\Python27\lib\site-packages\pip\req.py", line 592, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "C:\Python27\lib\site-packages\pip\util.py", line 662, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command C:\Python27\python.exe -c "import setuptools;file='c:\users\krockman\appdata\local\temp\pip-build-krockman\bitfield\setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record c:\users\krockman\appdata\local\temp\pip-0ahjlk-record\install-record.txt --single-version-externally-managed failed with error code 1 in c:\users\krockman\appdata\local\temp\pip-build-krockman\bitfield
The text was updated successfully, but these errors were encountered: