Python Forum
script give me this msg at start
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
script give me this msg at start
#1
when i try ro run ip2geolocation script in windows 8.1 it gives me this error 
and i installed python v 2.7.3 and ActivePython-2.7.13 and when itry to start the script it gives this msg please help 
Sad Sad
Output:
Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved. C:\Users\AliDmc>C:\Users\AliDmc\Desktop\IPGeoLocation-master\ipgeolocation.py Traceback (most recent call last):   File "C:\Users\AliDmc\Desktop\IPGeoLocation-master\ipgeolocation.py", line 32,  in <module>     from core.IpGeoLocationLib import IpGeoLocationLib   File "C:\Users\AliDmc\Desktop\IPGeoLocation-master\core\IpGeoLocationLib.py", line 30, in <module>     from core.Utils import Utils   File "C:\Users\AliDmc\Desktop\IPGeoLocation-master\core\Utils.py", line 30, in  <module>     import webbrowser, ipaddress, socket ImportError: No module named ipaddress C:\Users\AliDmc>
Moderator zivoni: moved to more appropriate thread and added output tags
Reply
#2
Have you any reason not to use Python 3?
The ipaddress module is included in Python 3.3 for the fist time.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#3
so what should i do i already python 3.6 also still gie this msg :/
Reply
#4
Perhaps you are still trying to run it with old version of python (2.7)? Try to check what version of python do you use to run it (if you have installed both version of python, defaults one might be still 2.7).
Reply
#5
Type the following from command line:
python --version
should get something like:
Output:
Python 3.6.0
Reply
#6
i run with python 3.6 and it give is me
Microsoft Windows [Version 6.3.9600]
© 2013 Microsoft Corporation. All rights reserved.

C:\Users\AliDmc>C:\Users\AliDmc\Desktop\IPGeoLocation-master\ipgeolocation.py
Traceback (most recent call last):
File "C:\Users\AliDmc\Desktop\IPGeoLocation-master\ipgeolocation.py", line 32,
in <module>
from core.IpGeoLocationLib import IpGeoLocationLib
File "C:\Users\AliDmc\Desktop\IPGeoLocation-master\core\IpGeoLocationLib.py",
line 30, in <module>
from core.Utils import Utils
File "C:\Users\AliDmc\Desktop\IPGeoLocation-master\core\Utils.py", line 35, in
<module>
from core.Logger import Logger
File "C:\Users\AliDmc\Desktop\IPGeoLocation-master\core\Logger.py", line 32, i
n <module>
from termcolor import colored
ModuleNotFoundError: No module named 'termcolor'

C:\Users\AliDmc>

ps: i install colorama
Reply
#7
If the script uses termcolor, install it.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#8
Check that pip work and install.
Shall look like this if setup to 36:
C:\>python -V
Python 3.6.0

C:\>pip -V
pip 9.0.1 from c:\python36\lib\site-packages (python 3.6)

C:\>pip install termcolor
Collecting termcolor
  Downloading termcolor-1.1.0.tar.gz
Building wheels for collected packages: termcolor
  Running setup.py bdist_wheel for termcolor ... done
  Stored in directory: C:\Users\Tom\AppData\Local\pip\Cache\wheels\de\f7\bf\1bcac7bf30549e6a4957382e2ecab04c88e513117207067b03
Successfully built termcolor
Installing collected packages: termcolor
Successfully installed termcolor-1.1.0

C:\>python
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 07:18:10) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import termcolor
>>> termcolor.VERSION
(1, 1, 0)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  math formula does not give the same result as bash script [SOLVED] AlphaInc 3 921 Apr-02-2023, 07:21 PM
Last Post: AlphaInc
  readline.parse_and_bind() does not work in start-up script of Python interpreter zzzhhh 0 1,473 Jan-18-2022, 11:05 AM
Last Post: zzzhhh
  Looking for help on making a script [no idea where to start] Chietnemese 1 1,707 Jun-26-2020, 03:50 AM
Last Post: Larz60+
  how to stop and start a script for 30 seconds laspaul 9 7,512 Jan-16-2020, 02:13 PM
Last Post: laspaul
  Multiple start of script dev1755 2 2,125 Sep-22-2019, 10:44 PM
Last Post: dev1755
  What's the difference b/w assigning start=None and start=" " Madara 1 2,276 Aug-06-2018, 08:23 AM
Last Post: buran
  win10 Service(script) start and stop hwa_rang098tkd 0 2,430 Jun-21-2018, 07:42 PM
Last Post: hwa_rang098tkd
  Using Subprocess.Popen to start another python script running in background on Window johnb546 0 13,615 Jun-01-2018, 01:57 PM
Last Post: johnb546
  Script ends, does not start again phanegem 8 5,015 Mar-30-2017, 07:36 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020