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
qequ opened this issue
Mar 28, 2023
· 2 comments
· Fixed by #8517 or #9093
Assignees
Labels
Crash 💥A bug that makes pylint crashNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationpyreverseRelated to pyreverse component
Calling pyreverse via command line naming the project with a "/" like myproject/ crashes the program
Configuration
No response
Command used
pyreverse -o png -p packagename/ path_to_project/
Pylint output
Format png is not supported natively. Pyreverse will try to generate it using Graphviz...
parsing ...
Traceback (most recent call last):
File "/home/alvaro/env_tt/bin/pyreverse", line 8, in<module>sys.exit(run_pyreverse())
File "/home/alvaro/env_tt/lib/python3.10/site-packages/pylint/__init__.py", line 74, in run_pyreverse
PyreverseRun(argv or sys.argv[1:])
File "/home/alvaro/env_tt/lib/python3.10/site-packages/pylint/pyreverse/main.py", line 280, in __init__
sys.exit(self.run(args))
File "/home/alvaro/env_tt/lib/python3.10/site-packages/pylint/pyreverse/main.py", line 299, in run
writer.DiagramWriter(self.config).write(diadefs)
File "/home/alvaro/env_tt/lib/python3.10/site-packages/pylint/pyreverse/writer.py", line 53, in write
self.save()
File "/home/alvaro/env_tt/lib/python3.10/site-packages/pylint/pyreverse/writer.py", line 154, in save
self.printer.generate(self.file_name)
File "/home/alvaro/env_tt/lib/python3.10/site-packages/pylint/pyreverse/dot_printer.py", line 159, in generate
pdot, dot_sourcepath = tempfile.mkstemp(".gv", name)
File "/usr/lib/python3.10/tempfile.py", line 480, in mkstemp
return _mkstemp_inner(dir, prefix, suffix, flags, output_type)
File "/usr/lib/python3.10/tempfile.py", line 395, in _mkstemp_inner
fd = _os.open(file, flags, 0o600)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/packages_packagename/_uqrljp5.gv'
Pierre-Sassoulas
added
pyreverse
Related to pyreverse component
Crash 💥
A bug that makes pylint crash
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
and removed
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
labels
Mar 28, 2023
Crash 💥A bug that makes pylint crashNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationpyreverseRelated to pyreverse component
Bug description
Calling pyreverse via command line naming the project with a "/" like
myproject/
crashes the programConfiguration
No response
Command used
Pylint output
Expected behavior
Generate images correctly
Pylint version
OS / Environment
ubuntu 22.04
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: