forums.tropy.org

Need to change all file paths in my .tpy file

Hi all,

I started using Tropy a couple of weeks ago and find it highly useful. However, last weekend I had to replace my computer’s failing hard drive. When I installed Windows on the new HD, for reasons unknown to me my username was shortened by two letters. I backed up all my data, but the Tropy project I was working on with 1900+ images now doesn’t work because it still has the old file paths (C:\user[old username]\pictures…).

I tried editing the file paths in my .tpy file in WordPad, but that just corrupted it entirely (no worries, I backed that up too).

How can I fix this? I searched the forums and found instructions for fixing it in Linux and MacOs but not Windows.

Thanks!

You can find some additional instructions for Windows in this post. In your case it sounds like a very easy fix, if you send me your project file and the new username (either via direct message here on the forums or at sylvester.keil@gmail.com) I can quickly update the paths for you.

I don’t seem to have DM privileges yet, so I sent an email. Thanks so much!

Dear all,

I take up this topic again because I couldn’t find any solution that corresponds to my situation. My laptop broke down a couple of weeks ago. I had a backup of the whole tropy-folder. I now copied the project file and the cache-folder in the newly created tropy-folder on my new laptop and the project opens up fine! (With is great news already!) However, the images only show up as thumbnails with an exclamation mark because the paths have changed (due to a new user name on my new laptop). I understood that there is now an easier solution to move projects from one computer to another, but I could not find anything how to properly re-install your project just from the backup.

I suppose I need to change the paths in the project? The problem is, that the photos were and are saved in different folders (mostly under one main folder) - would that mean that I need to change the paths in tropy manually at least for each folder? I am currently using 7 folders in Tropy, that correspond to 7 folders with the photos.

I tried to consolidate single photos, but it did not open up anything.

Here is the logfile:

{“level”:30,“time”:1618766075640,“type”:“browser”,“name”:“main”,“args”:[],“opts”:{“env”:“production”,“autoUpdates”:true,“webgl”:false,“debug”:false,“trace”:false,“data”:“C:\Users\adayi\AppData\Roaming\Tropy”,“cache”:“C:\Users\adayi\AppData\Roaming\Tropy\cache”,“logs”:“C:\Users\adayi\AppData\Roaming\Tropy\log”},“version”:“1.9.0”,“msg”:“main.init 1.9.0 Windows_NT 10.0.19041 (x64)”}
{“level”:30,“time”:1618766075798,“type”:“browser”,“name”:“main”,“msg”:“plugins scanned: 0”}
{“level”:30,“time”:1618766075803,“type”:“browser”,“name”:“main”,“msg”:“app state restored”}
{“level”:30,“time”:1618766075806,“type”:“browser”,“name”:“main”,“file”:“C:\Users\adayi\AppData\Roaming\Tropy\Conversations avec Picasso.tpy”,“msg”:“open new project window”}
{“level”:30,“time”:1618766075923,“type”:“browser”,“name”:“main”,“msg”:“ready after 705.2880859375ms”}
{“level”:30,“time”:1618766076354,“type”:“renderer”,“name”:“project”,“dpx”:1.5,“opts”:{“aqua”:false,“contrast”:false,“dark”:false,“env”:“production”,“documents”:“C:\Users\adayi\OneDrive\Documents”,“maximizable”:true,“minimizable”:true,“pictures”:“C:\Users\adayi\OneDrive\Images”,“scrollbars”:true,“theme”:“light”,“file”:“C:\Users\adayi\AppData\Roaming\Tropy\Conversations avec Picasso.tpy”,“recent”:[“C:\Users\adayi\AppData\Roaming\Tropy\Conversations avec Picasso.tpy”,“C:\Users\adayi\HiDrive\Uni\Kunstgeschichte\Promotion\Archive\Archiv Picasso\Documentation, Conversations avec Picasso\boite 1\Conversations avec Picasso.tpy”,“C:\Users\adayi\HiDrive\Tropy\Conversations avec Picasso.tpy”,“C:\Users\adayi\OneDrive\Documents\Ikonen1.tpy”,“C:\Users\adayi\OneDrive\Documents\Ikonen.tpy”],“data”:“C:\Users\adayi\AppData\Roaming\Tropy”,“debug”:true,“dev”:false,“cache”:“C:\Users\adayi\AppData\Roaming\Tropy\cache”,“plugins”:“C:\Users\adayi\AppData\Roaming\Tropy\plugins”,“fontSize”:“13px”,“frameless”:false,“level”:“info”,“locale”:“fr”,“log”:“C:\Users\adayi\AppData\Roaming\Tropy\log\tropy.log”,“uuid”:“482c39c0-a05e-11eb-8a47-35cc992b2743”,“update”:{},“version”:“1.9.0”,“webgl”:true,“zoom”:1},“msg”:“project.init”}
{“level”:30,“time”:1618766076487,“type”:“renderer”,“name”:“project”,“msg”:“plugins scanned: 0”}
{“level”:30,“time”:1618766076488,“type”:“renderer”,“name”:“project”,“msg”:“plugins loaded: 0”}
{“level”:30,“time”:1618766077125,“type”:“renderer”,“name”:“project”,“msg”:“restoring recent@tropy”}
{“level”:30,“time”:1618766077129,“type”:“renderer”,“name”:“project”,“msg”:“restoring settings@tropy”}
{“level”:30,“time”:1618766077129,“type”:“renderer”,“name”:“project”,“msg”:“restoring ui@tropy”}
{“level”:30,“time”:1618766077137,“type”:“renderer”,“name”:“project”,“mode”:“w+”,“msg”:“open db C:\Users\adayi\AppData\Roaming\Tropy\ontology.db”}
{“level”:30,“time”:1618766077716,“type”:“renderer”,“name”:“project”,“msg”:“Esper.instance created using webgl renderer”}
{“level”:30,“time”:1618766077803,“type”:“renderer”,“name”:“project”,“mode”:“w”,“msg”:“open db C:\Users\adayi\AppData\Roaming\Tropy\Conversations avec Picasso.tpy”}
{“level”:30,“time”:1618766077843,“type”:“renderer”,“name”:“project”,“mode”:“w”,“msg”:“open db C:\Users\adayi\AppData\Roaming\Tropy\Conversations avec Picasso.tpy”}
{“level”:30,“time”:1618766077947,“type”:“renderer”,“name”:“project”,“msg”:“restoring nav@3f7d9582-60cc-4c55-b331-165c336f5282”}
{“level”:30,“time”:1618766077947,“type”:“renderer”,“name”:“project”,“msg”:“restoring notepad@3f7d9582-60cc-4c55-b331-165c336f5282”}
{“level”:30,“time”:1618766077947,“type”:“renderer”,“name”:“project”,“msg”:“restoring esper@3f7d9582-60cc-4c55-b331-165c336f5282”}
{“level”:30,“time”:1618766077948,“type”:“renderer”,“name”:“project”,“msg”:“restoring imports@3f7d9582-60cc-4c55-b331-165c336f5282”}
{“level”:30,“time”:1618766077948,“type”:“renderer”,“name”:“project”,“msg”:“restoring sidebar@3f7d9582-60cc-4c55-b331-165c336f5282”}
{“level”:30,“time”:1618766077949,“type”:“renderer”,“name”:“project”,“msg”:“restoring panel@3f7d9582-60cc-4c55-b331-165c336f5282”}
{“level”:30,“time”:1618766078020,“type”:“renderer”,“name”:“project”,“mode”:“w”,“msg”:“open db C:\Users\adayi\AppData\Roaming\Tropy\Conversations avec Picasso.tpy”}
{“level”:30,“time”:1618766078125,“type”:“renderer”,“name”:“project”,“msg”:“project ready 2227ms [dom:471ms win:119ms req:632ms]”}
{“level”:40,“time”:1618766078509,“type”:“renderer”,“name”:“project”,“ms”:474,“list”:true,“query”:"",“tags”:false,“trash”:null,“msg”:“SLOW: *search query “” took 474ms”}
{“level”:30,“time”:1618766135811,“type”:“browser”,“name”:“main”,“msg”:“checking for updates…”}
{“level”:30,“time”:1618766137438,“type”:“browser”,“name”:“main”,“msg”:“no updates available”}
{“level”:40,“time”:1618766785402,“type”:“renderer”,“name”:“project”,“stack”:“TypeError: Failed to fetch”,“msg”:“esper: failed loading file:///C:/Ulrike/HiDrive/Uni/Kunstgeschichte/Promotion/Archive/Archiv%20Picasso/Documentation,%20Conversations%20avec%20Picasso/boite%201/GEDC4154.JPG”}
{“level”:40,“time”:1618766786506,“type”:“renderer”,“name”:“project”,“stack”:“Error: ENOENT: no such file or directory, stat ‘C:\Ulrike\HiDrive\Uni\Kunstgeschichte\Promotion\Archive\Archiv Picasso\Documentation, Conversations avec Picasso\boite 1\GEDC4154.JPG’”,“msg”:“failed to open photo C:\Ulrike\HiDrive\Uni\Kunstgeschichte\Promotion\Archive\Archiv Picasso\Documentation, Conversations avec Picasso\boite 1\GEDC4154.JPG”}
{“level”:40,“time”:1618766786542,“type”:“renderer”,“name”:“project”,“stack”:“TypeError: Failed to fetch”,“msg”:“esper: failed loading file:///C:/Ulrike/HiDrive/Uni/Kunstgeschichte/Promotion/Archive/Archiv%20Picasso/Documentation,%20Conversations%20avec%20Picasso/boite%201/GEDC4154.JPG?c=1618766786507”}
{“level”:30,“time”:1618766803408,“type”:“renderer”,“name”:“prefs”,“dpx”:1.5,“opts”:{“aqua”:false,“contrast”:false,“dark”:false,“env”:“production”,“documents”:“C:\Users\adayi\OneDrive\Documents”,“maximizable”:false,“minimizable”:false,“pictures”:“C:\Users\adayi\OneDrive\Images”,“scrollbars”:true,“theme”:“light”,“data”:“C:\Users\adayi\AppData\Roaming\Tropy”,“debug”:true,“dev”:false,“cache”:“C:\Users\adayi\AppData\Roaming\Tropy\cache”,“plugins”:“C:\Users\adayi\AppData\Roaming\Tropy\plugins”,“fontSize”:“13px”,“frameless”:false,“level”:“info”,“locale”:“fr”,“log”:“C:\Users\adayi\AppData\Roaming\Tropy\log\tropy.log”,“uuid”:“482c39c0-a05e-11eb-8a47-35cc992b2743”,“update”:{},“version”:“1.9.0”,“webgl”:true,“zoom”:1},“msg”:“prefs.init”}
{“level”:30,“time”:1618766803468,“type”:“renderer”,“name”:“prefs”,“msg”:“plugins scanned: 0”}
{“level”:30,“time”:1618766803469,“type”:“renderer”,“name”:“prefs”,“msg”:“plugins loaded: 0”}
{“level”:30,“time”:1618766803673,“type”:“renderer”,“name”:“prefs”,“msg”:“restoring prefs@tropy”}
{“level”:30,“time”:1618766803675,“type”:“renderer”,“name”:“prefs”,“msg”:“restoring settings@tropy”}
{“level”:30,“time”:1618766803682,“type”:“renderer”,“name”:“prefs”,“mode”:“w+”,“msg”:“open db C:\Users\adayi\AppData\Roaming\Tropy\ontology.db”}
{“level”:30,“time”:1618766804007,“type”:“renderer”,“name”:“prefs”,“msg”:“prefs ready 1053ms [dom:468ms win:47ms req:201ms]”}
{“level”:30,“time”:1618766804018,“type”:“renderer”,“name”:“prefs”,“mode”:“w+”,“msg”:“open db C:\Users\adayi\AppData\Roaming\Tropy\ontology.db”}
{“level”:30,“time”:1618766808656,“type”:“renderer”,“name”:“prefs”,“msg”:“persisting prefs@tropy”}
{“level”:30,“time”:1618766808657,“type”:“renderer”,“name”:“prefs”,“msg”:“persisting settings@tropy”}
{“level”:30,“time”:1618766808996,“type”:“renderer”,“name”:“project”,“msg”:“restoring settings@tropy”}

I am using windows 10.

I hope that all makes sense!

Thank you for any help or suggestion,
Ulrike

It’s possible to make your project ‘portable’ (making it use relative instead of absolute paths) and then move both project and photos to a different device. However, that’s something you would need to do prior to moving the data on the original device. Since you mentioned your laptop broke down, I’m assuming we can’t go this route.

Not to worry, however, it should still be easy to update all the paths. Basically, you have two options: either consolidate a photo manually and let Tropy update the rest or update the paths manually. The former approach is easier, but can take a long time if you have a large project, because Tropy will reload every single photo.

If you want to try the automatic consolidation, you need to first consolidate a single photo. You mentioned that you tried this and were not prompted for the file: that’s probably because you consolidated the item and not a single photo. So to do this, it’s important to consolidate only a single photo by right-clicking on it in the photos panel – if Tropy can’t find it, it will prompt you for the new location and then ask if it should check for other photos which have been moved. This should be able to update all your paths as long as your seven folders are still in the same place relative to one another (in the worst case you may have to consolidate one photo in each of the seven folders).

There’s also a much faster way to update all your paths directly in the database. To do this, you need to know exactly how your paths changed. For example, based on the log, Tropy is trying to load a file at C:/Ulrike/HiDrive/Uni/Kunstgeschichte/Promotion/Archive/Archiv Picasso/Documentation, Conversations avec Picasso/boite 1/GEDC4154.JPG – if you can tell me the path to this file on the new laptop I can give you the exact instructions how to update the paths in the database with a single command.

1 Like

Thank you so much for your kind and super quick answer!! All works fine now! Dont ask me, I was well in the photo panel yesterday aswell but was somehow to stupid and blind to follow it up to the end. Anyway, after consolidating one image, tropy even consolidated automatically all the photos afterwards - great!

Thank you very much, as well for your patience in repeating the same things over and over again. :wink:

Very happy to continue working with tropy, such a great tool!
Ulrike