You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been attempting to install the ACH module by following the instructions provided on the INSTALL page. Initially, I tried downloading and installing the module using the link provided: http://code.golems.org/src/ach/py_ach-latest.tar.gz. However, it seems that the file is currently not valid, and I'm unable to proceed with the installation using this method.
Subsequently, I followed the instructions on the INSTALL page and attempted to build the setup.py file. However, during this process, I encountered the following error message:
<frozen importlib._bootstrap>:219: RuntimeWarning: Python C API version mismatch for module ach_py: This Python has API version 1013, module ach_py has version -1522732640.
Installation Steps Attempted:
1. Cloned the repository: git clone https://github.com/golems/ach.git
2. Navigated to the ach directory: cd ach
3. Initialized autotools: autoreconf -i
4. Configured the build: ./configure --with-python --enable-dkms=no
5. Executed the build: make
6. Installed the module: sudo make install
7. Navigated to the python directory: cd python
8. Modified the ach_py.c code to adapt it for Python 3 by changing functions like PyInt_AsLong to PyLong_AsLong.
9. Installed the module using Python 3: sudo python3 setup.py install
Expected Outcome:
I expected to be able to successfully install the ACH module using the provided source and instructions. However, I encountered the aforementioned error related to the Python C API version mismatch.
Additional Information:
Operating System: x86_64 (amd64)
Python Version: Python 3.8 with anaconda3
Steps to Reproduce:
Clone the ACH repository: git clone https://github.com/golems/ach.git
Follow the installation steps outlined above.
Desired Solution:
I would appreciate any guidance or suggestions on how to resolve the Python C API version mismatch error and successfully install the ACH module.
Thank you for your assistance!
The text was updated successfully, but these errors were encountered:
# Result of /usr/bin/env python => system python
/usr/bin/env: ‘python’: No such file or directory
# Result of /usr/bin/env python3 => system python
Python 3.8.10 (default, May 26 2023, 14:05:08)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ach
<frozen importlib._bootstrap>:219: RuntimeWarning: Python C API version mismatch for module ach_py: This Python has API version 1013, module ach_py has version 2132885920.
When I use anaconda3 with /usr/bin/env python and import ach_py, there is ModuleNotFoundError: No module named 'ach_py'
Python 3.8.17 (default, Jul 5 2023, 21:04:15)
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ach
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/geun-desk/ws/ach/python/ach.py", line 43, in <module>
import ach_py
ModuleNotFoundError: No module named 'ach_py'
When I enter the command ./configure --with-python --enable-dkms=no, the output below is displayed, and it seems that the build is successful using Python version 3.8.
configure: CONFIGURATION SUMMARY
configure: =====================
configure: BUILD: x86_64-pc-linux-gnu
configure: HOST: x86_64-pc-linux-gnu
configure: DEBUG: no
configure: PREFIX: /usr/local
configure: PYTHON VERSION: 3.8
configure: BUILD JAVA LIB: no
configure: INSTALL DKMS SOURCE: no
configure: BUILD DKMS MODULE: no
configure: KBUILD LINUX MODULE: no
I've been attempting to install the ACH module by following the instructions provided on the INSTALL page. Initially, I tried downloading and installing the module using the link provided: http://code.golems.org/src/ach/py_ach-latest.tar.gz. However, it seems that the file is currently not valid, and I'm unable to proceed with the installation using this method.
Subsequently, I followed the instructions on the INSTALL page and attempted to build the setup.py file. However, during this process, I encountered the following error message:
Installation Steps Attempted:
This is modified
ach_py.c
Expected Outcome:
I expected to be able to successfully install the ACH module using the provided source and instructions. However, I encountered the aforementioned error related to the Python C API version mismatch.
Additional Information:
Steps to Reproduce:
Desired Solution:
I would appreciate any guidance or suggestions on how to resolve the Python C API version mismatch error and successfully install the ACH module.
Thank you for your assistance!
The text was updated successfully, but these errors were encountered: