These are chat archives for pybee/general

28th
Feb 2017
leasunhy
@leasunhy
Feb 28 2017 03:42
Hi I found pybee in GSOC too! The projects look very interesting!
Satrap Rathore
@etotientz
Feb 28 2017 05:00
I don't knw CPython,so should I avoid Batavia?
Elias Dorneles
@eliasdorneles
Feb 28 2017 05:06
Do you know Python at all? Because CPython is just how we refer to the standard implementation, which is written in C (to differentiate from Jython and Pypy, for example, which are written in Java and Python itself, respectively)
Satrap Rathore
@etotientz
Feb 28 2017 05:07
yes,i know python
i want to get started with a beginner issue but can't find one.Can anyone send a link?
Chiang Fong Lee
@cflee
Feb 28 2017 06:45

Hi is this the first time pybee got selected for gsoc ?

@warrior41519569_twitter Yes, I believe so for GSoC! As for other programmes, VOC had a team via Rails Girls Summer of Code in 2016.

leasunhy
@leasunhy
Feb 28 2017 09:16
Hi, I found that there are no __r*__ (e.g. __radd__) methods in org.python.Object interface. Is it on purpose?
the __add__(other) shall fallback to other.__radd__(this), which makes it possible to extend the behavior of native types (we can define new add operations for Integers!) :smile:
Elias Dorneles
@eliasdorneles
Feb 28 2017 12:03
@etotientz then you know CPython :)
About a beginner issue,
Check the description and comments in here: pybee/voc#212
Feel free to ask any questions if something is unclear
Sanjeev
@Sanjeev-S
Feb 28 2017 15:14

When I run sample.py in local host I get(at the very end)
Traceback (most recent call last):
File "sample.py", line 85, in <module>
File "sample.py", line 79, in main
File "sample.py", line 39, in try_builtins
TypeError: bad operand type for abs(): 'NoneType'

Is this expected behaviour?

That is in regard to Batavia.
Andrew Pinkham
@jambonrose
Feb 28 2017 15:17
Hi @Sanjeev-S , welcome to the channel!
I'm afraid you're going to have to give us a little more context. What command did you run? Which instructions are you following?
Sanjeev
@Sanjeev-S
Feb 28 2017 15:20
Hey, thanks. So I was setting up my environment for Batavia.
I was following the tutorial in the docs.
And I just tried running the "Run sample.py" in the localhost Batavia testbed
Andrew Pinkham
@jambonrose
Feb 28 2017 15:24
What version of Python/Node/NPM are you running?
Sanjeev
@Sanjeev-S
Feb 28 2017 15:24
Node 6.9.1
Oops, yeah npm version 3.10.8
And python 3.4.3+
I'll try updating the npm and retrying.
Andrew Pinkham
@jambonrose
Feb 28 2017 15:41
So, your Python and Node versions are fine, but as you've noticed, NPM needs to be v4+. However, I just pulled down the latest branch and setup the project, and I confirm that I am able to replicate the behavior you are seeing.
@Sanjeev-S Please open a new issue on Github detailing the behavior! Nice catch.
Sanjeev
@Sanjeev-S
Feb 28 2017 15:44
Thanks :)
I'll do that in just a moment.
Sanjeev
@Sanjeev-S
Feb 28 2017 16:18
I opened the issue.
Andrew Pinkham
@jambonrose
Feb 28 2017 16:18
Nice! Thank you!
Sanjeev
@Sanjeev-S
Feb 28 2017 16:19
:)
Deepankar Agrawal
@deep110
Feb 28 2017 16:23
Hi, the link to getting started in voc https://voc.readthedocs.io/en/latest/intro/getting-started.html is not working
instead https://voc.readthedocs.io/en/latest/intro/index.html this is working, can this be updated in the ReadMe.md
Jacob Stoebel
@jstoebel
Feb 28 2017 17:28
ok I have a theoretical question about Batavia / Python in the browser generally. I have an idea for a Chrome Extension that would do some machine learning with scikit-learn. Is it right to say that Batavia isn't yet ready for something like this? If so, what would be a better option for the moment just to get something off the ground? Let's assume I want to run scikit-learn locally and not behind a service. As Batavia grows I would eventually want to incorporate it into the project.
Elias Dorneles
@eliasdorneles
Feb 28 2017 18:36
@deep110 thanks for pointing that out, that's my bad! I will send a PR with redirects to fix this
Deepankar Agrawal
@deep110
Feb 28 2017 18:37
No problem!! :smile:
Elias Dorneles
@eliasdorneles
Feb 28 2017 18:40
hm, does anyone knows how to do redirects with Sphinx / ReadTheDocs?
Looking here: http://docs.readthedocs.io/en/latest/user-defined-redirects.html -- it seems that one needs admin access in ReadTheDocs
lucantrop
@lucantrop
Feb 28 2017 21:11
@jstoebel i imagine scikit-learn uses more of the standard library than is currently implemented
but don't quote me on that :smile:
Ashwani Gupta
@ashwani99
Feb 28 2017 21:12
Hello everyone, I am new here. I just opened an issue here pybee/voc#366
Wanted to know is the format is alright?
Ashwani Gupta
@ashwani99
Feb 28 2017 21:28
Seems this was already pointed out by @deep110
Sorry for this.
Elias Dorneles
@eliasdorneles
Feb 28 2017 21:56
Don't worry, it's good to have an issue.
I think we don't need to fix the link, it's better to setup a redirect because there are other places pointing to those links.
But I don't have access to add the redirect at the moment, I'll add a comment to the ticket so that someone with access can do it.
So feel free to send a PR :thumbsup:
Ashwani Gupta
@ashwani99
Feb 28 2017 22:17
Thanks. I just sent the PR pybee/voc#367
:grinning:
Russell Keith-Magee
@freakboy3742
Feb 28 2017 22:21
@ashwani99 And merged. Thanks for that!
Ashwani Gupta
@ashwani99
Feb 28 2017 22:21
This broken link is also present in the wiki. I am not sure how to fix that. Can you help me on this?
Russell Keith-Magee
@freakboy3742
Feb 28 2017 22:22
Which page on the wiki?
Russell Keith-Magee
@freakboy3742
Feb 28 2017 22:22
Ah - that page should be deprecated… How did you find that page?
Ashwani Gupta
@ashwani99
Feb 28 2017 22:23
As I found this in the README.rst, I was also reading the wiki and just searched for it.
Oh sorry I misread the question. I actually found that wiki link in the README file itself in the Contributing section.
Russell Keith-Magee
@freakboy3742
Feb 28 2017 22:26
Ah - thanks. That’s a link that should be updated too.
Ashwani Gupta
@ashwani99
Feb 28 2017 22:27
And what is the correct link?
Sanjeev
@Sanjeev-S
Feb 28 2017 23:44
While being in batavia-dev > batavia(with virtual env active), I ran pip install cricket. It completes successfully. But now when I run cricket-unittest, it says command not found.
Sanjeev
@Sanjeev-S
Feb 28 2017 23:57
And when I run, python setup.py test - I get an error "SyntaxError: Non-ASCII character '\xc3' in file /home/sanjeev/Desktop/batavia-dev/batavia/tests/datatypes/test_bytes.py on line 25, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details" along with several warnings and a Traceback.