Coder Social home page Coder Social logo

Comments (10)

tfmoraes avatar tfmoraes commented on September 2, 2024

Hi Breno,

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

python setup.py build_ext --inplace

from invesalius3.

brenopolanski avatar brenopolanski commented on September 2, 2024

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
    

from invesalius3.

tfmoraes avatar tfmoraes commented on September 2, 2024

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.

from invesalius3.

brenopolanski avatar brenopolanski commented on September 2, 2024

Hey @tfmoraes

Which is your version of Linux?

from invesalius3.

tfmoraes avatar tfmoraes commented on September 2, 2024

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

from invesalius3.

brenopolanski avatar brenopolanski commented on September 2, 2024

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

??

from invesalius3.

tfmoraes avatar tfmoraes commented on September 2, 2024

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

from invesalius3.

brenopolanski avatar brenopolanski commented on September 2, 2024

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 :)

from invesalius3.

tfmoraes avatar tfmoraes commented on September 2, 2024

You need to install the package python-skimage

On Tue, Sep 16, 2014 at 11:34 AM, Breno Polanski [email protected]
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)
.

from invesalius3.

brenopolanski avatar brenopolanski commented on September 2, 2024

Thanks @tfmoraes.

Problem solved ✌️

from invesalius3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.