dr-leo / PyHyphen

Other
10 stars 5 forks source link

On Raspberry Pi, Python 3.9.2: import does not work (Illegal instruction) #19

Closed Wikinaut closed 1 year ago

Wikinaut commented 1 year ago
$pip install pyhyphen
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyhyphen
  Using cached https://www.piwheels.org/simple/pyhyphen/PyHyphen-4.0.3-cp37-abi3-linux_armv6l.whl (60 kB)
Requirement already satisfied: setuptools>=52.0 in /usr/lib/python3/dist-packages (from pyhyphen) (52.0.0)
Requirement already satisfied: wheel>=0.36.0 in ./.local/lib/python3.9/site-packages (from pyhyphen) (0.38.4)
Requirement already satisfied: requests>=2.25 in /usr/lib/python3/dist-packages (from pyhyphen) (2.25.1)
Requirement already satisfied: appdirs>=1.4.0 in ./.local/lib/python3.9/site-packages (from pyhyphen) (1.4.4)
Installing collected packages: pyhyphen
Successfully installed pyhyphen-4.0.3

$ python
Python 3.9.2 (default, Mar 12 2021, 04:06:34) 
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import hyphen
Illegal instruction
dr-leo commented 1 year ago

This is most likely due to a build problem. Maybe the wheel you get is not compiled for the pi / ARM architecture.

See https://python-forum.io/thread-34489.html

Try installing with pip instructing it to compile locally rather than downloading a wheel.

Close.

On 13/03/2023, Wikinaut @.***> wrote:

$pip install pyhyphen
Looking in indexes: https://pypi.org/simple,
https://www.piwheels.org/simple
Collecting pyhyphen
  Using cached
https://www.piwheels.org/simple/pyhyphen/PyHyphen-4.0.3-cp37-abi3-linux_armv6l.whl
(60 kB)
Requirement already satisfied: setuptools>=52.0 in
/usr/lib/python3/dist-packages (from pyhyphen) (52.0.0)
Requirement already satisfied: wheel>=0.36.0 in
./.local/lib/python3.9/site-packages (from pyhyphen) (0.38.4)
Requirement already satisfied: requests>=2.25 in
/usr/lib/python3/dist-packages (from pyhyphen) (2.25.1)
Requirement already satisfied: appdirs>=1.4.0 in
./.local/lib/python3.9/site-packages (from pyhyphen) (1.4.4)
Installing collected packages: pyhyphen
Successfully installed pyhyphen-4.0.3

$ python
Python 3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import hyphen
Illegal instruction

-- Reply to this email directly or view it on GitHub: https://github.com/dr-leo/PyHyphen/issues/19 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

Wikinaut commented 1 year ago

I decided to use the alternative pyphen.