Git Product home page Git Product logo

bitfield's People

Contributors

stestagg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bitfield's Issues

Can't install

I tried to install the library, but got this error:

Error compiling Cython file:
------------------------------------------------------------
...
while len(self.pages) > 0 and self.pages[-1].count == 0:
self.pages.pop()

      cpdef add(self, usize_t number):
          """Add a positive integer to the bitfield"""
          cdef usize_t page = number / PAGE_FULL_COUNT
                                     ^
  ------------------------------------------------------------

  cimpl/field.pyx:463:35: Cannot assign type 'double' to 'usize_t'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          the_page.add(page_index)

      cpdef remove(Bitfield self, usize_t number):
          """Remove a positive integer from the bitfield
          If the integer does not exist in the field, raise a KeyError"""
          cdef usize_t page_no = number / PAGE_FULL_COUNT
                                        ^
  ------------------------------------------------------------

  cimpl/field.pyx:472:38: Cannot assign type 'double' to 'usize_t'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
              raise KeyError()

      cpdef discard(Bitfield self, usize_t number):
          """Remove a positive integer from the bitfield if it is a member.
          If the element is not a member, do nothing."""
          cdef usize_t page = number / PAGE_FULL_COUNT
                                     ^
  ------------------------------------------------------------

  cimpl/field.pyx:486:35: Cannot assign type 'double' to 'usize_t'

Can't install

I tried to install the library, and got this error in the terminal:

Error compiling Cython file:
------------------------------------------------------------
...
while len(self.pages) > 0 and self.pages[-1].count == 0:
self.pages.pop()

      cpdef add(self, usize_t number):
          """Add a positive integer to the bitfield"""
          cdef usize_t page = number / PAGE_FULL_COUNT
                                     ^
  ------------------------------------------------------------

  cimpl/field.pyx:463:35: Cannot assign type 'double' to 'usize_t'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          the_page.add(page_index)

      cpdef remove(Bitfield self, usize_t number):
          """Remove a positive integer from the bitfield
          If the integer does not exist in the field, raise a KeyError"""
          cdef usize_t page_no = number / PAGE_FULL_COUNT
                                        ^
  ------------------------------------------------------------

  cimpl/field.pyx:472:38: Cannot assign type 'double' to 'usize_t'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
              raise KeyError()

      cpdef discard(Bitfield self, usize_t number):
          """Remove a positive integer from the bitfield if it is a member.
          If the element is not a member, do nothing."""
          cdef usize_t page = number / PAGE_FULL_COUNT
                                     ^
  ------------------------------------------------------------

  cimpl/field.pyx:486:35: Cannot assign type 'double' to 'usize_t'

pip install bitfield failes

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

Compile error

I tried to compile the library, and got this error:

Error compiling Cython file:
------------------------------------------------------------
...
while len(self.pages) > 0 and self.pages[-1].count == 0:
self.pages.pop()

      cpdef add(self, usize_t number):
          """Add a positive integer to the bitfield"""
          cdef usize_t page = number / PAGE_FULL_COUNT
                                     ^
  ------------------------------------------------------------

  cimpl/field.pyx:463:35: Cannot assign type 'double' to 'usize_t'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          the_page.add(page_index)

      cpdef remove(Bitfield self, usize_t number):
          """Remove a positive integer from the bitfield
          If the integer does not exist in the field, raise a KeyError"""
          cdef usize_t page_no = number / PAGE_FULL_COUNT
                                        ^
  ------------------------------------------------------------

  cimpl/field.pyx:472:38: Cannot assign type 'double' to 'usize_t'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
              raise KeyError()

      cpdef discard(Bitfield self, usize_t number):
          """Remove a positive integer from the bitfield if it is a member.
          If the element is not a member, do nothing."""
          cdef usize_t page = number / PAGE_FULL_COUNT
                                     ^
  ------------------------------------------------------------

  cimpl/field.pyx:486:35: Cannot assign type 'double' to 'usize_t'

Compile failed

I tried to compile the library, but got this error:

Error compiling Cython file:
------------------------------------------------------------
...
while len(self.pages) > 0 and self.pages[-1].count == 0:
self.pages.pop()

      cpdef add(self, usize_t number):
          """Add a positive integer to the bitfield"""
          cdef usize_t page = number / PAGE_FULL_COUNT
                                     ^
  ------------------------------------------------------------

  cimpl/field.pyx:463:35: Cannot assign type 'double' to 'usize_t'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          the_page.add(page_index)

      cpdef remove(Bitfield self, usize_t number):
          """Remove a positive integer from the bitfield
          If the integer does not exist in the field, raise a KeyError"""
          cdef usize_t page_no = number / PAGE_FULL_COUNT
                                        ^
  ------------------------------------------------------------

  cimpl/field.pyx:472:38: Cannot assign type 'double' to 'usize_t'

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
              raise KeyError()

      cpdef discard(Bitfield self, usize_t number):
          """Remove a positive integer from the bitfield if it is a member.
          If the element is not a member, do nothing."""
          cdef usize_t page = number / PAGE_FULL_COUNT
                                     ^
  ------------------------------------------------------------

  cimpl/field.pyx:486:35: Cannot assign type 'double' to 'usize_t'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.