I also had the problem "ModuleNotFoundError: No module named 'Cython'" when building from the terminal with Pamac on Manjaro. However, I had a conda virtual environment activated.
The build finished successfully for me when using Pamac GUI.
Git Clone URL: | https://aur.archlinux.org/pycharm-professional.git (read-only, click to copy) |
---|---|
Package Base: | pycharm-professional |
Description: | Python IDE for Professional Developers. Professional Edition |
Upstream URL: | https://www.jetbrains.com/pycharm/ |
Keywords: | development editor ide jetbrains python |
Licenses: | custom |
Submitter: | hippojazz |
Maintainer: | Xavier (37h4n) |
Last Packager: | Xavier |
Votes: | 292 |
Popularity: | 0.36 |
First Submitted: | 2013-09-25 03:56 (UTC) |
Last Updated: | 2025-04-17 13:27 (UTC) |
« First ‹ Previous 1 .. 11 12 13 14 15 16 17 18 19 20 21 .. 46 Next › Last »
I also had the problem "ModuleNotFoundError: No module named 'Cython'" when building from the terminal with Pamac on Manjaro. However, I had a conda virtual environment activated.
The build finished successfully for me when using Pamac GUI.
I don't have errors in the build but I'll check it, thanks @Cthulu201
I usually build in a clean chroot (no makepkg -s) and was getting Cython errors. I've modified your PKGBUILD so it builds and runs for me. Happy for any feedback: https://0bin.net/paste/0tfmKwCN#wGHqvnUJ7bAHshbTKahSR1DeqMyWndoN+CPmEaHz9KX
It looks like my issues was that I use pyenv
and I had 3.9
set as the global python version. setting pyenv global system
works for me.
Note that there is an issue with setting the global version to system
on Arch, in that it check for python being in a bin
dir, not sbin
and on my system /usr/sbin was a symlink to /usr/bin and sbin was first. To fix it I unlinked /usr/sbin, set pyenf global to system, installed pycharm, then added the link back.
I am getting the same error. Fresh terminal with no environment loaded, and nothing in PYTHONPATH. I also made sure to clear the cache and do a clean build.
==> Starting build()...
Traceback (most recent call last):
File "/home/shawn/.cache/yay/pycharm-professional/src/pycharm-2021.1/plugins/python/helpers/pydev/setup_cython.py", line 112, in <module>
build_extension("_pydevd_bundle", extension_name, target_pydevd_name, force_cython, extension_folder, True)
File "/home/shawn/.cache/yay/pycharm-professional/src/pycharm-2021.1/plugins/python/helpers/pydev/setup_cython.py", line 69, in build_extension
from Cython.Build import cythonize # @UnusedImport
ModuleNotFoundError: No module named 'Cython'
==> ERROR: A failure occurred in build().
Aborting...
error making: pycharm-professional
Works now, I did indeed have a virtualenv active. Oops and thanks @XavierCLL, @klaasjanelzinga!
Hi @evandare, pls check if you do not have a virtualenv active.
Hi @evandare, your error may be due to various reasons (but none related to this package) check your PYTHONPATH of if you have a special installation of some components in Python. You can also build the package in a clean chroot [0] or use an unofficial repo [1].
[0] https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_clean_chroot [1] chaotic-aur
Hi, I get the following error during the build step:
==> Starting build()...
Traceback (most recent call last):
File "/home/XXX/.cache/yay/pycharm-professional/src/pycharm-2021.1/plugins/python/helpers/pydev/setup_cython.py", line 112, in <module>
build_extension("_pydevd_bundle", extension_name, target_pydevd_name, force_cython, extension_folder, True)
File "/home/XXX/.cache/yay/pycharm-professional/src/pycharm-2021.1/plugins/python/helpers/pydev/setup_cython.py", line 69, in build_extension
from Cython.Build import cythonize # @UnusedImport
ModuleNotFoundError: No module named 'Cython'
==> ERROR: A failure occurred in build().
Aborting...
error making: pycharm-professional
Installing Cython via pacman -S cython
doesn't seem to fix it.
There is a new version available 2021.1
Pinned Comments