Giter Site home page Giter Site logo

Problem running models_GUI.py about sms-tools HOT 8 CLOSED

mtg avatar mtg commented on July 21, 2024
Problem running models_GUI.py

from sms-tools.

Comments (8)

Marcio547 avatar Marcio547 commented on July 21, 2024 2

Well I tried again using python 2.7 and it has worked.... just run on terminal
python2 models_GUI.py and it went everything ok

from sms-tools.

jjsauma avatar jjsauma commented on July 21, 2024 1

Thank you! How Could I have missed that? I feel silly.

It works now!

from sms-tools.

EMCP avatar EMCP commented on July 21, 2024 1

ñ too spicy for Python jaja

from sms-tools.

EMCP avatar EMCP commented on July 21, 2024

I've been sticking to python3, so for the GUI i had to install tkinter via

sudo apt-get install python3-tk

After performing that install.. it worked. I personally think they shouldn't suggest people install most of the packages via apt-get , as those usually stay out of date longer compared to the pip install. You might want to try getting Tkinter installed on OSX either via pip or compiling from sources

here was my error before

emcp@emcp:~/Dev/git/MTG/sms-tools/software/models_interface$ python3 models_GUI.py 
Traceback (most recent call last):
  File "models_GUI.py", line 8, in <module>
    from Tkinter import *   ## notice capitalized T in Tkinter 
ImportError: No module named 'Tkinter'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/tkinter/__init__.py", line 36, in <module>
    import _tkinter
ImportError: No module named '_tkinter'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "models_GUI.py", line 11, in <module>
    from tkinter import *   ## notice lowercase 't' in tkinter here
  File "/usr/lib/python3.5/tkinter/__init__.py", line 38, in <module>
    raise ImportError(str(msg) + ', please install the python3-tk package')
ImportError: No module named '_tkinter', please install the python3-tk package

from sms-tools.

Marcio547 avatar Marcio547 commented on July 21, 2024

I've tried to Compute the STFT using the models_gui.py file, but as I click on "Compute", a new window opens with a screenshot from my actual screen and then it suddenly freezes. I've already tried to rollback to earlier version of numpy (as suggested on #49) and also tried to do the rollback of numpy, but nothing has worked. Does anybody have any idea of what could be happening?

I'm using Ubuntu 16.04 LTS, python 3.6 and Anaconda.

from sms-tools.

EMCP avatar EMCP commented on July 21, 2024

@Marcio547 I would uninstall all the apt-get installed python packages and just use pip install ... their instructions are not common practice anymore now that pip is much more up to date

from sms-tools.

jjsauma avatar jjsauma commented on July 21, 2024

When running in MacOS 10.12.6 it shows this error:

sms-tools-master/software/models_interface$ python models_GUI.py
Traceback (most recent call last):
File "models_GUI.py", line 22, in
from dftModel_GUI_frame import *
File "/Users/joaquinjimenez/Google Drive/UPF SMC/Procesamiento Digital de Señales/sms-tools-master/software/models_interface/dftModel_GUI_frame.py", line 14, in
import dftModel_function
File "/Users/joaquinjimenez/Google Drive/UPF SMC/Procesamiento Digital de Señales/sms-tools-master/software/models_interface/dftModel_function.py", line 4, in
import matplotlib.pyplot as plt
File "/Users/joaquinjimenez/anaconda2/lib/python2.7/site-packages/matplotlib/pyplot.py", line 69, in
from matplotlib.backends import pylab_setup
File "/Users/joaquinjimenez/anaconda2/lib/python2.7/site-packages/matplotlib/backends/init.py", line 14, in
line for line in traceback.format_stack()
File "/Users/joaquinjimenez/anaconda2/lib/python2.7/site-packages/matplotlib/backends/init.py", line 16, in
if not line.startswith(' File "<frozen importlib._bootstrap'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcc in position 79: ordinal not in range(128)

from sms-tools.

EMCP avatar EMCP commented on July 21, 2024

@jjsauma , you have an ñ in the path, did you try moving the project out of that path and retrying?'

or might be this https://stackoverflow.com/questions/21129020/how-to-fix-unicodedecodeerror-ascii-codec-cant-decode-byte

from sms-tools.

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.