Tried to attach a photo ofthe error displayed…700kB PNG file…not uploading
Tried to import my 395 contacts, worked flawlessly.
What’s the output in the terminal?
Maye look at your file, around the last name correctly imported, and see if some entry has anything different in it, like a strange character or punctuation ?
indeed, it has maybe a comma ( , ) in its name
as the file is comma separated and I didn’t have that case, it should be a line with more than 49 commas in it
you can try increasing the array size in the yab program to maybe 60
better for me, you look on line 95 (minus the first one) and look there for an additional , so I can have a look for a fix
thanks
Sorry to bother you, I had to re-install for some reason…now, I need to convert gmail contacts to people, again. Link that was given 2 years back is not working anymore…can you please share it again?
While that link no longer works the zip file with the Google contacts to people importer is still available from that site: https://flojosoft.thaler-online.com/wp-content/uploads/2023/12/gmailcsv2people.yab-17122023.zip
In case it helps, you can construct a People file with tools that come with Haiku. Here’s a shell script that assumes it will be called with name and email parameters:
#!/bin/sh
case $# in
2) ;;
*) echo Usage: email2people "name" "email" >&2 ; exit 1 ;;
esac
name="$1"
email="$2"
file="$HOME/people/$name"
> "$file"
addattr -t mime BEOS:TYPE application/x-person "$file"
addattr -t string META:name "$name" "$file"
addattr -t string META:email "$email" "$file"
Thank you very much. got it
Thanks. Will try this
This is for only x86…I am on x86_64
This script is not working. Pl. see the error as shown below
~/Desktop/GGGGG> yab gmailcsv2people.yab contacts.csv
importing people
—Error in gmailcsv2people.yab, line 77: index 1 (=49) out of range
—Dump: sub ImportPeeps() called in gmailcsv2people.yab,39
—Error: Program stopped due to an error
—Program done, press RETURN—
Try here
/Desktop/GGGGG> ./vcard2person
./vcard2person: line 7: syntax error near unexpected token newline' ./vcard2person: line 7: ’
~/Desktop/GGGGG>
Downloaded the raw file, changed permission, made executable and ran it. Above error occurs.
Line 7 has only dashed line ---------------------
Trying all these different possible solutions listed above to import Person files as previously mention, which did not work for me. The most promising was the YAB program: gmailcsv2people.yab. With that said, I am not a YAB programmer.
I use Thunderbird e-mail software on all my PCs, IceDove on Haiku, so when I migrated from Zeta OS…the Zeta versions of Person files did not migrate. I have been looking for a way to easily create them as others before me have tried.
Using the ‘gmailcsv2people.yab’ program as a template, I made modifications to the program that will import a Thunderbird CSV Export file and create Person files. Read the instructions within the program file before proceeding.
You can adapt this YAB program to any CSV file by manipulating and mapping the imported data to the correct Person attributes.
Have fun!
P.S. The YAB program works great in Zeta 1.51 for those who still use Zeta!
The CSV export file must be clean from quoted data, “text, text” and “text’text”, no COMMAs and no SINGLE-QUOTEs in all columns for it to run cleanly.
That’s how I got it to run with no errors or warnings.
This file downloads, but does not open…it says the downloaded file could not be opened
Open Expander, drop the file in the window, extract then click on extracted file. ![]()
Tested on a nightly, tbcsv2people.yab is launching correctly. As I have no use for it, after that, I didn’t test. Just note that being a yab thing, it might not play well with dark colour schemes.
End-of-central-directory signature not found message whentrying to expand…flameshot not working properly…cant take screen shot
I was wondering if it could not be possible that People app could support directly vcard files.
When seeing a vcard file, it could check if the meta data from this vcard file are already extracted and exposed as attributes (People files are just empty files with meta data like name, email, phonenumber, address etc as BFS attributes)., and if not (or the vcard has changed since, which can be detected via a checksum attribute to compare with the checksum of the vcard file content) extracted/updated ?
That way, you could use directly vcard files as People files, and you could also attach a People file in a mail (or any other communication app featuring files exchange) and the vcard part will be there for users on others OS).
What do you think?
