1.0.2 (self built from tar) ==BOOM

Bug #528354 reported by sgt101
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Luminoso
Confirmed
Low
Unassigned

Bug Description

I can run 1.0.2 fine from the .dmg file that you kindly provided on the last sync, but I want to mess about with the system (aren't users a pain!) so I extracted the .tar and tried building from that.

I did

$>python ./setup.py build
$>python ./setup.py install

then I tried to run_luminoso

$>python ./run_luminoso

unfortunately I then got

  File "run_luminoso.py", line 41, in main
    window.setup()
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Luminoso-1.0.2-py2.6.egg/luminoso/window.py", line 63, in setup
    from spyderlib.plugins.console import Console
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Luminoso-1.0.2-py2.6.egg/luminoso/lib/spyderlib/plugins/console.py", line 29, in <module>
    from spyderlib.widgets.interactiveshell import InteractiveShell
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Luminoso-1.0.2-py2.6.egg/luminoso/lib/spyderlib/widgets/interactiveshell.py", line 18, in <module>
    from IPython.deep_reload import reload
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ipython-0.9.1-py2.6.egg/IPython/__init__.py", line 58, in <module>
    __import__(name,glob,loc,[])
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ipython-0.9.1-py2.6.egg/IPython/ipstruct.py", line 22, in <module>
    from IPython.genutils import list2dict2
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ipython-0.9.1-py2.6.egg/IPython/genutils.py", line 120, in <module>
    import IPython.rlineimpl as readline
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ipython-0.9.1-py2.6.egg/IPython/rlineimpl.py", line 37, in <module>
    (status, result) = commands.getstatusoutput( "otool -L %s | grep libedit" % _rl.__file__ )
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/commands.py", line 56, in getstatusoutput
    text = pipe.read()
IOError: [Errno 4] Interrupted system call

Any clue why?

Revision history for this message
sgt101 (simonthompson) wrote :

I've removed some lines in window.py
((line 71))
   """
        if not '--no-console' in sys.argv:
            from spyderlib.plugins.console import Console
            self.console = Console(self, commands=[], namespace=self.__dict__)
            self.ui.tab_stack.addTab(self.console, "Console")
            self.console.setVisible(True)
            self.console_font = QtGui.QFont("Monaco", 10)
            self.console.shell.set_font(self.console_font)
            self.console.shell.execute_command("cls")
        """

and this seems to do the trick.

Also I have found some code I admire :

self.self = self

well...

Revision history for this message
Ken Arnold (kenneth-arnold) wrote :

We've seen something similar before; there seem to be Mac issues with the console window we use. You could also just pass --no-console on the command line.

Also, once you've run 'setup.py install', you'll find a 'luminoso' command. When developing, we've found it best to install after each change and run the 'luminoso' command from outside of the development directory, to help ensure that the development and installed code doesn't get confused. (We've run into issues with 'setup.py develop' in the past, but you're welcome to try that too; it it breaks, you get to keep both pieces.)

Changed in luminoso:
status: New → Confirmed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.