Uninstall Cython?

Answered

Is there a way to uninstall cython debugging speedups after you've clicked the link in the debug console to install it, without completely reinstalling PyCharm?  There's currently a bug (https://youtrack.jetbrains.com/issue/PY-23793) with cython, so it would be nice to be able to install and uninstall the cython extensions as necessary.

4
15 comments

Sure, go to <your distribution>\helpers\pydev\ and find all the pydev*so binaries, then delete them.

0
Avatar
Permanently deleted user

I rather deleted the /home/ubuntu/.pycharm_helpers folder from my VM. Seems like there is a bug that causes segmentation fault in the debugger cython in recent versions of pycharm. 

1
Avatar
Permanently deleted user

I found the directory in:

/Users/<my_username>/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-C/ch-0/173.4301.16/PyCharm CE.app/Contents/helpers/pydev/

What exactly should I delete in order to disable cython debugging?

Should I remove all the files with *pydev* ?

Should I remove setup_cython.py?

 

0

Hello,

Could you provide files list from "/Users/<my_username>/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-C/ch-0/173.4301.16/PyCharm CE.app/Contents/helpers/pydev/" ?

 

0
Avatar
Permanently deleted user

Hi Yaroslav,

This is the file list:

 

0

Inside "_pydevd_bundle" should be "pydev*.so" files. Delete them.

1

remove the ~/.PyCharm2019.2/system/cythonExtensions folder; you'll be prompted to install the cython extensions again.. problem went away after re-installing the extensions.

Also, installed from a full tar during this process so that may have helped.

1
Avatar
Permanently deleted user

Hello, having an issue with deleting *.so files:

rm: cannot remove 'pydevd_cython_darwin_27_64.so': Read-only file system
rm: cannot remove 'pydevd_cython_darwin_35_64.cpython-35m-darwin.so': Read-only file system

I've tried:

granting permissions on files,
sudo mount / -o remount,rw

But nothing helped with this issue.

Cython extenstion broke the breakpoint functionality, they do not work anymore... That is why i need cython extensions to be uninstalled.

0

Please close PyCharm (and ensure it's not running by `ps -ef | grep pycharm`). Also, just in case, make sure no Java processes are left over (ps -ef | grep java).

Then try `rm -f` on .so file. If it's still not working, there's an issue with your file system or maybe some other process is holding the file?

0
Avatar
Permanently deleted user

PyCharm2020 If someone doesn't want to use Cython extensions for some reasons, the environment variable PYDEVD_USE_CYTHON=NO should be passed.

5

Is there a way to cleanup Cython in 2022?

```

➜ JetBrains find . -name "pydev*so"
➜ JetBrains find . -name "pydev"
➜ JetBrains find . -name "_pydev"
➜ JetBrains find . -name "*pydev*"
➜ JetBrains find . -name "cythonExtensions"
➜ JetBrains find . -name "cython*"
➜ JetBrains

```

and I really not happy to push env variable to each and every test run

0

Remove Cython extension

macOS

  • Remove ~/Library/Caches/JetBrains/PyCharm2021.2/cythonExtensions

Windows

  • Remove C:\Users\<YOUR_USERNAME>\AppData\Local\JetBrains\PyCharm2021.2\cythonExtensions

Linux

  • Remove ~/.cache/JetBrains/PyCharm2021.2/cythonExtensions
  • Refuse PyCharm proposal to recompile Cython speedups
5

I have the same problem but i have no such directory 

  • /Users/glebmaksimov/Library/Caches/JetBrains/PyCharm2022.2/cythonExtensions

  • Is there other variants?
0
  •  
  • (output)/Users/glebmaksimov/Desktop/Algorithms_And_Data_Structures/CODE/Pascal_Triangle/venv/bin/python /Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/pydevd.py --multiprocess --qt-support=auto --client 127.0.0.1 --port 60207 --file /Users/glebmaksimov/Desktop/Algorithms_And_Data_Structures/CODE/Pascal_Triangle/main.py 
                                        1        
 
0

I don't have any "cythonExtensions" in my Windows box.  Removing *.so from "_pydevd_bundle" did not help.  What else can I remove?

0

Please sign in to leave a comment.