Error to import tkinterconfigure tkinter for python3.4.2I can't open software updater and unity tweak tool on Ubuntu14.04Failed to apply network settings, connect to the Bluetooth network via this machineWhy can't I start onedrive-d?TypeError when running update-manager on ubuntu 17.10In ubuntu IDE doest load tkinter library for python3 or python2
In the top five, I'm odd
Replacing 2-prong outlets in basement - existing wiring has two hot wires, one neutral?
After upgrading Xcode 11.2 from Xcode 11.1, app crashes due to _UITextLayoutView
Can Oko's Elk ability stop nonbasics from being affected by Magus of the Moon?
Is it possible to be admitted to CS PhD programs (in US) with scholarship at age 18?
Drying clothes: windy but cold outside vs warm(ish) inside?
What is the rule?
Interpret numbers very literally
Will being an emotionally numb 14 year-old prevent me from eventually being a pilot?
Would using the Thaumaturgy cantrip give advantage on an Intimidation check?
Would copper swords work better than regular swords against fungal monsters?
Why can't we define more Maxwell's relations?
Brute-Force algorithm in C++
How should a leader behave when they miss deadlines themselves?
Can I say: “The train departs at 16 past every hour“?
Languages which changed their writing direction
Vintage vs modern B&W photography techniques differ in color luminance - what's going on here?
simple shared pointer implementation in single threaded environment (revised)
Does Amoxicillin (as trihydrate) degrade in stomach acid?
Does paying a mortgage early mean you effectively paid a much higher interest rate?
Did the disagreement between the Catholic Church and Protestant Church on the issue of salvation by grace alone end 1999?
Security risks of user generated HTML?
Converting a Scheme function to Emacs Lisp
Is it usual for a US president to make specific comments about a UK Prime Minister's suitability during a general election?
Error to import tkinter
configure tkinter for python3.4.2I can't open software updater and unity tweak tool on Ubuntu14.04Failed to apply network settings, connect to the Bluetooth network via this machineWhy can't I start onedrive-d?TypeError when running update-manager on ubuntu 17.10In ubuntu IDE doest load tkinter library for python3 or python2
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I try to import tkinter after i installed its library ,but i face this error :
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/tkinter/__init__.py", line 42, in <module>
import re
File "/home/mohammed/re.py", line 5, in <module>
if re.search('From:', line):
AttributeError: module 're' has no attribute 'search'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 53, in apport_excepthook
if not enabled():
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 24, in enabled
import re
File "/home/mohammed/re.py", line 5, in <module>
if re.search('From:', line):
AttributeError: module 're' has no attribute 'search'
Original exception was:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/tkinter/__init__.py", line 42, in <module>
import re
File "/home/mohammed/re.py", line 5, in <module>
if re.search('From:', line):
AttributeError: module 're' has no attribute 'search'
python
add a comment
|
I try to import tkinter after i installed its library ,but i face this error :
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/tkinter/__init__.py", line 42, in <module>
import re
File "/home/mohammed/re.py", line 5, in <module>
if re.search('From:', line):
AttributeError: module 're' has no attribute 'search'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 53, in apport_excepthook
if not enabled():
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 24, in enabled
import re
File "/home/mohammed/re.py", line 5, in <module>
if re.search('From:', line):
AttributeError: module 're' has no attribute 'search'
Original exception was:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/tkinter/__init__.py", line 42, in <module>
import re
File "/home/mohammed/re.py", line 5, in <module>
if re.search('From:', line):
AttributeError: module 're' has no attribute 'search'
python
1
Try re-naming your python script to something other thanre.py
– steeldriver
Jul 13 at 15:47
@steeldriver :P
– Rinzwind
Jul 13 at 15:48
I didn't make a python script ,i just try to import tkinter
– محمد علاء
Jul 13 at 16:12
So what is/home/mohammed/re.py
?
– steeldriver
Jul 13 at 16:23
thanks , this was an old file and i deleted no error now
– محمد علاء
Jul 17 at 15:33
add a comment
|
I try to import tkinter after i installed its library ,but i face this error :
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/tkinter/__init__.py", line 42, in <module>
import re
File "/home/mohammed/re.py", line 5, in <module>
if re.search('From:', line):
AttributeError: module 're' has no attribute 'search'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 53, in apport_excepthook
if not enabled():
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 24, in enabled
import re
File "/home/mohammed/re.py", line 5, in <module>
if re.search('From:', line):
AttributeError: module 're' has no attribute 'search'
Original exception was:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/tkinter/__init__.py", line 42, in <module>
import re
File "/home/mohammed/re.py", line 5, in <module>
if re.search('From:', line):
AttributeError: module 're' has no attribute 'search'
python
I try to import tkinter after i installed its library ,but i face this error :
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/tkinter/__init__.py", line 42, in <module>
import re
File "/home/mohammed/re.py", line 5, in <module>
if re.search('From:', line):
AttributeError: module 're' has no attribute 'search'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 53, in apport_excepthook
if not enabled():
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 24, in enabled
import re
File "/home/mohammed/re.py", line 5, in <module>
if re.search('From:', line):
AttributeError: module 're' has no attribute 'search'
Original exception was:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/tkinter/__init__.py", line 42, in <module>
import re
File "/home/mohammed/re.py", line 5, in <module>
if re.search('From:', line):
AttributeError: module 're' has no attribute 'search'
python
python
edited Jul 13 at 15:44
Rinzwind
225k29 gold badges435 silver badges577 bronze badges
225k29 gold badges435 silver badges577 bronze badges
asked Jul 13 at 15:43
محمد علاءمحمد علاء
1
1
1
Try re-naming your python script to something other thanre.py
– steeldriver
Jul 13 at 15:47
@steeldriver :P
– Rinzwind
Jul 13 at 15:48
I didn't make a python script ,i just try to import tkinter
– محمد علاء
Jul 13 at 16:12
So what is/home/mohammed/re.py
?
– steeldriver
Jul 13 at 16:23
thanks , this was an old file and i deleted no error now
– محمد علاء
Jul 17 at 15:33
add a comment
|
1
Try re-naming your python script to something other thanre.py
– steeldriver
Jul 13 at 15:47
@steeldriver :P
– Rinzwind
Jul 13 at 15:48
I didn't make a python script ,i just try to import tkinter
– محمد علاء
Jul 13 at 16:12
So what is/home/mohammed/re.py
?
– steeldriver
Jul 13 at 16:23
thanks , this was an old file and i deleted no error now
– محمد علاء
Jul 17 at 15:33
1
1
Try re-naming your python script to something other than
re.py
– steeldriver
Jul 13 at 15:47
Try re-naming your python script to something other than
re.py
– steeldriver
Jul 13 at 15:47
@steeldriver :P
– Rinzwind
Jul 13 at 15:48
@steeldriver :P
– Rinzwind
Jul 13 at 15:48
I didn't make a python script ,i just try to import tkinter
– محمد علاء
Jul 13 at 16:12
I didn't make a python script ,i just try to import tkinter
– محمد علاء
Jul 13 at 16:12
So what is
/home/mohammed/re.py
?– steeldriver
Jul 13 at 16:23
So what is
/home/mohammed/re.py
?– steeldriver
Jul 13 at 16:23
thanks , this was an old file and i deleted no error now
– محمد علاء
Jul 17 at 15:33
thanks , this was an old file and i deleted no error now
– محمد علاء
Jul 17 at 15:33
add a comment
|
1 Answer
1
active
oldest
votes
You can not have a module re and a python program called re. The program overrules the module.
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1158062%2ferror-to-import-tkinter%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can not have a module re and a python program called re. The program overrules the module.
add a comment
|
You can not have a module re and a python program called re. The program overrules the module.
add a comment
|
You can not have a module re and a python program called re. The program overrules the module.
You can not have a module re and a python program called re. The program overrules the module.
answered Jul 13 at 15:48
RinzwindRinzwind
225k29 gold badges435 silver badges577 bronze badges
225k29 gold badges435 silver badges577 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1158062%2ferror-to-import-tkinter%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Try re-naming your python script to something other than
re.py
– steeldriver
Jul 13 at 15:47
@steeldriver :P
– Rinzwind
Jul 13 at 15:48
I didn't make a python script ,i just try to import tkinter
– محمد علاء
Jul 13 at 16:12
So what is
/home/mohammed/re.py
?– steeldriver
Jul 13 at 16:23
thanks , this was an old file and i deleted no error now
– محمد علاء
Jul 17 at 15:33