PythoncadBugTraker item #3097630, was opened at 2010-10-28 21:49 Message generated for change (Comment added) made by matteoboscolo You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1128790&aid=3097630&group_id=263167
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open >Resolution: Works For Me Priority: 5 Private: No Submitted By: carlopav (carlopav) >Assigned to: Matteo Boscolo (matteoboscolo) Summary: import file crashes under ubuntu 10.10 Initial Comment: hi, the import command still causes pycad to crash under ubuntu 10.10 bug seems to be in cadwindow.py row 356 carlo ---------------------------------------------------------------------- >Comment By: Matteo Boscolo (matteoboscolo) Date: 2011-01-17 08:03 Message: is this bug still open ? ---------------------------------------------------------------------- Comment By: Matteo Boscolo (matteoboscolo) Date: 2010-10-30 07:39 Message: it seems a problem with the self.mdiArea.activeSubWindow() that is None . It seems that you do not have any active drawing ..opened .. witch version of pyqt are you using ? dose the open file with dxf extension works well ? we can manage this error controlling the code like this: def _onImportDrawing(self): drawing = QtGui.QFileDialog.getOpenFileName(parent=self, caption="Import Drawing", directory=self.lastDirectory, filter="Dxf (*.dxf)"); # open a document and load the drawing if len(drawing)>0: self.lastDirectory=os.path.split(drawing)[0] if self.mdiArea.activeSubWindow() != None: self.mdiArea.activeSubWindow()importExternalFormat(drawing) else: print "active sub windows is none" return but I do not think that you can open a dxf file anymore :-) Regards, Matteo ---------------------------------------------------------------------- Comment By: carlopav (carlopav) Date: 2010-10-29 21:31 Message: def _onImportDrawing(self): drawing = QtGui.QFileDialog.getOpenFileName(parent=self, caption="Import Drawing", directory=self.lastDirectory, filter="Dxf (*.dxf)"); # open a document and load the drawing if len(drawing)>0: self.lastDirectory=os.path.split(drawing)[0] self.mdiArea.activeSubWindow().importExternalFormat(drawing) <<<<<<<<<<<<<it crashes here return saying "unhandled attribute error" none type object has no attribute "importExternalFormat" regards carlo ---------------------------------------------------------------------- Comment By: Matteo Boscolo (matteoboscolo) Date: 2010-10-29 06:26 Message: could you post part of the code Regards, Matteo ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1128790&aid=3097630&group_id=263167 ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Pythoncad-developer mailing list Pythoncad-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pythoncad-developer