Issue when installing dev-python/setuptools-65.3.0 with portmod

Post about your mods, learn about OpenMW mod compatibility, check for problematic mods, discuss issues, and give us feedback about your experience with modded OpenMW.
Post Reply
User avatar
Eldy
Posts: 9
Joined: 06 Dec 2022, 22:09

Issue when installing dev-python/setuptools-65.3.0 with portmod

Post by Eldy »

Hello, I am trying to install the dev-python/setuptools-65.3.0 package with portmod as it is a dependency of some other mod I would like to install.

This is the issue I'm getting:

Code: Select all

C:\Users\olivi>portmod openmw merge --no-confirm dev-python/setuptools-65.3.0                                                                                                                                                             
Calculating Dependencies…                                                                                                                                                                                                                   
Done!                                                                                                                                                                                                                                       
These are the packages to be installed, in order:                                                                                                                                                                                            
[ N] dev-python/setuptools-65.3.0                                                                                                                                                                                                            
[ N] gameplay-weapons/weapon-sheathing-1.6-r1 USE="tr"                                                                                                                                                                                       
[ N] land-flora/remiros-groundcover-4.0 USE="minimal tr -mushrooms -preview -solstheim -thick-grass" TEXTURE_SIZE="512 -1024"                                                                                                                
[fN] media-audio/tamriel-rebuilt-music-0.1                                                                                                                                                                                                   
[ N] sys-bin/magick-7.0                                                                                                                                                                                                                      
[fN] assets-misc/project-atlas-0.7.2 USE="gitd intelligent-textures -atlasgen -glowing-bitter-coast -graphic-herbalism -met" TEXTURE_SIZE="512 -1024"                                                                                        Total: 6 packages (0 updates, 6 new, 0 reinstalls, 0 removals),                                                                                                                                                                              
Size of downloads: 95,5739 MiB                                                                                                                                                                                                                                                                                                                                                                                                                                                            
>>> Executing pkg_pretend for package sys-bin/magick-7.0                                                                                                                                                                                     
>>> Starting installation of dev-python/setuptools-65.3.0                                                                                                                                                                                    
>>> Unpacking package…                                                                                                                                                                                                                       
>>> Unpacking setuptools-65.3.0-py3-none-any.whl.zip                                                                                                                                                                                         
patool: Extracting C:\Users\olivi\AppData\Local\portmod\portmod\Cache\downloads\setuptools-65.3.0-py3-none-any.whl.zip ...                                                                                                                   
patool: running "C:\Program Files\7-Zip\7z.EXE" x -y -oC:\Users\olivi\AppData\Local\Temp\portmod\dev-python\setuptools-65.3.0\work\setuptools-
65.3.0-py3-none-any.whl -- C:\Users\olivi\AppData\Local\portmod\portmod\Cache\downloads\setuptools-65.3.0-py3-none-any.whl.zip                                                                                                                                                                                                              
patool: ... C:\Users\olivi\AppData\Local\portmod\portmod\Cache\downloads\setuptools-65.3.0-py3-none-any.whl.zip extracted to `C:\Users\olivi\AppData\Local\Temp\portmod\dev-python\setuptools-65.3.0\work\setuptools-65.3.0-py3-none-any.whl'.                                                                                                                                                                                                                                            
>>> Preparing source in "C:\Users\olivi\AppData\Local\Temp\portmod\dev-python\setuptools-65.3.0\work\setuptools-65.3.0-py3-none-any.whl"…                                                                                                    
>>> Source Prepared                                                                                                                                                                                                                          
>>> Installing dev-python/setuptools-65.3.0 into C:\Users\olivi\AppData\Local\Temp\portmod\dev-python\setuptools-65.3.0\image                                                                                                                
Traceback (most recent call last):                                                                                                                                                                                                             
File "C:\Users\olivi\AppData\Local\portmod\portmod\openmw\var\db\common\wheel\wheel-1.pybuild", line 26, in src_install                                                                                                                        os.rename(os.path.join(self.WORKDIR, self.S), python_dir)                                                                                                                                                                                
PermissionError: [WinError 32] Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus: 'C:\\Users\\olivi\\AppData\\Local\\Temp\\portmod\\dev-python\\setuptools-65.3.0\\work\\setuptools-65.3.0-py3-none-any.whl' -> 'C:\\Users\\olivi\\AppData\\Local\\Temp\\portmod\\dev-python\\setuptools-65.3.0\\image\\lib\\python'                                                                                                                          
ERROR: An error was encountered when execuring code inside the sandbox: C:\Users\olivi\AppData\Local\portmod\portmod\repos\python\dev-python\setuptools\setuptools-65.3.0.pybuild install failed!
Sorry for the bit in French, but "Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus:" means "The process cannot access the file because it is being used by another process".

I checked for any other process that might be running in the background and using any of the mentionned file, but no such process seems to be running.
User avatar
bmw
Posts: 81
Joined: 04 Jan 2019, 19:42
Contact:

Re: Issue when installing dev-python/setuptools-65.3.0 with portmod

Post by bmw »

I've run into that error a number of times on Portmod's Windows CI, but I've never fully understood why it occurs. My best guess was that an antivirus or indexer, is trying to scan the files while they are being used. I'd never encountered it when manually testing it on Windows, but I haven't done that very frequently.

However I think I've figured out what the problem may be, because in this case it's trying to move a directory which also happens to be the current working directory of the same process. I've pushed an update to common/wheel (the dependency of setuptools which contains the code in question) and if you update to the new version of that (e.g. a world update with "portmod openmw merge -uD @world") and then try again it might work.
User avatar
Eldy
Posts: 9
Joined: 06 Dec 2022, 22:09

Re: Issue when installing dev-python/setuptools-65.3.0 with portmod

Post by Eldy »

It seems that the error disappeared, thanks. Though I run into another issue as described here: viewtopic.php?t=7930
Post Reply