« first day (1 day earlier)      last day (63 days later) » 

4:50 AM
@ShadowWizard soup is a must-have in winters
 
 
3 hours later…
7:36 AM
@BerryHolmes true!
 
@ShadowWizard In winters, I usually drink soup everyday, most of the days it's tomato, somedays it's a vegetable soup
 
7:47 AM
@BerryHolmes nice... Who make the soup? :)
 
@ShadowWizard lol anybody but me :P i'm bad at cooking, you can call it the learning phase though. I can cook pasta very well...
 
@BerryHolmes lol.... Well I can also make shnitzles, or something from a recipe, but not really liking it or good at it either. ;)
 
@ShadowWizard Lol pretty much the same, I prefer the department of eating rather than the department of cooking
 
8:51 AM
@BerryHolmes me too! Eating is fun. :D
 
0
Q: Pip install pycrypto

Berry HolmesBasically, I'm trying to bring Chemobot into one of my own chatrooms, and its creator has suggested me that I should run the .py script on my own machine. I've barely started programming in python and my first interest as of now is to run that file. I'm using: Windows command prompt (cmd) to r...

Hippa seems to be busy :o
 
Yeah, it happens... Also small chance @Hipp missed the ping. :)
 
Yeah, perhaps
 
 
1 hour later…
10:21 AM
@M.A.R. o/
 
\o
 
The office is currently being used to develop something similar to chemobot tho
 
10:33 AM
@BerryHolmes Nice
Will this one be able to finally take over the world?
 
@M.A.R. thanks
Yeah it will :D
 
Will it have train module?
 
room topic changed to Baker Street: Intended for extended discussions about answers I've written (on any network). Actually being used for development and discussion. [bot-development] [coding-horror-screams] [developers] [errors-errors-errors] [learning-to-code] [open-source] [take-over-the-world] [teach-a-man-to-fish]
@ShadowWizard What's train module
 
See what's going on in Den, that's train module ;)
 
Ah, that's an intelligent piece, kept me wondering for a while
 
10:38 AM
@rene is smart
 
And experienced
 
and smells good
 
Lol
@Hippa is back
 
10:44 AM
> python -m Cryptodome.SelfTest
Did that yield anything ?
 
I got an error
 
Is this you in your avatar?

No but she's a veryveryveryvery... special friend of mine. Also, she knows I'm using her picture as my avatar.
 
umm yeah
 
so u boy?
 
lol i am
 
10:48 AM
(-_-')
> sad
 
What's wrong with boys? @maň :D
 
Haha what for
 
try
> pip uninstall pycryptodome
> easy_install pycryptodome
 
it's running setup.py
@Hippalectryon done but python -m Cryptodome.SelfTest is giving the same error
 
10:57 AM
oh no wait
i re-ran main.py
and now i think we've crossed that hurdle :DDDDD
 
a new error awaits tho
File "C:\Python36\chatbot.py", line 5, in <module>
reload(sys)
NameError: name 'reload' is not defined
 
oh
yeah, that's a python2 thing, lemme see what the python3 equivalent is
replace reload by importlib.reload
 
just a sec
 
> time.sleep(1)
 
11:07 AM
?
where do i put time.sleep(1)
or is it another way of saying "just a sec"
 
yeah it's just a joke :P
time.sleep(n) waits n seconds
 
haha that's cool
i changed the 5th line to importlib.reload(sys)
in chatbot.py
 
cmd gives an error
name 'importlib' is not defined
 
ah yeah you it's a module
pip install importlib
 
11:13 AM
oh yeah right
module not found error
no module named
'importlib.util'
 
oh then it's already installed
Line 3, add ", importlib" at the end
import requests, codecs, time, json, getpass, threading, os, linecache, sys, simplecrypt, importlib
 
done
error
 
which one ?
 
C:\Python36>python main.py
Traceback (most recent call last):
File "main.py", line 2, in <module>
import chatbot, random, shutil, time, urllib, sys, upsidedown, threading
File "C:\Python36\chatbot.py", line 6, in <module>
sys.setdefaultencoding('utf8')
AttributeError: module 'sys' has no attribute 'setdefaultencoding'
 
comment line 6 (add "#" at the beginning)
> #sys.setdefaultencoding('utf8')
 
11:19 AM
new error
C:\Python36>python main.py
Traceback (most recent call last):
File "main.py", line 2, in <module>
import chatbot, random, shutil, time, urllib, sys, upsidedown, threading
File "C:\Python36\chatbot.py", line 25, in <module>
email = str(raw_input(("Email ? "))) # SE email and username. Don't leave t
hem as plain text.
NameError: name 'raw_input' is not defined
 
Damn Python3 xD
Change "raw_input" to "input"
 
lines 25, 27
 
Email?
 
Oh, that works ? :D
 
11:21 AM
Yaaaaaaaaaaaay
 
Ok so here you enter the bot's account's credentials. For testing purposes, you can enter your own account's
 
Finallllllyyy
that means i need to create a new account?
 
(gtg in 3 mins)
 
:o
A verrryyy big thanks to you
 
np :-)
 
