Giter VIP home page Giter VIP logo

Comments (7)

QLutz avatar QLutz commented on August 16, 2024

Hello,

Thank you for raising this issue.

I am usure of the exact meaning of the error log. However, looking at your configuration, I strongly suspect that the issue stems from the M1 architecture.

We plan on adding wheels for Apple Silicon starting from the next release. In the meanwhile, let us keep this issue open.

from scikit-network.

QLutz avatar QLutz commented on August 16, 2024

The new release is out. Can you confirm that it works on your end?

from scikit-network.

lady-bluecopper avatar lady-bluecopper commented on August 16, 2024

Hi, I am using a Mac with M1 architecture and it is not working for me.

from scikit-network.

tbonald avatar tbonald commented on August 16, 2024

Hi,
Could you please provide details on your configuration (e.g., python version) and the command used to install scikit-network?
Thanks.

from scikit-network.

lady-bluecopper avatar lady-bluecopper commented on August 16, 2024

Hi,
I have python 3.11 and I tried the command

pip3 install scikit-network.

This is the error I got:

Building wheels for collected packages: scikit-network
Building wheel for scikit-network (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [96 lines of output]
warning: no files found matching '' under directory 'tests'
warning: no previously-included files matching 'pycache' found under directory '
'
warning: no previously-included files matching '.py[co]' found under directory ''
warning: no files found matching '.jpg' under directory 'docs'
warning: no files found matching '
.png' under directory 'docs'
warning: no files found matching '*.gif' under directory 'docs'
./sknetwork/classification/vote.cpp:19511:37: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
if (CYTHON_TRACE && (*frame)->f_trace == NULL) {
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
./sknetwork/classification/vote.cpp:19513:21: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
(frame)->f_trace = Py_None;
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
./sknetwork/classification/vote.cpp:19520:5: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
__Pyx_PyFrame_SetLineNumber(frame, firstlineno);
^
./sknetwork/classification/vote.cpp:475:62: note: expanded from macro '__Pyx_PyFrame_SetLineNumber'
#define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
./sknetwork/classification/vote.cpp:20164:43: warning: 'ob_shash' is deprecated [-Wdeprecated-declarations]
hash1 = ((PyBytesObject
)s1)->ob_shash;
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/bytesobject.h:7:5: note: 'ob_shash' has been explicitly marked deprecated here
Py_DEPRECATED(3.11) Py_hash_t ob_shash;
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
./sknetwork/classification/vote.cpp:20165:43: warning: 'ob_shash' is deprecated [-Wdeprecated-declarations]
hash2 = ((PyBytesObject
)s2)->ob_shash;
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/bytesobject.h:7:5: note: 'ob_shash' has been explicitly marked deprecated here
Py_DEPRECATED(3.11) Py_hash_t ob_shash;
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
./sknetwork/classification/vote.cpp:20641:23: error: no member named 'exc_type' in '_err_stackitem'
while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20641:53: error: no member named 'exc_type' in '_err_stackitem'
while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20655:23: error: no member named 'exc_type' in '_err_stackitem'
*type = exc_info->exc_type;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20657:21: error: no member named 'exc_traceback' in '_err_stackitem'
*tb = exc_info->exc_traceback;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20671:26: error: no member named 'exc_type' in '_err_stackitem'
tmp_type = exc_info->exc_type;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20673:24: error: no member named 'exc_traceback' in '_err_stackitem'
tmp_tb = exc_info->exc_traceback;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20674:15: error: no member named 'exc_type' in '_err_stackitem'
exc_info->exc_type = type;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20676:15: error: no member named 'exc_traceback' in '_err_stackitem'
exc_info->exc_traceback = tb;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20733:30: error: no member named 'exc_type' in '_err_stackitem'
tmp_type = exc_info->exc_type;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20735:28: error: no member named 'exc_traceback' in '_err_stackitem'
tmp_tb = exc_info->exc_traceback;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20736:19: error: no member named 'exc_type' in '_err_stackitem'
exc_info->exc_type = local_type;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20738:19: error: no member named 'exc_traceback' in '_err_stackitem'
exc_info->exc_traceback = local_tb;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20771:26: error: no member named 'exc_type' in '_err_stackitem'
tmp_type = exc_info->exc_type;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20773:24: error: no member named 'exc_traceback' in '_err_stackitem'
tmp_tb = exc_info->exc_traceback;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20774:15: error: no member named 'exc_type' in '_err_stackitem'
exc_info->exc_type = *type;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20776:15: error: no member named 'exc_traceback' in '_err_stackitem'
exc_info->exc_traceback = *tb;
~~~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
error: command '/opt/homebrew/opt/llvm/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for scikit-network
Running setup.py clean for scikit-network
Failed to build scikit-network
Installing collected packages: scikit-network
Running setup.py install for scikit-network ... error
error: subprocess-exited-with-error

× Running setup.py install for scikit-network did not run successfully.
│ exit code: 1
╰─> [98 lines of output]
/opt/homebrew/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
warning: no files found matching '' under directory 'tests'
warning: no previously-included files matching 'pycache' found under directory '
'
warning: no previously-included files matching '.py[co]' found under directory ''
warning: no files found matching '.jpg' under directory 'docs'
warning: no files found matching '
.png' under directory 'docs'
warning: no files found matching '*.gif' under directory 'docs'
./sknetwork/classification/vote.cpp:19511:37: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
if (CYTHON_TRACE && (*frame)->f_trace == NULL) {
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
./sknetwork/classification/vote.cpp:19513:21: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
(frame)->f_trace = Py_None;
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
./sknetwork/classification/vote.cpp:19520:5: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
__Pyx_PyFrame_SetLineNumber(frame, firstlineno);
^
./sknetwork/classification/vote.cpp:475:62: note: expanded from macro '__Pyx_PyFrame_SetLineNumber'
#define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
./sknetwork/classification/vote.cpp:20164:43: warning: 'ob_shash' is deprecated [-Wdeprecated-declarations]
hash1 = ((PyBytesObject
)s1)->ob_shash;
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/bytesobject.h:7:5: note: 'ob_shash' has been explicitly marked deprecated here
Py_DEPRECATED(3.11) Py_hash_t ob_shash;
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
./sknetwork/classification/vote.cpp:20165:43: warning: 'ob_shash' is deprecated [-Wdeprecated-declarations]
hash2 = ((PyBytesObject
)s2)->ob_shash;
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/bytesobject.h:7:5: note: 'ob_shash' has been explicitly marked deprecated here
Py_DEPRECATED(3.11) Py_hash_t ob_shash;
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
./sknetwork/classification/vote.cpp:20641:23: error: no member named 'exc_type' in '_err_stackitem'
while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20641:53: error: no member named 'exc_type' in '_err_stackitem'
while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20655:23: error: no member named 'exc_type' in '_err_stackitem'
*type = exc_info->exc_type;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20657:21: error: no member named 'exc_traceback' in '_err_stackitem'
*tb = exc_info->exc_traceback;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20671:26: error: no member named 'exc_type' in '_err_stackitem'
tmp_type = exc_info->exc_type;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20673:24: error: no member named 'exc_traceback' in '_err_stackitem'
tmp_tb = exc_info->exc_traceback;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20674:15: error: no member named 'exc_type' in '_err_stackitem'
exc_info->exc_type = type;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20676:15: error: no member named 'exc_traceback' in '_err_stackitem'
exc_info->exc_traceback = tb;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20733:30: error: no member named 'exc_type' in '_err_stackitem'
tmp_type = exc_info->exc_type;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20735:28: error: no member named 'exc_traceback' in '_err_stackitem'
tmp_tb = exc_info->exc_traceback;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20736:19: error: no member named 'exc_type' in '_err_stackitem'
exc_info->exc_type = local_type;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20738:19: error: no member named 'exc_traceback' in '_err_stackitem'
exc_info->exc_traceback = local_tb;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20771:26: error: no member named 'exc_type' in '_err_stackitem'
tmp_type = exc_info->exc_type;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20773:24: error: no member named 'exc_traceback' in '_err_stackitem'
tmp_tb = exc_info->exc_traceback;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20774:15: error: no member named 'exc_type' in '_err_stackitem'
exc_info->exc_type = *type;
~~~~~~~~ ^
./sknetwork/classification/vote.cpp:20776:15: error: no member named 'exc_traceback' in '_err_stackitem'
exc_info->exc_traceback = *tb;
~~~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
error: command '/opt/homebrew/opt/llvm/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> scikit-network

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

from scikit-network.

tbonald avatar tbonald commented on August 16, 2024

OK, thanks.
Scikit-network is currently available with Python 3.8, 3.9, 3.10 only.
Python 3.11 coming soon.

from scikit-network.

lady-bluecopper avatar lady-bluecopper commented on August 16, 2024

Ok, thank you so much for the help!

from scikit-network.

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.