Giter Club home page Giter Club logo

Comments (9)

VictorRodriguez avatar VictorRodriguez commented on June 9, 2024 1

@m-mora please review and close :

vrodri3@vrodri3-workstation ~/clearlinux $ sudo swupd update
Password:
Update started.
Version on server (25950) is not newer than system version (25950)
Update complete. System already up-to-date at version 25950
vrodri3@vrodri3-workstation ~/clearlinux $ python
Python 3.7.1 (default, Oct 29 2018, 16:37:42)
[GCC 8.2.1 20180502] on linux
Type "help", "copyright", "credits" or "license" for more information.

import tkinter

from clr-bundles.

VictorRodriguez avatar VictorRodriguez commented on June 9, 2024

A valid bug, reproduced by:

$ python
Python 3.7.0 (default, Jul 11 2018, 00:00:07)
[GCC 8.1.1 20180514] on linux
Type "help", "copyright", "credits" or "license" for more information.

import tkinter
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.7/tkinter/init.py", line 36, in
import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'

According to https://wiki.python.org/moin/TkInter

If it fails with "No module named _tkinter", Python configuration needs to be modified to include this module

Fix WIP

from clr-bundles.

VictorRodriguez avatar VictorRodriguez commented on June 9, 2024

@m-mora it works in python2
$ python2
Python 2.7.15 (default, Oct 24 2018, 20:05:15)
[GCC 8.2.1 20180502] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import tkinter
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named tkinter
import Tkinter
Tkinter._test()

fix for python3 fix is wip

from clr-bundles.

VictorRodriguez avatar VictorRodriguez commented on June 9, 2024

python 3 fixed , patch that fix :

diff --git a/python3.spec b/python3.spec
index e462443..a184a28 100644
--- a/python3.spec
+++ b/python3.spec
@@ -34,6 +34,9 @@ BuildRequires: expat-dev
BuildRequires: libffi-dev
BuildRequires: procps-ng-bin
BuildRequires: netbase
+BuildRequires: tk-dev
+BuildRequires: tcl-dev
+BuildRequires: libX11-dev
Requires: python3-core
Requires: python3-lib
Requires: usrbinpython

from clr-bundles.

m-mora avatar m-mora commented on June 9, 2024

I tested and it works now, thank you @VictorRodriguez

from clr-bundles.

elegentFrog avatar elegentFrog commented on June 9, 2024

when try to use graphic packages (base on tkinter ) in python it through an error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.7/tkinter/__init__.py", line 36, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'

what bundle needs to be installed in order to make this work?

当尝试在python中使用图形包(基于tkinter)时通过错误

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.7/tkinter/__init__.py", line 36, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'

需要安装什么捆绑才能使这项工作?
Excuse me, how do you solve this problem??

from clr-bundles.

elegentFrog avatar elegentFrog commented on June 9, 2024

I have been puzzled by this question for a long time

from clr-bundles.

VictorRodriguez avatar VictorRodriguez commented on June 9, 2024

@elegentFrog it works if you install python-extras

from clr-bundles.

elegentFrog avatar elegentFrog commented on June 9, 2024

from clr-bundles.

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.