Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error start python invesalius.py #22

Closed
brenopolanski opened this issue Sep 2, 2014 · 10 comments
Closed

Error start python invesalius.py #22

brenopolanski opened this issue Sep 2, 2014 · 10 comments

Comments

@brenopolanski
Copy link

Hey guys.

I'm with problem in comand python invesalius.py.

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_misc.py", line 1358, in Notify
self.notify()
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/core.py", line 14767, in Notify
self.result = self.callable(self.args, *self.kwargs)
File "invesalius.py", line 174, in Startup
from gui.frame import Frame
File "/home/brenopolanski/Desktop/SVN/invesalius3-3.0-b5/invesalius/gui/frame.py", line 31, in
import default_tasks as tasks
File "/home/brenopolanski/Desktop/SVN/invesalius3-3.0-b5/invesalius/gui/default_tasks.py", line 25, in
import data_notebook as nb
File "/home/brenopolanski/Desktop/SVN/invesalius3-3.0-b5/invesalius/gui/data_notebook.py", line 36, in
import data.slice
as slice

File "/home/brenopolanski/Desktop/SVN/invesalius3-3.0-b5/invesalius/data/slice
.py", line 36, in
from data import mips
ImportError: cannot import name mips
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_misc.py", line 1358, in Notify
self.notify()
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14767, in Notify
self.result = self.callable(_self.args, *_self.kwargs)
File "invesalius.py", line 82, in Startup2
self.control = self.splash.control
AttributeError: 'SplashScreen' object has no attribute 'control'
Traceback (most recent call last):
File "invesalius.py", line 197, in OnClose
if self.fc.IsRunning():
AttributeError: 'SplashScreen' object has no attribute 'fc'

@tfmoraes
Copy link
Member

tfmoraes commented Sep 2, 2014

Hi Breno,

You have to compile the mips module. Inside the InVesalius folder:

python setup.py build_ext --inplace

@brenopolanski
Copy link
Author

Hi @tfmoraes.

I performed the following steps:

  1. Installed packages:

    • python-numpy
    • python-scipy
    • python-wxgtk2.8
    • python-imaging
    • python-vtk
    • python-gdcm
    • python-vtkgdcm
    • python-casmoothing
    • python-nibabel
    • python-serial
    • python-psutil
    • cython
  2. Then I typed the following command:

    python setup.py build_ext --inplace
    
  3. After... opened the folder invesalius/ and typed the command:

    python invesalius.py
    

@tfmoraes
Copy link
Member

tfmoraes commented Sep 3, 2014

It's seems to that a error happened at the 2nd step. It the mips modules doesn't exist, it's because it didn't compile correctly.

@brenopolanski
Copy link
Author

Hey @tfmoraes

Which is your version of Linux?

@tfmoraes
Copy link
Member

tfmoraes commented Sep 5, 2014

I'm using Ubuntu. I tested it in MacOSX too, and I had no problems. I suggest you to start it again.

@brenopolanski
Copy link
Author

Hi @tfmoraes

After the command:

python setup.py build_ext --inplace

I have to go in folder invesalius/ and typed the command:

python invesalius.py

??

@tfmoraes
Copy link
Member

If "python setup.py build_ext --inplace" runs ok, then yes.

@brenopolanski
Copy link
Author

Hey @tfmoraes

yet I'm with the same mistakes...

already uninstalled Cython and installed by pip

sudo apt-get remove --purge cython
sudo pip install cython

my error:

(python:10023): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(python:10023): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(python:10023): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(python:10023): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(python:10023): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(python:10023): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_misc.py", line 1358, in Notify
    self.notify()
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14767, in Notify
    self.result = self.callable(*self.args, **self.kwargs)
  File "invesalius.py", line 174, in Startup
    from gui.frame import Frame
  File "/home/brenopolanski/Desktop/GitHub/nutes/projeto-invesalius/teste-compilacao/invesalius3/invesalius/gui/frame.py", line 34, in <module>
    import default_viewers as viewers
  File "/home/brenopolanski/Desktop/GitHub/nutes/projeto-invesalius/teste-compilacao/invesalius3/invesalius/gui/default_viewers.py", line 25, in <module>
    import data.viewer_slice as slice_viewer
  File "/home/brenopolanski/Desktop/GitHub/nutes/projeto-invesalius/teste-compilacao/invesalius3/invesalius/data/viewer_slice.py", line 30, in <module>
    import styles
  File "/home/brenopolanski/Desktop/GitHub/nutes/projeto-invesalius/teste-compilacao/invesalius3/invesalius/data/styles.py", line 34, in <module>
    from skimage.morphology import watershed
ImportError: No module named skimage.morphology
Traceback (most recent call last):
  File "invesalius.py", line 197, in OnClose
    if self.fc.IsRunning():
AttributeError: 'SplashScreen' object has no attribute 'fc'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_misc.py", line 1358, in Notify
    self.notify()
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14767, in Notify
    self.result = self.callable(*self.args, **self.kwargs)
  File "invesalius.py", line 82, in Startup2
    self.control = self.splash.control
AttributeError: 'SplashScreen' object has no attribute 'control'

thanks again :)

@tfmoraes
Copy link
Member

You need to install the package python-skimage

On Tue, Sep 16, 2014 at 11:34 AM, Breno Polanski notifications@github.com
wrote:

Hey @tfmoraes https://github.com/tfmoraes

yet I'm with the same mistakes...

already uninstalled Cython and installed by pip

sudo apt-get remove --purge cython
sudo pip install cython

my error:

(python:10023): GLib-GIO-CRITICAL *: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
(python:10023): GLib-GIO-CRITICAL *
: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
(python:10023): GLib-GIO-CRITICAL *: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
(python:10023): GLib-GIO-CRITICAL *
: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
(python:10023): GLib-GIO-CRITICAL *: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
(python:10023): GLib-GIO-CRITICAL *
: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_misc.py", line 1358, in Notify
self.notify()
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14767, in Notify
self.result = self.callable(_self.args, *_self.kwargs)
File "invesalius.py", line 174, in Startup
from gui.frame import Frame
File "/home/brenopolanski/Desktop/GitHub/nutes/projeto-invesalius/teste-compilacao/invesalius3/invesalius/gui/frame.py", line 34, in
import default_viewers as viewers
File "/home/brenopolanski/Desktop/GitHub/nutes/projeto-invesalius/teste-compilacao/invesalius3/invesalius/gui/default_viewers.py", line 25, in
import data.viewer_slice as slice_viewer
File "/home/brenopolanski/Desktop/GitHub/nutes/projeto-invesalius/teste-compilacao/invesalius3/invesalius/data/viewer_slice.py", line 30, in
import styles
File "/home/brenopolanski/Desktop/GitHub/nutes/projeto-invesalius/teste-compilacao/invesalius3/invesalius/data/styles.py", line 34, in
from skimage.morphology import watershed
ImportError: No module named skimage.morphology
Traceback (most recent call last):
File "invesalius.py", line 197, in OnClose
if self.fc.IsRunning():
AttributeError: 'SplashScreen' object has no attribute 'fc'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_misc.py", line 1358, in Notify
self.notify()
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14767, in Notify
self.result = self.callable(_self.args, *_self.kwargs)
File "invesalius.py", line 82, in Startup2
self.control = self.splash.control
AttributeError: 'SplashScreen' object has no attribute 'control'

thanks again :)


Reply to this email directly or view it on GitHub
#22 (comment)
.

@brenopolanski
Copy link
Author

Thanks @tfmoraes.

Problem solved ✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants