Login  Register

All file accesses get externalCalledFailed exceptions.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

All file accesses get externalCalledFailed exceptions.

Pharo Smalltalk Users mailing list
914 posts
Newbie to Pharo
Just installed the latest 8.0 stable image.
Some things work, but anything I do to access any files gets an exception dealing with getcwd in libc.dylib.

I am running MacOS Catalina.
I searched and found the lib.dylib file and it is an alias to another .dylib file.

Is there something else I need to install or configure?



Sent from my iPad

e876cb42-0161-4573-bdb7-0bf57c073efb.png (134K) Download Attachment
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: All file accesses get externalCalledFailed exceptions.

Tim Mackinnon
1126 posts
H Michael- that seems strange, I just tried the following on a Pharo8 with Catalina: 

OSPlatform current currentWorkingDirectoryPath.

> /Users/macta/Dev/Smalltalk/Pharo/Pharo 8.0 - 64bit

I’m using PharoLauncher, although my images are not stored in Documents, but ~/Dev/Smalltalk/Pharo (I adjusted the launcher settings). Not sure if that makes a difference? Or - perhaps you didn’t allow Pharo disk read privileges (that is a new security check in Catalina - see the OSX System Preferences, Security and Privacy, Files and Folders. Mine has a pharo entry with access to Downloads, Documents and Desktop).

Tim

On 22 Apr 2020, at 10:25, Michael Burns via Pharo-users <[hidden email]> wrote:


From: Michael Burns <[hidden email]>
Subject: All file accesses get externalCalledFailed exceptions.
Date: 22 April 2020 at 10:25:56 BST
To: Pharo users <[hidden email]>


Newbie to Pharo
Just installed the latest 8.0 stable image.
Some things work, but anything I do to access any files gets an exception dealing with getcwd in libc.dylib.

I am running MacOS Catalina.
I searched and found the lib.dylib file and it is an alias to another .dylib file.

Is there something else I need to install or configure?

<e876cb42-0161-4573-bdb7-0bf57c073efb.png>
Sent from my iPad


Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: All file accesses get externalCalledFailed exceptions.

Pharo Smalltalk Users mailing list
914 posts
Thanks Tim!

Problem solved. 

I did as you suggest and added Pharo.app (and Squeak*.app) to the "Files and Folders” and tried again.
That resolved the primary issue but when opening File Browser I got a different exception referring to /.VolumeIcon.icns not being able to be opened.
The volume was my boot partition and in Catalina that is a readonly filesystem.
I looked at that file with ls and file commands, and it turns out that it was a broken link to the same file in the contained Data volume.
The destination does not exist:  
[graphe:/Volumes/Graphe6] Michael% file .VolumeIcon.icns
.VolumeIcon.icns: broken symbolic link to System/Volumes/Data/.VolumeIcon.icns

So, I created an empty file there:

[graphe:/Volumes/Graphe6] Michael% sudo touch .VolumeIcon.icns

And rechecked the link:

[graphe:/Volumes/Graphe6] Michael% file .VolumeIcon.icns
.VolumeIcon.icns: empty


File Browser now opens and lets me navigate around.  

All is well. 


On Apr 22, 2020, at 5:40 AM, Tim Mackinnon <[hidden email]> wrote:

H Michael- that seems strange, I just tried the following on a Pharo8 with Catalina: 

OSPlatform current currentWorkingDirectoryPath.

> /Users/macta/Dev/Smalltalk/Pharo/Pharo 8.0 - 64bit

I’m using PharoLauncher, although my images are not stored in Documents, but ~/Dev/Smalltalk/Pharo (I adjusted the launcher settings). Not sure if that makes a difference? Or - perhaps you didn’t allow Pharo disk read privileges (that is a new security check in Catalina - see the OSX System Preferences, Security and Privacy, Files and Folders. Mine has a pharo entry with access to Downloads, Documents and Desktop).

Tim

On 22 Apr 2020, at 10:25, Michael Burns via Pharo-users <[hidden email]> wrote:


From: Michael Burns <[hidden email]>
Subject: All file accesses get externalCalledFailed exceptions.
Date: 22 April 2020 at 10:25:56 BST
To: Pharo users <[hidden email]>


Newbie to Pharo
Just installed the latest 8.0 stable image.
Some things work, but anything I do to access any files gets an exception dealing with getcwd in libc.dylib.

I am running MacOS Catalina.
I searched and found the lib.dylib file and it is an alias to another .dylib file.

Is there something else I need to install or configure?

<e876cb42-0161-4573-bdb7-0bf57c073efb.png>
Sent from my iPad