Python - kivy issues
<p>im new with kivy and Python.
I try fix this problem on my own, but i still end on same problem.
I try reinstall and update components, but no different result.</p>

<p>Im using Linux Mint, heres the problem what i get when i try run program under Python 2.x (using in terminal <em>python '/home/user/Desktop/first_kivy.py'</em>):</p>

<pre><code>    Traceback (most recent call last):
  File "/home/kofi/Desktop/Python/pygame_ostatni.py", line 1, in &lt;module&gt;
    from kivy.app import App
  File "/usr/lib/python2.7/dist-packages/kivy/__init__.py", line 38, in &lt;module&gt;
    from kivy.logger import Logger, LOG_LEVELS
  File "/usr/lib/python2.7/dist-packages/kivy/logger.py", line 56, in &lt;module&gt;
    import logging
  File "/home/kofi/Desktop/Python/logging.py", line 3, in &lt;module&gt;
    logging.warning('Something went wrong.')
AttributeError: 'module' object has no attribute 'warning'
</code></pre>

<p>Here what i get if i run this under Python 3.x (using in terminal <em>python3 '/home/user/Desktop/first_kivy.py'</em>):</p>

<pre><code>Traceback (most recent call last):
  File "/home/kofi/Desktop/Python/pygame_ostatni.py", line 1, in &lt;module&gt;
    from kivy.app import App
  File "/usr/lib/python3/dist-packages/kivy/__init__.py", line 38, in &lt;module&gt;
    from kivy.logger import Logger, LOG_LEVELS
  File "/usr/lib/python3/dist-packages/kivy/logger.py", line 56, in &lt;module&gt;
    import logging
  File "/home/kofi/Desktop/Python/logging.py", line 3, in &lt;module&gt;
    logging.warning('Something went wrong.')
AttributeError: module 'logging' has no attribute 'warning'
</code></pre>

<p>Mistakes are the same, thats why im so confused.
Here is the program:</p>

<pre><code>from kivy.app import App
from kivy.uix.button import Button

class TestApp(App):
    def build(self):
        return Button(text='Hello World')

TestApp().run()
</code></pre>

<p>Thank you for any answer. </p>

<p>First of all, I suggest working in a virtual environment, <a href="https://virtualenvwrapper.readthedocs.io/en/latest/" rel="nofollow">https://virtualenvwrapper.readthedocs.io/en/latest/</a>
and make sure you have all the requirements installed. try following this link
<a href="https://kivy.org/docs/installation/installation-linux.html" rel="nofollow">https://kivy.org/docs/installation/installation-linux.html</a>
from scratch because your error doesn't explain much about the issue.</p>

python linux module warnings kivy