11:23 AM
i can't thank u enough
:DDDDD
 
We're not done yet, more errors may arise :P
See you later
 
horror screams at errors
Take care
@ShadowWizard are all answers on the sandbox community protected
i mean community wiki
 
@BerryHolmes answers are not protected, only the question itself... but yeah, it means new account can't post answers there.
CW is totally different thing, and yes all answers of CW question automatically turn into CW when posted as well.
 
:o then how do I get 20 rep
 
If you create new account for the bot, you'll have to get it to 21 rep for it to chat, yeah
@BerryHolmes find something to answer, you saw yesterday it's not hard. :)
 
11:35 AM
Alright :D thanks
 
Another option is editing, see what @rene did with @Kenny: meta.stackexchange.com/users/269324/…
@Ber you have ping script in Den which you can use now. :D
 
:) really?
@ShadowWizard i answered a question:
0
A: Ability to "lock" your profile on a site

user359094I agree, but I definitely would want two separate checkboxes: The first checkbox would be for your profile picture, because it is somewhat inconvenient to first download a picture from imgur and then re-upload it (not to mention for a higher quality pic I need to change the ?s=32 attribute to a...

can i upvote it from this account?
 
12:02 PM
@BerryHolmes no no, don't do that
this can lead to suspension
and is cheating
 
i didn't i was waiting for your response
 
cheers!
That is, after all, your own account.
 
:)
yeah exactly
 
 
4 hours later…
4:11 PM
\o
 
hey
i'm installing numpy
versions before 1.5 didn't have python3 support
so i'm manually downloading the files
 
I'm gonna port chemobot to py3, so hopefully you won't have any more issues xD
 
lol that would be great
i'm wondering if just running the code on my machine has this many issues, how much difficulty you've faced in the first place
@Hippalectryon i downloaded the zip files, extracted them and ran setup.py and now here's a strange screen
 
@BerryHolmes You had to install all the basic python packages, that's why
Setup.py ? From what ?
 
setup.py was in the numpy's zip file
i had to run it to install numpy
 
4:18 PM
why not use pip ? or better, lfd.uci.edu/~gohlke/pythonlibs/#numpy ?
 
if i'm using pip it's installing an old version which doesn't support py2
here look
16
A: Import Error: No module named numpy

unutbuSupport for Python 3 was added in NumPy version 1.5.0, so to begin with, you must download/install a newer version of NumPy.

 
py2 ? Aren't you using py3 ?
 
yes, i'm using py3 :o
did i confuse you?
oh no ignore the message just above the posted question
i meant py3
 
alright
which one should i download
 
4:22 PM
numpy‑1.13.0rc1+mkl‑cp36‑cp36m‑win32.whl
numpy‑1.13.0rc1+mkl‑cp36‑cp36m‑win_amd64.whl
depending on your architecture (x32 or x64)
 
it's x64
my god, the file size is 122MB
 
Well it's a huge library. But why did you need numpy ?
 
