Opened 5 years ago

Closed 5 years ago

#3550 closed defect (not a bug)

Problem saving spin movie / images to "Desktop" (C:\Users\Public\Desktop)

Reported by: chimerax-bug-report@… Owned by: Tom Goddard
Priority: normal Milestone:
Component: Input/Output Version:
Keywords: Cc:
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.0 (2020-06-04 23:15:07 UTC)
Description
(Describe the actions that caused this problem to occur here)

Log:
UCSF ChimeraX version: 1.0 (2020-06-04)  
© 2016-2020 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  
Some installed bundles are out of date. Please update the following bundles:

  * UI to version 1.2.1 (currently 1.0)
  * UI to version 1.2 (currently 1.0)

  

> open "C:/Users/smeisoch/FAUbox/Anatomie/Projekte/ABC-
> Transporter_Modellierungen/01 - ABCB1/6c0v.pdb"

6c0v.pdb title:  
Molecular structure of human P-glycoprotein In the atp-bound, outward- facing
conformation [more info...]  
  
Chain information for 6c0v.pdb #1  
---  
Chain | Description  
A | multidrug resistance protein 1  
  
Non-standard residues in 6c0v.pdb #1  
---  
ATP — adenosine-5'-triphosphate  
MG — magnesium ion  
  

> rainbow

> style stick

Changed 8976 atom styles  

> select :ATP

62 atoms, 66 bonds, 1 model selected  

> style sel stick

Changed 62 atom styles  

> color sel byelement

> set bgColor white

> preset "initial styles" "original look"

Preset implemented in Python; no expansion to individual ChimeraX commands
available.  

> preset cartoons/nucleotides ribbons/slabs

Changed 0 atom styles  
Preset expands to these ChimeraX commands:

    
    
    show nucleic
    hide protein|solvent|H
    surf hide
    style (protein|nucleic|solvent) & @@draw_mode=0 stick
    cartoon
    cartoon style modeh def arrows t arrowshelix f arrowscale 2 wid 2 thick 0.4 sides 12 div 20
    cartoon style ~(nucleic|strand) x round
    cartoon style (nucleic|strand) x rect
    nucleotides tube/slab shape box

  

> preset "initial styles" "original look"

Preset implemented in Python; no expansion to individual ChimeraX commands
available.  

> preset cartoons/nucleotides cylinders/stubs

Changed 0 atom styles  
Preset expands to these ChimeraX commands:

    
    
    show nucleic
    hide protein|solvent|H
    surf hide
    style (protein|nucleic|solvent) & @@draw_mode=0 stick
    cartoon
    cartoon style modeh def arrows t arrowshelix f arrowscale 2 wid 2 thick 0.4 sides 12 div 20
    cartoon style ~(nucleic|strand) x round
    cartoon style (nucleic|strand) x rect
    cartoon style protein modeh tube rad 2 sides 24 thick 0.6
    cartoon style nucleic x round width 1.6 thick 1.6
    nucleotides stubs

  

> preset cartoons/nucleotides licorice/ovals

Changed 0 atom styles  
Preset expands to these ChimeraX commands:

    
    
    show nucleic
    hide protein|solvent|H
    surf hide
    style (protein|nucleic|solvent) & @@draw_mode=0 stick
    cartoon
    cartoon style modeh def arrows t arrowshelix f arrowscale 2 wid 2 thick 0.4 sides 12 div 20
    cartoon style ~(nucleic|strand) x round
    cartoon style (nucleic|strand) x rect
    cartoon style protein modeh default arrows f x round width 1 thick 1
    cartoon style nucleic x round width 1.6 thick 1.6
    nucleotides tube/slab shape ellipsoid

  

> preset "initial styles" sticks

Preset implemented in Python; no expansion to individual ChimeraX commands
available.  

> preset "molecular surfaces" "ghostly white"

