Giter VIP home page Giter VIP logo

Comments (3)

clade avatar clade commented on August 30, 2024

Your error comes from the following command, which works well on C Python.

numpy.ctypeslib.ndpointer(numpy.int32, flags=('C_CONTIGUOUS', 'WRITEABLE'))

It seams to me that it is an error from the PyPy fork of numpy and not
from PyDAmx. You should try to ask them.

Le 24/09/2015 20:19, Apteryks a Γ©crit :

Here is the traceback:
[PyPy 2.6.1 with MSC v.1500 32 bit] on win32
Type "help", "copyright", "credits" or "license" for more information.

            import PyDAQmx
            C:\Users\maco\virtualenvs\pypy\site-packages\numpy\linalg\lapack_lite.py:78:
            UserWarning: tuned lapack (openblas, atlas ...) not
            found, using lapack_lite
            warnings.warn('tuned lapack (openblas, atlas ...) not
            found, using lapack_lite')
            Traceback (most recent call last):
            File "", line 1, in
            File
            "C:\Users\maco\virtualenvs\pypy\site-packages\PyDAQmx__init__.py",
            line 7, in
            from DAQmxFunctions import *
            File
            "C:\Users\maco\virtualenvs\pypy\site-packages\PyDAQmx\DAQmxFunctions.py",
            line 146, in
            array_type(_type),2) for _type in type_list_array]
            File
            "C:\Users\maco\virtualenvs\pypy\site-packages\PyDAQmx\DAQmxFunctions.py",
            line 111, in array_type
            flags=('C_CONTIGUOUS','WRITEABLE'))
            File
            "C:\Users\maco\virtualenvs\pypy\site-packages\numpy\ctypeslib.py",
            line 253, in ndpointer
            elif isinstance(flags, flagsobj):
            TypeError: isinstance() arg 2 must be a class, type,
            or tuple of classes and types

I'm using the Windows binary release of Pypy and installed numpy
using: 'pip install git+https://bitbucket.org/pypy/numpy.git'. PyDAQmx
was installed using 'pip install PyDAQmx' (v 1.3.1).

β€”
Reply to this email directly or view it on GitHub
#25.

from pydaqmx.

rlamy avatar rlamy commented on August 30, 2024

This particular issue should be solved in numpypy now, cf. https://bitbucket.org/pypy/numpy/commits/6b5083ac1859da3fab0e6229f8367ad544239896. However, I have no idea whether it's enough to get PyDAQmx working.

from pydaqmx.

Apteryks avatar Apteryks commented on August 30, 2024

@clade, thank you for your answer. You are right, this is on PyPy numpy side rather than in PyDAQmx. Feel free to close this issue!

from pydaqmx.

Related Issues (20)

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.