oh wait the error
i'll show you why
i didn't change the code even the slightest
when i run main.py it asks me about numpy
 
Ah lol line 5
> import numpy as np
remove that line
I don't use numpy anymore
 
:o
lol just a min
error
no module named HTMLParser
 
4:33 PM
pip install htmlparser ?
 
yeah, just asked you to confirm
:)
bad luck]
 
pip install html.parser
Then change from HTMLParser import HTMLParser to from html.parser import HTMLParser
 
pip install html.parser gives me an error could not find a version
no matching distribution found
 
O_o wot
What's your version again ? 3.6 ? I'm on 3.5 and it worked fine
 
did it happen because i uninstalled HTMLParser first?
I'm on 3.6
 
4:38 PM
Nah shouldn't be related
 
how do we check the version
 
python --version
 
the folder is named Python36 so it should be 3.6
yup 3.6.1
 
Hm the wiki says that html.parser is up to date for 3.6
"easy_install html.parser" maybe ?
 
C:\Python36>easy_install html.parser
Searching for html.parser
Reading https://pypi.python.org/simple/html.parser/
No local packages or working download links found for html.parser
error: Could not find suitable distribution for Requirement.parse('html.parser')
o.O
 
4:42 PM
Ok try pip install htmlparser
 
it installed :)
do I only need to change the 5th line?
 
from htmlparser import HTMLParser
 
nah from html.parser
 
but i'm getting no module named 'htmlparser' error
oh
name 'reload' is not defined
 
4:47 PM
delete that reload
 
File "main.py", line 13, in <module>
reload(sys)
NameError: name 'reload' is not defined
File "main.py", line 13, in <module>
sys.setdefaultencoding('utf8')
AttributeError: module 'sys' has no attribute 'setdefaultencoding'
 
remove that line too
 
YAAAAAAAAAAAY
nooooo
<Log> --- NEW LOGIN ---
<Log> Login to Chem-SE - OK
<Log> ERROR : Loading Chem-SE profile - FAIL
I dont have 20 rep on chem.SE
how do i make it run here
 
That shouldn't be an issue, the 20 rep isn't necessary to login to chem SE, only to login to the chat (I think)
 
this is the last line of main.py
chatbot.joinRooms({"3229": handleActivity, "1098": handleActivity}) # 1098 : baker-street, 3229 : chemistry

chatbot.enableControl(1098)
:o
 
4:52 PM
yeah ik, but as it says, what fails is the auth to Chem-SE, not to the chatroom
Are you sure you typed the good credidentials ?
 
we have to type in cmd right?
 
yeah i typed, but for the password the cursor doesn't move and show anything
so ig it's privacy?
then for encryption i said n
 
yeah it's normal
 
then perhaps i should manually login to chem.SE
 
4:54 PM
Nah the bot and your browser are separate
Do try to be sure you actually can log in though
 
<Log> --- NEW LOGIN ---
<Log> Login to Chem-SE - OK
<Log> Loading Chem-SE profile - OK
<Log> Got master fkey : 5d9cec03d85f710c1c905d94ee357111
<Log> Login to the SE chat successful
<Log> Joined room : The Periodic Table / id: 3229
<Log> Joined room : Chez Cosette / id: 1098
Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\Python36\lib\threading.py", line 916, in _bootstrap_inner
self.run()
File "C:\Python36\lib\threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
yay :D
but what just happened?
 
you forgot to change a "raw_input" to "input"
 
and it joined a wrong room? Chez Cosette
oh i'll just change it
 
It's normal, I'll explain later, once all the other stuff works
For now, join room 1, it's a test room
 
I'll have to edit the code then
done :DDDDDDDDDDD
YYYYYYYYYYYYAAAAAAAAAAAAAAAAAAAAAAAYYYYYYYYYYYY
<Log> --- NEW LOGIN ---
<Log> Login to Chem-SE - OK
<Log> Loading Chem-SE profile - OK
<Log> Got master fkey : 7135fc5748197209740ab6aa635db087
<Log> Login to the SE chat successful
<Log> Joined room : Sandbox / id: 1
<Log> Joined room : The Periodic Table / id: 3229
<Log> Joined room : Chez Cosette / id: 1098
Chez Cosette (1098) >
 