Changed 0 atom styles  
Preset expands to these ChimeraX commands:

    
    
    style (protein|nucleic|solvent) & @@draw_mode=0 stick
    surface
    color white targ s trans 80

  

> preset "initial styles" "original look"

Preset implemented in Python; no expansion to individual ChimeraX commands
available.  

> preset "initial styles" "original look"

Preset implemented in Python; no expansion to individual ChimeraX commands
available.  

> preset cartoons/nucleotides ribbons/slabs

Changed 0 atom styles  
Preset expands to these ChimeraX commands:

    
    
    show nucleic
    hide protein|solvent|H
    surf hide
    style (protein|nucleic|solvent) & @@draw_mode=0 stick
    cartoon
    cartoon style modeh def arrows t arrowshelix f arrowscale 2 wid 2 thick 0.4 sides 12 div 20
    cartoon style ~(nucleic|strand) x round
    cartoon style (nucleic|strand) x rect
    nucleotides tube/slab shape box

  

> rainbow sel

> select :ATP

62 atoms, 66 bonds, 1 model selected  

> color sel byhetero

> color sel byelement

> select :MG

2 atoms, 1 model selected  

> movie record

> turn y 2 180

> wait 180

> movie encode C:\Users\Public\Desktop\movie1.mp4

C:\Program Files\ChimeraX 1.0\bin\ffmpeg.exe -r 25 -i
C:\Users\smeisoch\AppData\Local\Temp\chimovie_AoFX-%05d.ppm -vf
crop=floor(in_w/2)*2:floor(in_h/2)*2:0:0 -y -vcodec libx264 -f mp4 -pix_fmt
yuv420p -crf 20 C:\Users\Public\Desktop\movie1.mp4  
stdout:  
  
stderr:  
ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers  
built with gcc 6.3.0 (GCC)  
configuration: --enable-gpl --enable-version3 --enable-d3d11va --enable-dxva2
--enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-
fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-
libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-
libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-
libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-
lzma --enable-zlib  
libavutil 55. 34.101 / 55. 34.101  
libavcodec 57. 64.101 / 57. 64.101  
libavformat 57. 56.101 / 57. 56.101  
libavdevice 57. 1.100 / 57. 1.100  
libavfilter 6. 65.100 / 6. 65.100  
libswscale 4. 2.100 / 4. 2.100  
libswresample 2. 3.100 / 2. 3.100  
libpostproc 54. 1.100 / 54. 1.100  
Input #0, image2, from
'C:\Users\smeisoch\AppData\Local\Temp\chimovie_AoFX-%05d.ppm':  
Duration: 00:00:07.20, start: 0.000000, bitrate: N/A  
Stream #0:0: Video: ppm, rgb24, 1341x954, 25 tbr, 25 tbn, 25 tbc  
C:\Users\Public\Desktop\movie1.mp4: Permission denied  
  
An error occurred during encoding. See Reply Log for details.  
  
Error during MPEG encoding:  
\-----------------------------  
Exit value: 1  
Error message:  
stdout:  
  
stderr:  
ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers  
built with gcc 6.3.0 (GCC)  
configuration: --enable-gpl --enable-version3 --enable-d3d11va --enable-dxva2
--enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-
fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-
libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-
libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-
libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-
lzma --enable-zlib  
libavutil 55. 34.101 / 55. 34.101  
libavcodec 57. 64.101 / 57. 64.101  
libavformat 57. 56.101 / 57. 56.101  
libavdevice 57. 1.100 / 57. 1.100  
libavfilter 6. 65.100 / 6. 65.100  
libswscale 4. 2.100 / 4. 2.100  
libswresample 2. 3.100 / 2. 3.100  
libpostproc 54. 1.100 / 54. 1.100  
Input #0, image2, from
'C:\Users\smeisoch\AppData\Local\Temp\chimovie_AoFX-%05d.ppm':  
Duration: 00:00:07.20, start: 0.000000, bitrate: N/A  
Stream #0:0: Video: ppm, rgb24, 1341x954, 25 tbr, 25 tbn, 25 tbc  
C:\Users\Public\Desktop\movie1.mp4: Permission denied  
  
