Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not opening? #17

Open
ROELopYT opened this issue Jan 2, 2017 · 6 comments
Open

Not opening? #17

ROELopYT opened this issue Jan 2, 2017 · 6 comments

Comments

@ROELopYT
Copy link

ROELopYT commented Jan 2, 2017

Hi there!

First of all, i'l have to admit that im am very new to all of this... :|
Just a hobby-ist trying out some things. I am very intreseted in this project, but i simply cant get it to work...

Ive installed python, and the Github and git shell, aswell as the downloaded program om my desk (wich is windows btw) now i found that i have to execute the /credmap.py --username janedoe --email janedoe@email.com command. but where exactly do i execute that? because when i try to use it in GitShell of cmd (probably noobish) it opens and directly closes...

is there a more explaining guido as to how i use Python scripts and your scripts? would love to try some things out. 👍

@lightos
Copy link
Owner

lightos commented Jan 2, 2017

Hello, thank you for taking an interest in credmap.

To run it, make sure you have Python installed, I recommend 2.7+ and have it set in your PATH (https://docs.python.org/2.7/using/windows.html#excursus-setting-environment-variables).

Once Python has been configured in your PATH, you should be able to open a command terminal (Start/Run/cmd.exe) and type python --version, which should display the installed version, confirming you have set everything up correctly.

Then to run credmap, make sure you are in the directory where credmap is installed within the cmd terminal and run python credmap.py, which will print the help menu.

I should note that I am in the process of re-writing credmap from scratch and will be releasing an entire new version soon.

@ROELopYT
Copy link
Author

ROELopYT commented Jan 2, 2017

Hi there, once again (haha)

Ive gotten quite some further, but when i execute the command (see screen) It said that there is no such file 'websites' in the directory. Where exactly do the websites have to go? what file directory?

PS. Great to hear that you will be rewriting it.

Thanks in advance :)

081c5b65a946e91a8bce4ee2e667769e

@ROELopYT
Copy link
Author

ROELopYT commented Jan 2, 2017

*Correction: system cannot find the path specified: "websites/"

@lightos
Copy link
Owner

lightos commented Jan 2, 2017

This is happening because it is looking for the "websites" folder in your home directory "C:\Users\Roeland" instead of looking for that folder in "credmap-master". I will push a fix later today, but in the meantime you should be able to run it by going into the directory where the script is located.

cd C:\Users\Roeland\Desktop\credmap-master\
python credmap.py

@mongaza
Copy link

mongaza commented Mar 20, 2018

Hi,
I tried to run credmap fromCMD, this is what I got:

c:\Users\root\Desktop\credmap-master>credmap.py
Traceback (most recent call last):
File "C:\Users\root\Desktop\credmap-master\credmap.py", line 38, in
from urllib2 import build_opener, install_opener, ProxyHandler
ModuleNotFoundError: No module named 'urllib2'

Then I installed Six which include urllib2 and urllib3(urllib3 were previously succefully installed).
I used Cygwin:
root@root-PC ~
$ pip install six
Collecting six
Downloading six-1.11.0-py2.py3-none-any.whl
Installing collected packages: six
Successfully installed six-1.11.0
You are using pip version 9.0.1, however version 9.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Still have the same result: No module named 'urllib2'

Please assit, I strongly believe that I got something wrong in the process.

Thank you

@lightos
Copy link
Owner

lightos commented Mar 20, 2018

Make sure you are running credmap with Python 2.X, as I haven't tested it with Python 3. The urllib2 library is included with Python 2.7, not sure about older versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants