RogerioBlanco / PixelCanvasBot

A bot to pixelcanvas.io
63 stars 24 forks source link

Problem with pixelcanvasio #37

Closed Fercho5656 closed 7 years ago

Fercho5656 commented 7 years ago

C:\Users\Fernando\Desktop\PixelCanvasBot-master>python main.py Traceback (most recent call last): File "main.py", line 3, in from src.bot import Bot File "C:\Users\Fernando\Desktop\PixelCanvasBot-master\src\bot.py", line 4, in from pixelcanvasio import PixelCanvasIO ModuleNotFoundError: No module named 'pixelcanvasio'

Why i get this?

Qh0stM4N commented 7 years ago

check directory structure and paste to output run at cmd 'python --version && git status && git log' check pixelcanvasio.py file in this src: C:\Users\Fernando\Desktop\PixelCanvasBot-master\src\pixelcanvasio.py

RogerioBlanco commented 7 years ago

Use this branch: https://github.com/RogerioBlanco/PixelCanvasBot/tree/python3.6 This branch is converted to python 3.6

RogerioBlanco commented 7 years ago

Disregard, still with error

Fercho5656 commented 7 years ago

Now this :/ Traceback (most recent call last): File "main.py", line 47, in main() File "main.py", line 43, in main bot.run() File "C:\Users\Fernando\Desktop\PixelCanvasBot-python3.6\src\bot.py", line 25, in run self.canvas = self.setup_canvas() File "C:\Users\Fernando\Desktop\PixelCanvasBot-python3.6\src\bot.py", line 89, in setup_canvas canvas = Matrix(iteration, axis_x, axis_y) File "C:\Users\Fernando\Desktop\PixelCanvasBot-python3.6\src\matrix.py", line 6, in init self.matrix = self.setup_matrix(iterator, start_x, start_y) File "C:\Users\Fernando\Desktop\PixelCanvasBot-python3.6\src\matrix.py", line 10, in setup_matrix for x in xrange((start_x - (7 + iterator)) 64, (iterator + start_x + 8) 64): NameError: name 'xrange' is not defined

Qh0stM4N commented 7 years ago

@Fercho5656 Python 27 support you can fix the problem installation earlier python version in a short time

C3P0D3M4D3IR4 commented 7 years ago

Oi rogerio, poderias-me ajudar?

RogerioBlanco commented 7 years ago

Qual o problema?

C3P0D3M4D3IR4 commented 7 years ago

ja instalei python e pip e todos recursos mas estou com duvida em relação ao terminal, o comando deve ser dado no terminal do sistema ou do navegador e em como seto a imagem tenho que colocar a imagem em uma pasta especifica? sou leigo em python poderia me mostrar como faço pos instalação dos requisitos, talvez por skype ou whats. obrigado.

RogerioBlanco commented 7 years ago

Bom, em relação ao terminal é bem simples. É somente executar assim no CMD.exe: python main.py -i caminho_da_image.png -f $FINGERPRINT$ -x posicao_x -y posicao_y

C3P0D3M4D3IR4 commented 7 years ago

Ok, obrigado :D

C3P0D3M4D3IR4 commented 7 years ago

sem titulo

marcussacana commented 7 years ago

$FINGERPRINT$ tu tem que mudar, ali fica o "ID" pra ignorar o Captcha, olha na home ensina como pegar o seu fingerprint

C3P0D3M4D3IR4 commented 7 years ago

id fica um aspas e com $ tipo $"46664984698"$ ou sem aspas?

C3P0D3M4D3IR4 commented 7 years ago

sem titulo

marcussacana commented 7 years ago

sem $ e sem aspas tb

C3P0D3M4D3IR4 commented 7 years ago

sem titulo da erro na syntax

TROLLFaceBR commented 7 years ago

Tmb estou com este erro

RogerioBlanco commented 7 years ago

@C3P0D3M4D3IR4 Há alguns problemas aí: 1 - É que você está tentando usar o bot diretamente do console do python. O que você deve fazer é executar o bot, na pasta onde você baixou o projeto. Ex: Se você baixou o bot e ele se encontra na pasta download, você se caminhar o CMD.exe até a pasta onde se encontra o bot e depois executar o comando: python main.py 2 - Você não está colocando todo o endereço da imagem. Para descobrir melhor o endereço da imagem, abre o Executar através do menu iniciar do windows ou WIN+R e depois selecione a imagem em questão e arraste até o Executar e vai está o endereço completo.

@TROLLFaceBR Qual erro?

Qh0stM4N commented 7 years ago

pls typing console in bot folder git log && python --version and paste output .

AnarchismBot commented 7 years ago

@Qh0stM4N

I am still having this error:

Traceback (most recent call last):
  File "./main.py", line 4, in <module>
    from src.bot import Bot
  File "/home/username/Desktop/PixelCanvasBot/src/bot.py", line 5, in <module>
    from pixelcanvasio import PixelCanvasIO
ModuleNotFoundError: No module named 'pixelcanvasio'

My Python version is 3.6.2

If I use Python2.7 then I get the follwoing output:

$ python2.7 main.py -i ../my_image -f fingerprint my_fingerprint -x 0000 -y 0000
Traceback (most recent call last):
  File "main.py", line 4, in <module>
    from src.bot import Bot
  File "/home/username/Desktop/PixelCanvasBot/src/bot.py", line 5, in <module>
    from pixelcanvasio import PixelCanvasIO
  File "/home/username/Desktop/PixelCanvasBot/src/pixelcanvasio.py", line 3, in <module>
    import requests, threading, websocket, math
ImportError: No module named requests

I have already ran pip install requests

@RogerioBlanco When I use the python3.6 branch, then I get the following error:

Traceback (most recent call last): File "./main.py", line 47, in main() File "./main.py", line 43, in main bot.run() File "/home/username/Desktop/PixelCanvasBot/src/bot.py", line 25, in run self.canvas = self.setup_canvas() File "/home/username/Desktop/PixelCanvasBot/src/bot.py", line 89, in setup_canvas canvas = Matrix(iteration, axis_x, axis_y) File "/home/username/Desktop/PixelCanvasBot/src/matrix.py", line 6, in init self.matrix = self.setup_matrix(iterator, start_x, start_y) File "/home/username/Desktop/PixelCanvasBot/src/matrix.py", line 10, in setup_matrix for x in xrange((start_x - (7 + iterator)) 64, (iterator + start_x + 8) 64): NameError: name 'xrange' is not defined

C3P0D3M4D3IR4 commented 7 years ago

sem titulo estou tendo esse problema agora ao que me parece ser com ajuste de tempo.

C3P0D3M4D3IR4 commented 7 years ago

Olá, eu resolvi este problema gostaria de saber como que faz para funcionar as estrategias de desenho

Qh0stM4N commented 7 years ago

@AnarchismBot When I try to recreate the error on my own computer I fail. try it for me: getting module list for python27 with pip open your terminal paste this (pls i'm need this output)

python2.7
import pip
installed_packages = pip.get_installed_distributions()
installed_packages_list = sorted(["%s==%s" % (i.key, i.version)
     for i in installed_packages])
print(installed_packages_list)

example output (for me)

C:\any\path>python
Python 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pip
>>> installed_packages = pip.get_installed_distributions()
>>> installed_packages_list = sorted(["%s==%s" % (i.key, i.version)
...      for i in installed_packages])
>>> print(installed_packages_list)
['certifi==2017.4.17', 'chardet==3.0.4', 'cx-freeze==5.0', 'idna==2.5', 'olefile==0.44', 'pillow==4.1.1', 'pip==9.0.1', 'requests==2.18.1', 'setuptools==36.0.1', 'six==1.10.0', 'urll
ib3==1.21.1', 'websocket-client==0.44.0', 'wheel==0.29.0']
>>> exit()

check file system for request module allready if exsist from path with C:\Python27\Lib\site-packages\requests /var/yoursPython27Path/Lib/site-packages/requests

try reinstal if not exist module paste your terminal

python2.7
import pip
for package in pkgs:
    try:
        import request
    except ImportError, e:
        pip.main(['install', 'request'])
ZeedyDF commented 7 years ago

@Qh0stM4N he did it, now he's asking about the draw types I'll explain here.

@C3P0D3M4D3IR4 o tipo de pintura padrão é o random então não precisa escrever o código.

se quiser pintar linha por linha você pode usar --draw_strategy linear se quiser primeiro fazer as bordas use esse --draw_strategy sketch --draw_strategy status mostra o status, n sei mt bem para o que serve.

Qh0stM4N commented 7 years ago

@ZeedyPixel "status" is a not drawing this functional command. Once per minute the picture is checked for scratching. Provides information on how much further it should be drawn example output >> 10:40:50 ->Total image pixel count: 8300, Allready painted pixel : 8000 px, Not painted pixel: 300 px

C3P0D3M4D3IR4 commented 7 years ago

oi, como que usa as cores ignoradas?? preciso deixar só vermelho e branco

Qh0stM4N commented 7 years ago

@C3P0D3M4D3IR4 add parameter for example all colors ignored : --colors_ignored 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

if you need red and white colors not paintend add paramerter --colors_ignored 0 5

Color/code reference :

image

C3P0D3M4D3IR4 commented 7 years ago

@Qh0stM4N Thanks!

Qh0stM4N commented 7 years ago

Closed. To time out original issue. this issue not solved or not released but abandoned. (thanks guy solved to many issue in this issue comments)