\-----------------------------  
  

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

Traceback (most recent call last):  
File "C:\Program Files\ChimeraX 1.0\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.0\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.0\bin\lib\site-
packages\chimerax\core\toolshed\\__init__.py", line 1607, in run_provider  
return cls._get_func(api, "run_provider")(session, name, mgr, **kw)  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\shortcuts\\__init__.py", line 52, in run_provider  
shortcuts.run_provider(session, name)  
File "C:\Program Files\ChimeraX 1.0\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.0\bin\lib\site-
packages\chimerax\shortcuts\shortcuts.py", line 375, in try_shortcut  
self.run_shortcut(keys)  
File "C:\Program Files\ChimeraX 1.0\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.0\bin\lib\site-
packages\chimerax\shortcuts\shortcuts.py", line 312, in run  
f(s)  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\shortcuts\shortcuts.py", line 1140, in save_image  
run(session, cmd)  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\shortcuts\shortcuts.py", line 479, in run  
run_command(session, command, **kw)  
File "C:\Program Files\ChimeraX 1.0\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.0\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.0\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.0\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.0\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.0\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.0\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.0\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.0\bin\lib\site-packages\PIL\Image.py", line
2131, in save  
fp = builtins.open(filename, "w+b")  
  
See log for complete Python traceback.  
  

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

Traceback (most recent call last):  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\toolbar\tool.py", line 202, in callback  
bundle_info.run_provider(session, name, session.toolbar,
display_name=display_name)  
File "C:\Program Files\ChimeraX 1.0\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.0\bin\lib\site-
packages\chimerax\core\toolshed\\__init__.py", line 1607, in run_provider  
return cls._get_func(api, "run_provider")(session, name, mgr, **kw)  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\shortcuts\\__init__.py", line 52, in run_provider  
shortcuts.run_provider(session, name)  
File "C:\Program Files\ChimeraX 1.0\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.0\bin\lib\site-
packages\chimerax\shortcuts\shortcuts.py", line 375, in try_shortcut  
self.run_shortcut(keys)  
File "C:\Program Files\ChimeraX 1.0\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.0\bin\lib\site-
packages\chimerax\shortcuts\shortcuts.py", line 312, in run  
f(s)  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\shortcuts\shortcuts.py", line 1140, in save_image  
run(session, cmd)  
File "C:\Program Files\ChimeraX 1.0\bin\lib\site-
packages\chimerax\shortcuts\shortcuts.py", line 479, in run  
run_command(session, command, **kw)  
File "C:\Program Files\ChimeraX 1.0\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.0\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.0\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.0\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.0\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.0\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.0\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.0\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.0\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 432.00
OpenGL renderer: GeForce RTX 2070 SUPER/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation
Manufacturer: FUJITSU
Model:  
OS: Microsoft Windows 10 Enterprise (Build 18363)
Memory: 34,194,595,840
MaxProcessMemory: 137,438,953,344
CPU: 8 Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz"
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

Component: UnassignedInput/Output
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionProblem saving spin movie / images to "Desktop" (C:\Users\Public\Desktop)

comment:2 by Tom Goddard, 5 years ago

Resolution: not a bug
Status: assignedclosed

Saving an image with toolbar snapshot button fails, unable to write to public desktop.

Python os.path.expanduser("~") is producing the public user account C:\Users\Public which the user cannot write to. On Windows expanduser uses environment variables HOME, USERPROFILE, HOMEPATH, HOMEDRIVE. Not sure how any of those could be producing \Users\Public. The user opened a file in C:/Users/smeisoch. But maybe they are logged in as guest. Not sure.

I permission errors saving an image not produce a traceback.

Note: See TracTickets for help on using tickets.