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

pip install bitfield failes #3

Open
rocktavious opened this issue Jul 16, 2013 · 4 comments
Open

pip install bitfield failes #3

rocktavious opened this issue Jul 16, 2013 · 4 comments

Comments

@rocktavious
Copy link

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:

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

@stestagg
Copy link
Owner

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

@stestagg
Copy link
Owner

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

@stestagg
Copy link
Owner

This should work now.

Thanks again for reporting this

@stestagg
Copy link
Owner

Just seen this again on Windows 10

@stestagg stestagg reopened this Jul 21, 2015
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