Giter VIP home page Giter VIP logo

Comments (13)

AeonDave avatar AeonDave commented on August 24, 2024

dear martin,
thank you for looking at my project and for sending a good report for the
issue you found.
i'm currently investigating the issue.
Are you sure you have the latest commit? (./tilt.py -u) and the program's
structure is correct?

tilt.py
lib
all files.py

ty

AeonDave

2014-04-30 13:42 GMT+02:00 zarere [email protected]:

Hi AeonDave,

After syncing with this git and executing

$ python tilt.py -t google.com -r
Traceback (most recent call last):
File "tilt.py", line 10, in
from lib import update
File "/tilt/lib/update.py", line 12, in
from settings import ROOTDIR
ImportError: No module named 'settings'

I got the error above

the OS is
uname -a
Linux maleksov 3.12.13-gentoo #1https://github.com/AeonDave/tilt/issues/1SMP Mon Mar 10 10:57:30 EET 2014 x86_64 Intel(R) Core(TM) i5-3210M CPU @
2.50GHz GenuineIntel GNU/Linux

lsb_release -a
LSB Version: n/a
Distributor ID: Gentoo
Description: Gentoo Base System release 2.2
Release: 2.2
Codename: n/a

I have python versions
python2.7
python3.2
python3.3
martin@maleksov ~/Downloads/Software/tilt $ ll .git/
total 48K
drwxr-xr-x 7 martin martin 4.0K Apr 30 14:24 .
drwxr-xr-x 4 martin martin 4.0K Apr 30 14:24 ..
-rw-r--r-- 1 martin martin 23 Apr 30 14:24 HEAD
-rw-r--r-- 1 martin martin 261 Apr 30 14:24 config
-rw-r--r-- 1 martin martin 73 Apr 30 14:24 description
drwxr-xr-x 2 martin martin 4.0K Apr 30 14:24 hooks
-rw-r--r-- 1 martin martin 888 Apr 30 14:24 index
drwxr-xr-x 2 martin martin 4.0K Apr 30 14:24 info
drwxr-xr-x 3 martin martin 4.0K Apr 30 14:24 logs
drwxr-xr-x 4 martin martin 4.0K Apr 30 14:24 objects
-rw-r--r-- 1 martin martin 107 Apr 30 14:24 packed-refs
drwxr-xr-x 5 martin martin 4.0K Apr 30 14:24 refs
martin@maleksov ~/Downloads/Software/tilt $ ll lib/
total 44K
drwxr-xr-x 3 martin martin 4.0K Apr 30 14:24 .
drwxr-xr-x 4 martin martin 4.0K Apr 30 14:24 ..
-rw-r--r-- 1 martin martin 138 Apr 30 14:24 init.py
drwxr-xr-x 2 martin martin 4.0K Apr 30 14:25 pycache
-rw-r--r-- 1 martin martin 3.9K Apr 30 14:24 actions.py
-rw-r--r-- 1 martin martin 1.3K Apr 30 14:24 core.py
-rw-r--r-- 1 martin martin 414 Apr 30 14:24 logger.py
-rw-r--r-- 1 martin martin 452 Apr 30 14:24 settings.py
-rw-r--r-- 1 martin martin 1.9K Apr 30 14:24 source.py
-rw-r--r-- 1 martin martin 1.2K Apr 30 14:24 update.py
-rw-r--r-- 1 martin martin 509 Apr 30 14:24 util.py

Please advise

Best Regards
Martin


Reply to this email directly or view it on GitHubhttps://github.com//issues/1
.

from tilt.

AeonDave avatar AeonDave commented on August 24, 2024

i changed a bit the code for getting current and lib dir,
now it is added to sys.path so i guess will work with every system.

tell me if works.

plus, i added extensive remote ip lookup for different ip on same server

from tilt.

zarere avatar zarere commented on August 24, 2024

Hi AeonDave,

just sync the new diff on git but I got the same error:
artin@maleksov ~/Downloads/Software $ git clone https://github.com/AeonDave/tilt.git
Cloning into 'tilt'...
remote: Reusing existing pack: 174, done.
remote: Counting objects: 66, done.
remote: Compressing objects: 100% (66/66), done.
remote: Total 240 (delta 28), reused 0 (delta 0)
Receiving objects: 100% (240/240), 32.72 KiB | 0 bytes/s, done.
Resolving deltas: 100% (113/113), done.
Checking connectivity... done
martin@maleksov ~/Downloads/Software $ cd tilt/
martin@maleksov ~/Downloads/Software/tilt $ ll
total 28K
drwxr-xr-x 4 martin martin 4.0K Apr 30 16:42 .
drwxr-xr-x 12 martin martin 4.0K Apr 30 16:42 ..
drwxr-xr-x 7 martin martin 4.0K Apr 30 16:42 .git
-rw-r--r-- 1 martin martin 1.1K Apr 30 16:42 LICENSE
-rw-r--r-- 1 martin martin 1.7K Apr 30 16:42 README.md
drwxr-xr-x 2 martin martin 4.0K Apr 30 16:42 lib
-rw-r--r-- 1 martin martin 2.7K Apr 30 16:42 tilt.py
martin@maleksov ~/Downloads/Software/tilt $ python tilt.py -u
Traceback (most recent call last):
File "tilt.py", line 10, in
from lib import update
File "/home/martin/Downloads/Software/tilt/lib/update.py", line 12, in
from settings import ROOTDIR
ImportError: No module named 'settings'
martin@maleksov ~/Downloads/Software/tilt $ python tilt.py -u
Traceback (most recent call last):
File "tilt.py", line 10, in
from lib import update
File "/home/martin/Downloads/Software/tilt/lib/update.py", line 12, in
from settings import ROOTDIR
ImportError: No module named 'settings'

python tilt.py -t google.com -r
Traceback (most recent call last):
File "tilt.py", line 10, in
from lib import update
File "/home/martin/Downloads/Software/tilt/lib/update.py", line 12, in
from settings import ROOTDIR
ImportError: No module named 'settings'

Best Regards
Martin

from tilt.

AeonDave avatar AeonDave commented on August 24, 2024

ok i guess is a bug that appears in some distros, i'm currently going deeper, could you please delete the program (rm -rf) and re-import from git repos?
i'm sorry for the situation happened.
i hope this workaround works
bug 1

from tilt.

AeonDave avatar AeonDave commented on August 24, 2024

it seems to be corrected

from tilt.

zarere avatar zarere commented on August 24, 2024

Hi AeonDave,

After deleting the old tilt dir not and sync with the new git version i got:
[martin@localhost tilt]$ python tilt.py -u
Traceback (most recent call last):
File "tilt.py", line 11, in
from lib import actions
File "/home/martin/Downloads/tilt/lib/actions.py", line 19
print ""
^
SyntaxError: invalid syntax
[martin@localhost tilt]$ python tilt.py -t 8.8.8.8
Traceback (most recent call last):
File "tilt.py", line 11, in
from lib import actions
File "/home/martin/Downloads/tilt/lib/actions.py", line 19
print ""
^
SyntaxError: invalid syntax

from tilt.

AeonDave avatar AeonDave commented on August 24, 2024

is the python version above 2.7.3? because the error for your python is

print ""      

that is a legit command in 2.7.3 but not in 3.x which is

print("")

so you are running this program under python 3.x

from tilt.

zarere avatar zarere commented on August 24, 2024

I have 3 versions installed :
python2.7
python3.2
python3.3

and yes I was ran it under 3.3

from tilt.

zarere avatar zarere commented on August 24, 2024

After changing in all py files the path on python to python 2.7 everything start working fine:

/usr/bin/python2.7 tilt.py -t google.com -r

      =============================================== 
    |  Terminal Ip Lookup Tool v0.5.1 beta: TILT    |
    |  by AeonDave                  |
     =============================================== 

[09:34:39] [INFO] -----Start-----
[09:34:39] [INFO] [] Ip lookup on google.com
[09:34:39] [INFO] [+] Valid host
[09:34:39] [INFO] [
] Performing ip conversion
[09:34:39] [INFO] google.com 173.194.39.206 173.194.39.195 173.194.39.196 173.194.39.197 173.194.39.198 173.194.39.199 173.194.39.194 173.194.39.201 173.194.39.193 173.194.39.200 173.194.39.192
[09:34:39] [INFO] [] Reverse ip lookup on google.com
[09:34:39] [INFO] [
] Performing reverse ip lookup
[09:34:44] [INFO] [+] 3 Domains found
[09:34:44] [INFO] froogle.google.co.uk
[09:34:44] [INFO] like.com
[09:34:44] [INFO] www.itasoftware.com
[09:34:44] [INFO] -----End-----

from tilt.

zarere avatar zarere commented on August 24, 2024

Here are the results with the last version from this git:

martin@maleksov ~/Downloads/Software/tilt $ /usr/bin/python2.7 tilt.py -t google.com -r

     =============================================== 
    |  Terminal Ip Lookup Tool v0.6 beta: TILT  |
    |  by AeonDave                  |
     =============================================== 

[09:41:51] [INFO] -----Start-----
[09:41:51] [INFO] [] Starting ip lookup on google.com
[09:41:51] [INFO] [+] Valid host
[09:41:51] [INFO] [
] Performing ip conversion
[09:41:51] [INFO] google.com
[09:41:51] [INFO] 173.194.39.193
[09:41:51] [INFO] 173.194.39.196
[09:41:51] [INFO] 173.194.39.201
[09:41:51] [INFO] 173.194.39.197
[09:41:51] [INFO] 173.194.39.206
[09:41:51] [INFO] 173.194.39.195
[09:41:51] [INFO] 173.194.39.192
[09:41:51] [INFO] 173.194.39.198
[09:41:51] [INFO] 173.194.39.199
[09:41:51] [INFO] 173.194.39.200
[09:41:51] [INFO] 173.194.39.194
[09:41:51] [INFO] [+] The host is situated in US
[09:41:51] [INFO] [] Ip Lookup completed
[09:41:51] [INFO] [
] Starting reverse ip lookup on google.com
[09:42:22] [INFO] [+] 7 Domains found
[09:42:22] [INFO] admin.google.com
[09:42:22] [INFO] maps.l.google.com
[09:42:22] [INFO] mt0.google.com
[09:42:22] [INFO] panoramio.com
[09:42:22] [INFO] s.youtube.com
[09:42:22] [INFO] spreadsheets.l.google.com
[09:42:22] [INFO] wap.google.com
[09:42:22] [INFO] [*] Reverse ip lookup completed
[09:42:22] [INFO] -----End-----

from tilt.

AeonDave avatar AeonDave commented on August 24, 2024

Yey finally :)
you can set the default python

As root:

ln -sf /usr/bin/python2.6 /usr/local/bin/python

anyway have you got suggestion?

from tilt.

zarere avatar zarere commented on August 24, 2024

I use Gentoo so the

ln -sf /usr/bin/python2.6 /usr/local/bin/python

will brake a lot of things anyway I got it working 10x for the help,no suggestions

from tilt.

AeonDave avatar AeonDave commented on August 24, 2024

you are welcome and thanks for your tenacity

from tilt.

Related Issues (3)

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.