Error: Runtime exited with error: signal: segmentation fault" - pandas

while reading csv file from s3 getting segmentation fault error in AWS Lambda function.
Note: code is working, but for some files getting this error
s3 = boto3.client('s3')
obj = s3.get_object(Bucket=s3_bucket, Key=key)
df = pd.read_csv(io.BytesIO(obj['Body'].read()))
Response
{
"errorType": "Runtime.ExitError",
"errorMessage": "RequestId: 34abfc3f-dff3-342c2-89f8-0346f6ab3bf Error: Runtime exited with error: signal: segmentation fault"
}
Thanks in advance!!

Related

Why syntaxError: invalid syntax Occurs when Login to openstack dashboard?

I got issue when running openstack horizon.
I failed to log in horizon after setting all requirements and i got SyntaxError in /var/log/apache/error.log.
mod_wsgi (pid=5342): Failed to exec Python script file '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py'.
mod_wsgi (pid=5342): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py'.
File "/usr/lib/python3/dist-packages/openstack_dashboard/settings.py", line 239, in <module>
from local.local_settings import * # noqa: F403,H303
File "/usr/lib/python3/dist-packages/openstack_dashboard/local/local_settings.py", line 137
'enable_router': False,
SyntaxError: invalid syntax
Why the SyntaxError : invalid syntax occurs?
I solve the problem after i checked the /etc/openstack-dashboard/local_setting.py.
OPENSTACK_NEUTRON_NETWORK = {
...
'enable_router': False,
'enable_quotas': False,
'enable_ipv6': False,
'enable_distributed_router': False,
'enable_ha_router': False,
'enable_fip_topology_check': False,
}
I didn't remove the ... in OPENSTACK_NEUTRON_NETWORK.
After i remove it, the horizon works fine.

Why is "sudo expo start" giving "unable to resolve root"?

I'm trying to run a react native app in expo, and after creating a blank app with expo init, when I cd into my project and do expo start, I get the following error:
events.js:282
throw er; // Unhandled 'error' event
^
Error: unable to resolve root /Users/myusername/Documents/native-app-name: failed to opendir(/Users/myusername/Documents/native-app-name): Operation not permitted
at BunserBuf.<anonymous> (/Users/myusername/Documents/native-app-name/node_modules/fb-watchman/index.js:95:23)
at BunserBuf.emit (events.js:305:20)
at BunserBuf.process (/Users/myusername/Documents/native-app-name/node_modules/bser/index.js:292:10)
at /Users/myusername/Documents/native-app-name/node_modules/bser/index.js:247:12
at processTicksAndRejections (internal/process/task_queues.js:79:11)
Emitted 'error' event on WatchmanWatcher instance at:
at Client.<anonymous> (/Users/myusername/Documents/native-app-name/node_modules/jest-haste-map/build/lib/WatchmanWatcher.js:130:10)
at Client.emit (events.js:305:20)
at BunserBuf.<anonymous> (/Users/myusername/Documents/native-app-name/node_modules/fb-watchman/index.js:107:12)
at BunserBuf.emit (events.js:305:20)
at /Users/myusername/Documents/native-app-name/node_modules/bser/index.js:249:12
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
watchmanResponse: {
version: '4.7.0',
error: 'unable to resolve root /Users/myusername/Documents/native-app-name: failed to opendir(/Users/myusername/Documents/native-app-name): Operation not permitted'
}
}
Why might this be?
Try to move your project folder to a different place on your local. I just tried and worked for me.

I could not resolve module because of the following error

error: bundling failed: Error: Unable to resolve module ../../../.cache/typescript/2.6/node_modules/#types/prop-types from /../../../../../sample.js: The module ../../../.cache/typescript/2.6/node_modules/#types/prop-types could not be found
It was an issue from import statement on sample.js page
import { array } from '../../../.cache/typescript/2.6/node_modules/#types/prop-types'

MFP 8 previewing app throws error

I am trying to preview the app in MFP 8 CLI. But it throws the below error :
Any help would be appreciated.
{ Error: ERRGETSERVER
at generateError (C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\mfpdev
-cli\node_modules\mdo-errors\lib\index.js:31:23)
at Object.module.exports.getError (C:\Users\IBM_ADMIN\AppData\Roaming\npm\no
de_modules\mfpdev-cli\node_modules\mdo-errors\lib\index.js:25:10)
at readServerProfiles (C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\m
fpdev-cli\node_modules\mdo-server-support\lib\profileIO.js:157:28)
at C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\mfpdev-cli\node_modul
es\mdo-server-support\lib\profileIO.js:81:7
at _fulfilled (C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\mfpdev-cl
i\node_modules\q\q.js:834:54)
at self.promiseDispatch.done (C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_mo
dules\mfpdev-cli\node_modules\q\q.js:863:30)
at Promise.promise.promiseDispatch (C:\Users\IBM_ADMIN\AppData\Roaming\npm\n
ode_modules\mfpdev-cli\node_modules\q\q.js:796:13)
at C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\mfpdev-cli\node_modul
es\q\q.js:556:49
at runSingle (C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\mfpdev-cli
\node_modules\q\q.js:137:13)
at flush (C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\mfpdev-cli\nod
e_modules\q\q.js:125:13)
errno: 131,
code: 'ERRGETSERVER',
description: 'An error occurred during an attempt to read the server profiles.
' }

Podspec - Linking local Framework

My application uses the local framework /Library/Frameworks/iTunesLibrary.framework.
Then I get those error messages:
- ERROR | [xcodebuild] someFile.h:10:9: fatal error: 'iTunesLibrary/ITLibrary.h' file not found
- ERROR | [OSX] [xcodebuild] someFile.h:10:9: fatal error: 'iTunesLibrary/ITLibMediaItem.h' file not found
I added the following line to my podspec:
s.framework = 'iTunesLibrary'
But apparently the framework is not found, probably because it's not searching through /Library/Frameworks/.
How can I solve this?
Got it. I had to set the FRAMEWORK_SEARCH_PATHS to /Library/Frameworks/.
s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '/Library/Frameworks/' }