Move Tropy between computers: file path-ways


#1

Hello,

I apologize for asking this question again, but I’m not particularly good at technology. I had to move my Tropy project from my work computer to my personal laptop. I have access to the metadata and the project itself, but I cannot view the images in Tropy. As far as I understand, I have to re-path so that the images are visible again. I tried to do this with the instructions provided here on the forum, but I can’t even figure out what a project file is or how to work SQLite.

Thank you.

  • Julianne

#2

Your project file is the .tpy file you created when you first started Tropy (by default it would have been placed in your Documents folder.

If you still have everything on your work computer then one way to make the move is this:

  • Close Tropy
  • Move the project file to the folder where your pictures are
  • (At this time, also make a backup copy of your project file just to be safe)
  • Start Tropy; because you moved your project file, your project won’t open automatically. Hit Cmd/Ctrl+O and select your project file in the open dialog to open it.
  • Open Tropy’s preferences and enable ‘Developer Mode’
  • Close the preferences window and, while your project is still open, select ‘rebase project’ from the Developer menu (do this only once!). There will be no visible change, but at this point you can close Tropy and copy the folder with your pictures and your project file to the laptop.
  • After you’ve opened the project on your laptop and all the photos were consolidated you can re-base the project again if you want to move the project file to a different location; you can also keep it portable (but make sure it always stays in the folder with your pictures).

Alternatively, we can update the paths in your project file. I’m happy to help you do this, if you can send me your project file here (or via private message) and tell me where the photos are located on your laptop.


#3

Hello. I am sorry if this is just endlessly repeating similar questions (or I should have started a new thread or something). I have followed your instructions for rebasing the project, with odd results. I should start by saying I managed to successfully move my project from my local hard drive to the icloud (photos and .tpy file are both there). It runs perfectly from my desktop. I then tried to make it also run from my laptop. I followed the instructions. Now 90% of the photos are grayed out (no thumbnails). But about 8% have thumbnails and, odder, 2% have full photos. I am not very SQLITE knowledgeable, but a friend followed your query instructions and said it looks fine. It seems to start ‘rebasing’ (does this mean indexing more or less?) and gets to about 10% and then just stops. I have given it a lot of time in case the network is just slow or something (actually I have tried at work (university wifi) and home (wifi with mesh internet on broadband) and no deal. I am just really at a loss now. I should add that the version running from home is still perfect after the rebasing. I thought it was a path problem, but if so why would a small percentage of it randomly work. Sorry if this is not very well put. Thanks so much!!
Shaunnagh


#4

The only explanation is that Tropy still looks for your files in the wrong place. The easiest way to find out what’s wrong is to print out all the paths in your project file and compare them to what you actually have on disk on both computers.

With SQLite a quick way to do this would be sqlite3 ./path/to/project.tpy "select path from photos order by path" from a Terminal with the sqlite3 executable installed, or else just select path from photos order by path in an SQLite browser. This should print all the paths currently stored in your project file. There are a couple of important clues in that list:

  • Are the paths all absolute paths? Or are they all relative paths? For a portable project they should all be relative paths.
  • Are the relative paths correct relative to your project file. I.e., if the photos are all in the same folder as your project file then the list of paths should only include the photo filenames.

If the list looks good, the next question is to make sure that all the photos are actually there on both devices. If that’s the case then the only explanation for why the photos would not show up on one of the devices is that Tropy can’t open the files for some reason (also make sure the device has read permissions to them) – if you could post the tropy.log file from the device that does not show the pictures it might help us figure out what’s going on there.


#5

Hi Inukshuk,

When I get to the Developer Mode, I can’t find a “rebase project” option – can you be more specific about it’s location?

I have the same problem as everyone else – and am also not a programmer (although my IT support guys couldn’t figure it out either). I just need access on my PC to a stand alone copy (I don’t have to have a shareable one) of the archive my research assistant built on her Mac. At the risk of sounding stupid, why doesn’t moving everything onto an external hard-drive work?


#6

If you enable developer mode in the preferences, a new entry ‘Developer’ will show up in the project window’s menu (on macOS it is in the application menu at the top). The ‘rebase project’ toggle is in that menu.

However, you need to rebase the project on your assistants Mac before you transfer it to your PC.

If you move everything to an external hard drive and open the project on a different computer (without making it portable first) everything ‘works’ but Tropy won’t find your photos, because they use a different path on the new computer. You would then have to consolidate (or re-associate) each photo individually – this is extremely tedious, so until we have a better UI solution for this, the best way to move the project is to make it portable first or to re-write all the paths using SQLite. I’d be happy to help with the latter, if you already have the file and all the photos on the external disk: you would have to send me the project file here (or in a private message) for me to update the paths for you.


#7

Thank you so much for your quick response! So are you saying the using SQLIte would make re-writing all the paths easy? Would I just need to have the external disk and then send you the project file? Or would my RA need to send it to you from her computer? Is that a simple upload? How is this different than making the archive “portable”? I’m sorry that you have to spell everything out – I’m really trying - but struggling - to understand.


#8

When you ‘rebase’ the project to make it ‘portable’ Tropy will look at all the photos and change their paths to be relative to the current location of the project file. For this to work, Tropy needs to be able to find the photos, so in your case, this would have to happen on your assistant’s computer.

  1. Move the project file to the external disk, into the same folder with all the photos.
  2. Make the project portable: this means Tropy will figure out where all the photos are relative to the project file on the external disk.

At this point you would be able to open the project on any other computer as long as you keep the project file on the external drive. To move the project permanently to another computer (or the photos to a new location) you could then rebase the project again after the move: then you’d be able to move the project file around again, independently of the photos. You can also just leave the portable project on the external hard drive of course (at the moment there are performance benefits if you keep the project file on a ‘fast’ disk though).

Anyway, if you’ve already ‘moved’ everything (i.e., you have the project and photos and your own computer) then rebasing won’t work anymore because Tropy does not know about the current location of the photos (we’ll address this very soon because this is causing way too much issues for everyone!). So in this case, the easiest thing is to re-write the paths in the database file directly: this should be easy as long as we know where your photos are located on your new computer (or, if we want a portable project, where the photos will be relative to the project file). Like I said, I’m happy to do this for you if you send me the project file (the .tpy file) here. You can attach the file to a message here in the forums; in case the project file is too big, you can also just send it to me at sylvester.keil@gmail.com


#9

Thank you so much!! I’ll follow your instructions and hopefully it will work.