Opened 5 years ago

Closed 5 years ago

#3340 closed defect (not a bug)

Permission denied saving image to C:\Users\Public\Desktop

Reported by: hossainmb29@… Owned by: Tom Goddard
Priority: normal Milestone:
Component: Input/Output Version:
Keywords: Cc: Greg Couch
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Windows-10-10.0.18362
ChimeraX Version: 1.0rc202005270557 (2020-05-27 05:57:28 UTC)
Description
(Describe the actions that caused this problem to occur here) when I go to take snapshot it fails and tells that permission denied

Log:
UCSF ChimeraX version: 1.0rc202005270557 (2020-05-27)  
© 2016-2020 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open "C:/Users/HP/OneDrive/Desktop/importin
> folder/ivernectin_dimer_Iqgk_MD00000.pdb"

Summary of feedback from opening C:/Users/HP/OneDrive/Desktop/importin
folder/ivernectin_dimer_Iqgk_MD00000.pdb  
---  
warnings | Ignored bad PDB record found on line 1  
REMARK YASARA *************************************************************  
  
Ignored bad PDB record found on line 2  
REMARK YASARA * *  
  
Ignored bad PDB record found on line 3  
REMARK YASARA * Y A S A R A *  
  
Ignored bad PDB record found on line 4  
REMARK YASARA * *  
  
Ignored bad PDB record found on line 5  
REMARK YASARA * Yet Another Scientific Artificial Reality Application *  
  
15 messages similar to the above omitted  
  
Chain information for ivernectin_dimer_Iqgk_MD00000.pdb #1  
---  
Chain | Description  
A | No description available  
B | No description available  
  

> select /A

13629 atoms, 13741 bonds, 1 model selected  

> surface sel

> select /B

782 atoms, 783 bonds, 1 model selected  

> surface sel

> color (#!1 & sel) cornflower blue

> color (#!1 & sel) cornflower blue

> color (#!1 & sel) light sea green

> ui tool show "Color Actions"

> color (#!1 & sel) light sea green

> color (#!1 & sel) cornflower blue

> select /A

13629 atoms, 13741 bonds, 1 model selected  

> color (#!1 & sel) cornflower blue

> select clear

> select ligand

285 atoms, 297 bonds, 1 model selected  

> color sel red

> select clear

> set bgColor white

> select ligand

285 atoms, 297 bonds, 1 model selected  

> style sel ball

Changed 285 atom styles  

> color sel byhetero

> show sel atoms

> show sel atoms

> show sel atoms

> undo

> undo

> undo

> style sel stick

Changed 285 atom styles  

> select clear

> save "C:/Users/HP/OneDrive/Desktop/importin folder/Importin/IVR 0NS+pdb.pdb"

> save C:\Users\Public\Desktop\image1.png supersample 3

Traceback (most recent call last):  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\toolbar\tool.py", line 162, in callback  
bundle_info.run_provider(session, name, session.toolbar,
display_name=display_name)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\core\toolshed\info.py", line 363, in run_provider  
return api._api_caller.run_provider(api, session, name, mgr, **kw)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\core\toolshed\\__init__.py", line 1579, in run_provider  
return cls._get_func(api, "run_provider")(session, name, mgr, **kw)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\shortcuts\\__init__.py", line 52, in run_provider  
shortcuts.run_provider(session, name)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\shortcuts\shortcuts.py", line 1212, in run_provider  
keyboard_shortcuts(session).try_shortcut(name)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\shortcuts\shortcuts.py", line 375, in try_shortcut  
self.run_shortcut(keys)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\shortcuts\shortcuts.py", line 393, in run_shortcut  
sc.run(self.session, status = self._enabled)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\shortcuts\shortcuts.py", line 312, in run  
f(s)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\shortcuts\shortcuts.py", line 1140, in save_image  
run(session, cmd)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\shortcuts\shortcuts.py", line 479, in run  
run_command(session, command, **kw)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\core\commands\run.py", line 31, in run  
results = command.run(text, log=log)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\core\commands\cli.py", line 2805, in run  
result = ci.function(session, **kw_args)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\save_command\cmd.py", line 66, in cmd_save  
Command(session, registry=registry).run(provider_cmd_text, log=log)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\core\commands\cli.py", line 2805, in run  
result = ci.function(session, **kw_args)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\save_command\cmd.py", line 79, in provider_save  
mgr).save(session, path, **provider_kw)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\image_formats\\__init__.py", line 24, in save  
save_image(session, path, format_name, **kw)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\chimerax\image_formats\save.py", line 115, in save_image  
i.save(path, format_name, **metadata)  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\PIL\Image.py", line 2131, in save  
fp = builtins.open(filename, "w+b")  
PermissionError: [Errno 13] Permission denied:
'C:\\\Users\\\Public\\\Desktop\\\image1.png'  
  
PermissionError: [Errno 13] Permission denied:
'C:\\\Users\\\Public\\\Desktop\\\image1.png'  
  
File "C:\Program Files\ChimeraX 1.0rc202005270557\bin\lib\site-
packages\PIL\Image.py", line 2131, in save  
fp = builtins.open(filename, "w+b")  
  
See log for complete Python traceback.  
  




OpenGL version: 3.3.0 NVIDIA 442.23
OpenGL renderer: GeForce 930MX/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation
Manufacturer: HP
Model: HP ProBook 450 G4
OS: Microsoft Windows 10 Pro (Build 18362)
Memory: 4,187,172,864
MaxProcessMemory: 137,438,953,344
CPU: 4 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz"
PyQt version: 5.12.3
Compiled Qt version: 5.12.4
Runtime Qt version: 5.12.8

Change History (2)

comment:1 by pett, 5 years ago

Cc: Greg Couch added
Component: UnassignedInput/Output
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionPermission denied saving image to C:\Users\Public\Desktop

comment:2 by Tom Goddard, 5 years ago

Resolution: not a bug
Status: assignedclosed

The save snapshot button tries to save the image file on the desktop. But the error message is because it is trying to save the image in "C:\Users\Public\Desktop", ie. on the Windows public desktop shared by all users. You don't have permission to write a file on the public shared desktop.

Why is your desktop C:\Users\Public\Desktop instead of your personal Desktop (e.g. C:\Users\yourname\Desktop). My guess is that you are logged into some public account that shows the Public desktop but does not have access to put files on the public desktop. If that is the situation you need to be logged in as a normal user so ChimeraX can write files on the desktop.

If you don't have permission on this computer to write files on the desktop then you can't use "Save Snapshot" icon. Instead type the save command to save an image

save C:\Somewhere\you\have\permission\to\write\a\file\myimage.png

Note: See TracTickets for help on using tickets.