Error when building on all daily builds going back to CoronaSDK-2016.3016

I have no idea what the problem is? I have tried building just a completely blank project as well. Still same issue. Not sure what the issue can be? I keep getting this error regardless of what I do: https://i.imgur.com/rD9mrIy.png

Anyone else seeing this issue? Any way to fix it?

Thanks

Anyone who knows what can be messing about?

Can you post your build.settings?

Can you build with 2992?

Rob

Hey Rob,

Yes, 2992 works.

My build settings:

settings = { plugins = { ["plugin.notifications"] = { publisherId = "com.coronalabs", }, }, orientation = { default = "portrait", supported = { "portrait" } }, iphone = { plist = { UILaunchImages = { { -- iPhone 4 Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{320, 480}" }, { -- iPhone 5 Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-568h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{320, 568}" }, { -- iPad Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-Portrait", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{768, 1024}" }, { -- iPhone 6 Portrait ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-667h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{375, 667}" }, { -- iPhone 6 Plus Portrait ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-736h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{414, 736}" }, }, UIAppFonts = { "Arial Rounded Bold.ttf", "HelveticaNeue.ttf", "HelveticaNeue-Bold.ttf", "HelveticaNeue-BoldItalic.ttf", "HelveticaNeue-Light.ttf", "HelveticaNeue-Italic.ttf", "HelveticaNeue-LightItalic.ttf", "HelveticaNeueLTStd-Th.otf", "SourceSansPro-Regular.ttf", "SourceSansPro-Bold.ttf", "SourceSansPro-BoldItalic.ttf", "SourceSansPro-Light.ttf", "SourceSansPro-Italic.ttf", "SourceSansPro-LightItalic.ttf", "SourceSansPro-ExtraLight.ttf", }, CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-40.png", "Icon-40@2x.png", "Icon-40@3x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-60@3x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png" }, UIPrerenderedIcon = true, }, }, android = { usesPermissions = { "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.INTERNET", "com.android.vending.BILLING", "android.permission.ACCESS\_NETWORK\_STATE", }, }, }

Are building from a Mac or Windows?  What version of the OS?

Also when you say a completely blank project, what’s in the build.settings for that?

What version of macOS are you using?

Have you manually installed an update to Python lately?

Hello!
May I ask you to run couple tests to help to figure out this issue. In Terminal app. When prompt appears paste following and press Return:

tmpfile=$(mktemp) && /usr/bin/xattr -cr $tmpfile && echo OK ; rm $tmpfile

Copy the output here.

I’m using Mac to make the build, MacOS 10.21.1 Sierra

I’ve tried with the build.settings I attached here - and then I also tried with the template you guys offer in the API docs, as a clean slate, and neither work.

Have you manually installed an update to Python lately?

I installed Python 3.x a few weeks ago. I remember not having used CoronaSDK since then and thus haven’t gotten this error since then, so maybe it has something to do with this?

Hello!

May I ask you to run couple tests to help to figure out this issue. In Terminal app. When prompt appears paste following and press Return:

Hey Vlad! Output is as follows:

Traceback (most recent call last): File "/usr/bin/xattr-2.7", line 7, in \<module\> from pkg\_resources import load\_entry\_point ImportError: No module named pkg\_resources

Will try installing Python2.7 and see if that helps

Edit: Nope, I installed HomeBrew and ran brew install python – it installed Python 2.7 but I’m still getting the error when building with Corona. Is there anything else one has to do with Python to get the fix?

Hello!

Corona SDK uses built-in macOS utility xattr, which is apparently broken on your computer. Something after installing python3 went south, it seems. I would recommend trying to run 

tmpfile=$(mktemp) && /usr/bin/xattr -cr $tmpfile && echo OK ; rm $tmpfile

again, to see if installing brew python helped (it should print “OK”, not error traceback). If not uninstall python 3 and try again.

I am using python 3 as well, installed from brew, and it works fine with my setup. It is normal to have python 2 and 3 together. But it seems that you somehow borked your system setup. You have to have xattr working correctly.

Same error running it again. Thanks for the tip - I’ll google on how to fix xattr. I installed Python 3 via their mac installer on their website, so I have the Python Launcher and Python 3.6

Uninstalling it didn’t help.

Will search for fixes to xattr and see if I can find any solutions and will report back if I find anything that works. Thanks a lot for the pointers. Been struggling with this for many days now.

Edit: Tried installing 2.7 from the official installer as well here https://www.python.org/downloads/mac-osx/, successfully installed, got now 3.6 and 2.7 installed along with the Python launcher and they both appear in my Programs folder - but still same error.

I must have corrupted something deeply in the OS. Not sure how or why though… I have 2.7 installed via brew and installer now. Will continue googling and see if I can find any solutions, but this issue seems really rare

I’m sorry to hear that. For future, use python from brew. “brew install python” for python 2.7 and “brew install python3” for 3.6.

They play nicely with the system. Btw, I’m not sure, but you can try running just plain “xattr” command, and see if it will crash ( it shouldn’t output anything )

Thanks, will remember that for the future. Running xattr returns the same error.

As soon as I get home I’ll try reinstall the OS. Will report back if that fixes things.

Thanks again a ton for the help

Edit: Navigated to /usr/bin/ and I have the files xattr, xattr-2.6 and xattr-2.7 there. So it doesn’t seem like the files are missing. Perhaps the command is rewired or something. Will continue researching… If anyone knows anything that could help it would be tremendously appreciated. Thanks!

Edit2: For anyone else finding this thread later - turned out I had corrupted the Python preinstalled in the OS by modifying it with sudo pip in the terminal a few weeks ago. A clean reinstall of the OS fixed it. Followed this guide. https://support.apple.com/en-us/HT204904

Thanks again for the help

Anyone who knows what can be messing about?

Can you post your build.settings?

Can you build with 2992?

Rob

Hey Rob,

Yes, 2992 works.

My build settings:

settings = { plugins = { ["plugin.notifications"] = { publisherId = "com.coronalabs", }, }, orientation = { default = "portrait", supported = { "portrait" } }, iphone = { plist = { UILaunchImages = { { -- iPhone 4 Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{320, 480}" }, { -- iPhone 5 Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-568h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{320, 568}" }, { -- iPad Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-Portrait", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{768, 1024}" }, { -- iPhone 6 Portrait ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-667h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{375, 667}" }, { -- iPhone 6 Plus Portrait ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-736h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{414, 736}" }, }, UIAppFonts = { "Arial Rounded Bold.ttf", "HelveticaNeue.ttf", "HelveticaNeue-Bold.ttf", "HelveticaNeue-BoldItalic.ttf", "HelveticaNeue-Light.ttf", "HelveticaNeue-Italic.ttf", "HelveticaNeue-LightItalic.ttf", "HelveticaNeueLTStd-Th.otf", "SourceSansPro-Regular.ttf", "SourceSansPro-Bold.ttf", "SourceSansPro-BoldItalic.ttf", "SourceSansPro-Light.ttf", "SourceSansPro-Italic.ttf", "SourceSansPro-LightItalic.ttf", "SourceSansPro-ExtraLight.ttf", }, CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-40.png", "Icon-40@2x.png", "Icon-40@3x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-60@3x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png" }, UIPrerenderedIcon = true, }, }, android = { usesPermissions = { "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.INTERNET", "com.android.vending.BILLING", "android.permission.ACCESS\_NETWORK\_STATE", }, }, }

Are building from a Mac or Windows?  What version of the OS?

Also when you say a completely blank project, what’s in the build.settings for that?

What version of macOS are you using?

Have you manually installed an update to Python lately?

Hello!
May I ask you to run couple tests to help to figure out this issue. In Terminal app. When prompt appears paste following and press Return:

tmpfile=$(mktemp) && /usr/bin/xattr -cr $tmpfile && echo OK ; rm $tmpfile

Copy the output here.