Bus Error 10 Python
Contents |
Post #1 of 5 (3557 views) Permalink What is a "bus error"? Hello All, I recently installed Python 2.2-5 from Fink (Unix Software for MacOSX) and tried python import bus error running a few sample scripts/programs. However, some of these programs now give a "bus
Bus Error 10 Mac Os
error" message - what does this mean? Kenny ******************************************************************************* tout casse, tout passe, tout lasse. ******************************************************************************* erno-news at erno Feb1,2002,6:41AM Post #2 python bus error core dumped of 5 (3522 views) Permalink What is a "bus error"? [In reply to] In article
Bus Error 10 Gulp
itself. you could try asking the fink people and/or compiling python yourself and seeing if that works. (if it doesn't, file a bug in the python bug tracker.) -- erno sdm7g at virginia Feb1,2002,8:54AM Post #3 of 5 (3527 views) Permalink What is a "bus error"? [In reply to] On 1 Feb 2002, Erno Kuusela wrote: > In article >
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us bus error 10 strtok Learn more about Stack Overflow the company Business Learn more about hiring developers bus error 10 fortran or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Bus Error 10 from Importing Python Module http://www.gossamer-threads.com/lists/python/python/85114 up vote 1 down vote favorite I installed the gdal module for python a week ago, via the GDAL Complete 1.11 Framework Package. I wrote a program which relied heavily on gdal and osgeo and ogr to work with shapefiles (.shp) and rasters (.TIF). Today, without changing my code at all, when I ran it in the terminal as I usually do, I got back: Bus error: http://stackoverflow.com/questions/24894929/bus-error-10-from-importing-python-module 10 Since I hadn't changed anything with my code, I looked to see whether the problem was with one of my imports. When I commented everything out besides from osgeo import ogr, gdal I got the same error, similarly for when I just ran python in the terminal and tried import gdal I read that Bus Errors are caused by non-existent memory addresses, so I thought the module might somehow not be there anymore, so I listed my modules using ["%s==%s" % (i.key, i.version) for i in pip.get_installed_distributions()] and gdal was listed in there. Anyway, that wasn't necessarily the best thought since python throws an ImportError for modules it doesn't recognize. Other imports, like numpy, math, time, and datetime all work for me. Since bus errors are a sort of hardware fault with the memory, I tried a soft and then a hard reboot, still getting the same bus error. In fact, since I restarted my computer, it's been dreadfully slow. So my first question is why the Bus Error occurred and how to fix it, and second, I'm wondering how to get my computer back up to speed. Last night, I dropped my computer in its
PaDocsMga contactHangoutsMas higit pa mula sa GoogleMag-sign inMga nakatagong fieldHanapin ang mga pangkat o mensahe
to Milestone lxml Edit Invalid Undecided Unassigned Edit You need to log in to change this bug's status. Affecting: lxml Filed here by: Andrew Murray When: 2014-10-22 Completed: 2014-11-01 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi Linux nUbuntu PLD Linux Tilix tuXlab Ubuntu Ubuntu Linaro Evaluation Build Ubuntu RTM Package (Find…) Project (Find…) Status Importance Invalid Undecided Assigned to Nobody Me Comment on this change (optional) Email me about changes to this bug report Also affects project (?) Also affects distribution/package Nominate for series Bug Description The following Python code generates 'Bus error: 10' - >>> import tkinter >>> from lxml import etree >>> root = etree.Element('test') >>> xml = etree.tostring(root) This is also attached as a file. If I reverse the order of the imports, the problem doesn't occur. Yosemite. I tried this under Python 2.7 and 3.4 (changing the name of the tkinter module, naturally) with the MacPorts py-lxml 3.3.5, and I also tried it under Python 3.4 after compiling LXML 3.4.0 myself. The bug occurs every time. The library versions for Python 3.4 with LXML 3.4.0 are - Python : sys.version_info(major=3, minor=4, micro=2, releaselevel='final', serial=0) lxml.etree : (3, 4, 0, 0) libxml used : (2, 9, 2) libxml compiled : (2, 9, 2) libxslt used : (1, 1, 28) libxslt compiled : (1, 1, 28) Add tags Tag help Andrew Murray (radaroutthere) wrote on 2014-10-22: #1 py-lxml-bus-error.py Edit (94 bytes, text/x-python) Andrew Murray (radaroutthere) wrote on 2014-10-23: #2 I have narrowed down the problem to line 126 of /src/lxml/serializer.pxi - tree.xmlOutputBufferFlush(c_buffer) I can well imagine that's not the root cause, but it's the line at which the bus error is produced, and it's a place to start. scoder (scoder) wrote on 2014-10-23: #3 Is the error reproducible on that line or does it crash in other places, too? I'm asking because that particular line is highly unsuspicious. Andrew Murray (radaroutthere) wrote on 2014-10-23: #4 From my test script, it consistently crashes at that line. Changing the surrounding block like so - with nogil: _writeNodeToBuffer(c_buffer, element._c_node, c_enc, c_doctype, c_method, write_xml_declaration, write_complete_document, pretty_print, with_tail, standalone) with gil: print "this line prin