Packaging Operation FAiles upgrading to 2023-3-3 Community edition
After upgrading to <Build #PC-233.11799.259, built on December 3, 2023>, File/Settings/myproject/Python Interpreter never llists packages. Line at the bottom of screen says <Python packaging tools not found. Install packaging tools>, while Notifications show <Packages installed successfully. Instwqalled Python packaging tools>.
Detailed packaging operation screen as follow:
Packaging Operation Failed
Executed command:
C:\Users\l...ya\Pycharm\Projection\Scripts\python.exe C:/Program Files/JetBrains/PyCharm Community Edition 2023.2.3/plugins/python-ce/helpers/packaging_tool.py list
Error occured:
TypeError: sequence item 0: expected str instance, NoneType found
Command output:
astroid 3.0.1 C:\Users\l...a\Pycharm\Projection\lib\site-packages typing-extensions >=4.0.0 ; python_version < "3.11"
colorama 0.4.6 C:\Users\l...a\Pycharm\Projection\lib\site-packages
contourpy 1.2.0 C:\Users\l...a\Pycharm\Projection\lib\site-packages numpy<2.0,>=1.20:furo; extra == "docs":sphinx>=7.2; extra == "docs":sphinx-copybutton; extra == "docs":bokeh; extra == "bokeh":selenium; extra == "bokeh":contourpy[bokeh,docs]; extra == "mypy":docutils-stubs; extra == "mypy":mypy==1.6.1; extra == "mypy":types-Pillow; extra == "mypy":contourpy[test-no-images]; extra == "test":matplotlib; extra == "test":Pillow; extra == "test":pytest; extra == "test-no-images":pytest-cov; extra == "test-no-images":pytest-xdist; extra == "test-no-images":wurlitzer; extra == "test-no-images"
cycler 0.12.1 C:\Users\l...a\Pycharm\Projection\lib\site-packages ipython ; extra == 'docs':matplotlib ; extra == 'docs':numpydoc ; extra == 'docs':sphinx ; extra == 'docs':pytest ; extra == 'tests':pytest-cov ; extra == 'tests':pytest-xdist ; extra == 'tests'
dill 0.3.7 C:\Users\l...a\Pycharm\Projection\lib\site-packages objgraph (>=1.7.2) ; extra == 'graph'
et-xmlfile 1.1.0 C:\Users\l...a\Pycharm\Projection\lib\site-packages
fonttools 4.46.0 C:\Users\l...a\Pycharm\Projection\lib\site-packages fs <3,>=2.2.0 ; extra == 'all':lxml <5,>=4.0 ; extra == 'all':zopfli >=0.1.4 ; extra == 'all':lz4 >=1.7.4.2 ; extra == 'all':matplotlib ; extra == 'all':sympy ; extra == 'all':skia-pathops >=0.5.0 ; extra == 'all':uharfbuzz >=0.23.0 ; extra == 'all':brotlicffi >=0.8.0 ; (platform_python_implementation != "CPython") and extra == 'all':scipy ; (platform_python_implementation != "PyPy") and extra == 'all':brotli >=1.0.1 ; (platform_python_implementation == "CPython") and extra == 'all':munkres ; (platform_python_implementation == "PyPy") and extra == 'all':unicodedata2 >=15.1.0 ; (python_version <= "3.12") and extra == 'all':xattr ; (sys_platform == "darwin") and extra == 'all':lz4 >=1.7.4.2 ; extra == 'graphite':scipy ; (platform_python_implementation != "PyPy") and extra == 'interpolatable':munkres ; (platform_python_implementation == "PyPy") and extra == 'interpolatable':lxml <5,>=4.0 ; extra == 'lxml':skia-pathops >=0.5.0 ; extra == 'pathops':matplotlib ; extra == 'plot':uharfbuzz >=0.23.0 ; extra == 'repacker':sympy ; extra == 'symfont':xattr ; (sys_platform == "darwin") and extra == 'type1':fs <3,>=2.2.0 ; extra == 'ufo':unicodedata2 >=15.1.0 ; (python_version <= "3.12") and extra == 'unicode':zopfli >=0.1.4 ; extra == 'woff':brotlicffi >=0.8.0 ; (platform_python_implementation != "CPython") and extra == 'woff':brotli >=1.0.1 ; (platform_python_implementation == "CPython") and extra == 'woff'
future 0.18.3 C:\Users\l...a\Pycharm\Projection\lib\site-packages
isort 6.0.0b2 C:\Users\l...a\Pycharm\Projection\lib\site-packages colorama (>=0.4.3,<0.5.0) ; extra == "colors":pip-api ; extra == "requirements-deprecated-finder":pipreqs ; extra == "pipfile-deprecated-finder" or extra == "requirements-deprecated-finder":requirementslib ; extra == "pipfile-deprecated-finder":setuptools ; extra == "plugins"
kiwisolver 1.4.5 C:\Users\l...a\Pycharm\Projection\lib\site-packages typing-extensions ; python_version < "3.8"
matplotlib 3.8.2 C:\Users\l...a\Pycharm\Projection\lib\site-packages contourpy >=1.0.1:cycler >=0.10:fonttools >=4.22.0:kiwisolver >=1.3.1:numpy <2,>=1.21:packaging >=20.0:pillow >=8:pyparsing >=2.3.1:python-dateutil >=2.7:importlib-resources >=3.2.0 ; python_version<"3.10"
mccabe 0.7.0 C:\Users\l...a\Pycharm\Projection\lib\site-packages
numexpr 2.8.7 C:\Users\l...a\Pycharm\Projection\lib\site-packages numpy >=1.13.3
numpy 1.26.2 C:\Users\l...a\Pycharm\Projection\lib\site-packages
openpyxl 3.2.0b1 C:\Users\l...a\Pycharm\Projection\lib\site-packages et-xmlfile
packaging 23.2 C:\Users\l...a\Pycharm\Projection\lib\site-packages
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.3\plugins\python-ce\helpers\packaging_tool.py", line 118, in main
do_list()
File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.3\plugins\python-ce\helpers\packaging_tool.py", line 64, in do_list
sys.stdout.write('\t'.join([pkg.name, pkg.version, str(pkg._path.parent), requires])+chr(10))
TypeError: sequence item 0: expected str instance, NoneType found
I just don't know what else to try out.
Thanks for any help.
请先登录再写评论。
I performed uninstall/install Pycharm, deleting caches and others: same problem. My next step will be to uninstall/install Python3 as well.
Roll back to CE 2023-2-5 solved the problem.
Unfortunately, I had no luck reproducing the problem with the available information.
Please reproduce the problem, collect PyCharm logs with **Help | Collect Logs and Diagnostic Data**, upload the archive here: https://uploads.services.jetbrains.com/ and tell us the upload ID.
Again I installed CE2023.3.1 and I get the same error reported. See the uploaded log file.
Upload id: 2023_12_16_YxvhYJ6XumLJeXorcUYnwF (file: pycharm-logs-20231216-1236433417903930168854402.zip)
On a post in StackOverflow,(pycharm - Packaging Operation Failed while upgrading to 2023.3.3 Community Edition - Stack Overflow) a user suggested to edit packaging_tool.py file, but I had no success.
I will continue using CE 2023.3 for while, ready for other procedures you might suggest..
Thanks
Additional information:
'PyCharm 2023.3.1 (Community Edition)
Build #PC-233.11799.298, built on December 11, 2023
Runtime version: 17.0.9+7-b1087.7 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 4
Registry:
ide.experimental.ui=true
Non-Bundled Plugins:
PlantUML integration (7.3.0-IJ2023.2)
Also, please run pip freeze -> requirements.txt with the activated virtual environment and share the output file with us.
I was able to replicate the problem and utilize [stackoverflow solution](https://stackoverflow.com/a/77635073/105863) referenced above. The problem is pretty clearly the handling of packages with missing name or version.
Thank you Daniil Bogdanov and Hollis Waite for comments and clues.
Prior to your last comments, and after uninstall/install of Pycharm CE and Python , no problem arises yet. I saved above comments for future reference.
I got the same problem…. No way to install packaged in Pycharm new version…