5:00 PM
e_e
chatbot.enableControl(1)
 
oh
done
 
now type smth in the command line
:D works, it gets said in sandbox
 
does it?
 

 Sandbox

Where you can play with chat features (except flagging) and ch...
 
but I got an error
Sandbox (1) > <Log> Error occured while sending event <{'e': [{'event_type': 1,
'time_stamp': 1494954223, 'content': 'Hello', 'id': 72673607, 'user_id': 283275,
'user_name': 'user359094', 'room_id': 1, 'room_name': 'Sandbox', 'message_id':
37438154}], 't': 72673609, 'd': 5}> : EXCEPTION IN (C:\Python36\chatbot.py, LINE
283 "activityHandler(roomResult) # send activity to designated function"): a b
ytes-like object is required, not 'str'
 
5:04 PM
yeah, that's unrelated
 
:D :D :D
But it's not flipping tables :o
 
Because of the error above probably
 
How do we fix it
 
First of all, I need to figure out how to make it join this chat
The issue is that we're not on chat.SE.com but on chat.meta.SE.com
The bot wasn't designed for this subdomain
 
cries
 
5:09 PM
We'll figure it out :D
 
That would prevent me from becoming homeless, you see this is 221B
 
:DDDDD
Look who's there
 
Heeeyy Chemobot!!!!
 
He doesn't have 20 rep on meta though :(
 
Rep on meta is easy to gain
As shadow has already mentioned :)
 
5:18 PM
Alright I'm gonna add an option to explicitly switch meta/non meta
 
:o
yeah that would be good
because meta and non-meta sites are independent
 
okay :D
 
do i need to make a copy of the old files?
 
5:28 PM
nope
 
done
error while receiving json data
<Log> Error while receiving json data from a chatroom : '1098'
<Log> Error while receiving json data from a chatroom : '1098'
<Log> Error while receiving json data from a chatroom : '1098'
<Log> Error while receiving json data from a chatroom : '1098'
<Log> Error while receiving json data from a chatroom : '1098'
and continued...
 
Ok
Lemme test
 
:D
How's it going?
 
5:44 PM
Still working on it
 
:) okay!
 
5:59 PM
Works :D (still have other errors though)
Take the updated chatbot.py (same url as before)
 
yaaaay
I can't type anything tho
 
error while sending event?
 
Oh ik why xD
 
haha when i press a key i get a long error
 
6:03 PM
Time for some more tweaks
 
haha coding is a long work
 
fixed
 
so should i copy the chatbot.py again?
 
error!
C:\Python36>python main.py
Traceback (most recent call last):
File "main.py", line 2, in <module>
import chatbot, random, shutil, time, urllib, sys, upsidedown, threading
File "C:\Python36\chatbot.py", line 356
return questionsTable
^
SyntaxError: 'return' outside function
 
6:11 PM
O_o
 
Lol errors errors errors
 
main.py updated
 
okie
 
chatbot.py updated
seems to work on my end
 
do i need to change anything..which rooms would it join?
 
6:18 PM
sandbox and this one
 
it isn't working :O
trying it once more
on entering the password it again gives C:\Python36
 
? What does ?
 
the command prompt
 
Uh ? send a screenshot
 
just a sec
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\shailendra>cd ..\..\Python36

C:\Python36>python main.py
Email ? example@gmail.com
Password ?

C:\Python36>
 
6:23 PM
That's very weird O_o
I gtg now, not sure how late I'll be back. But we'll fix this soon :D
 
can we do it tomorrow then :)
 
Maybe it's supposed to fail?
Like a bot functionality or something
 
Lolol
Maybe chemobot doesn't like friends?
Good night @M.A.R. and @Hippalectryon!
 

« first day (1 day earlier)      last day (63 days later) »