Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • May 10 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 27 19:46
    @mstellaluna banned @zhonghuacx
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:04
    @mstellaluna banned @dertiuss323
  • Jan 07 15:43
    User @mstellaluna unbanned @oudarjya718
  • Jan 06 15:14
    @mstellaluna banned @oudarjya718
  • Dec 15 2018 23:38
    @mstellaluna banned @Julianna7x_gitlab
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 22:59
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:13
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 27 2018 19:07
    User @mstellaluna unbanned @JomoPipi
  • Aug 27 2018 06:17
    @mstellaluna banned @JomoPipi
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:15
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
python3.6 -m pip install --upgrade pip
python3.6 -m pip install --upgrade setuptools
Although, i suggest you use a virtualenv rather than installing stuffs system wide, unless you have a good reason to
Miguel Espinoza
hi @millefalcon actually removing setuptools fixed it, thank you for your tip! its what lead me to finding this :)
@purefan No problem. Although, updating setuptools didn't fix it ?
Miguel Espinoza
nope :/ maybe something else is broken too... I know I have python 2.7 and 3.6 and dont know why, but Im primarily a nodejs developer, just sometimes I try to help a friend so my python set up is not groomed at all, might have used sudo one too many times too
Yeah, never run system pip with root privileges
Use a virtualenv for dev, it's very easy to setup and save you from these sorts of things : )
If python3 then
python3 -m venv env
source env/bin/activate
pip install <package>
If python2, just use the virtualenv package, and isolate your dev environment
Miguel Espinoza
thanks for the help han! =D will definitely clean up this weekend and remember to use virtualenv, I've seen it often but never took the time to learn what it is or does
Filipe Oliveira
how I can create an list distinct for instance in objects of Python?
@OlivlfilipeOliveira Can you please give an example of objects you have and objects you want to have? Maybe you have [1,2,1,2,3,4,1,2,3] and you want [1,2,3,4].

Hi there everyone! I'm trying to install pycharm on my linux mint 19 machine through the terminal. However, this is the result:

HTTP Error 404: Not Found
Cannot add PPA: ''This PPA does not support bionic''.

The instructions told me to use these commands:

sudo add-apt-repository ppa:mystic-mirage/pycharm

sudo apt-get update

sudo apt-get install pycharm-community

This is the command I used that gave the result:
sudo add-apt-repository ppa:mystic-mirage/pycharm

Does anyone know of another PPA I can use instead that will support Bionic or is there something else I can do to fix this problem?

for Gentoo Linux it's just emerge pycharm-community
try sudo snap install pycharm-community —classic
@sheerluck It worked! thanks a million!!
I used this one: sudo snap install pycharm-community —classic
Aviraj Khare
./run hello_world.sh
Sara Alomran
hey guys i have a question regarding API requests using python
anyone interested to help?
Philip Durbin
@saraalomran3_twitter I can try. What's your question? :)
Sara Alomran
Screen Shot 2019-12-01 at 5.44.28 PM.png
guys how can i plug (user_input) inside the url instead of (google.com)
a changing variable that i take from the user
whats the syntax
Philip Durbin
@saraalomran3_twitter well, please be careful to sanitize user input to prevent security problems
user_input = request.form['url']
url = f"https://endpoint... 71b&host={user_input}" # notice f
print(url) # https://endpoint... 71b&host=boo.me
t = requests.get(url)
Sara Alomran
Jeferson Moura
Hey guys, some partners and I are building an open-source API Gateway in Python/Django with a lot of features and I'd like ask you for feedback. Our idea is to help developers to speed up the process of application and API creation, including the admnistration of them. We want to also encourage people to use "micro" services and industry standards, so they can connect services that are built in different languages and use them seamlessly. Keep in mind that this project is still in progress and it's not in version 1.0 yet but it will be ;). I'd love to get some feedback from you all, so you can email me directly jeferson@buildly.io or the team team@buildly.io
Thank you and have fun :D
Sorry for the long message
Sara Alomran
hey guys i got a question.
i used a python library that generates xml sitemap for any website, this is the screenshot of the output it gives, the thing is i want to only print out the url object ( a string object) not the whole objects which are ( priority, last_modified, change_frequency , news_story)
Screen Shot 2019-12-03 at 4.28.54 PM.png
Screen Shot 2019-12-03 at 4.34.58 PM.png
and this is the code that i wrote
Sara Alomran
how can i append all url object in one list then print it?
knowing its xml
this is the library's documentation
Sara Alomran
nevermind guys it workeddd
I’m facing some problems in firebase using python and I hope you could help in this.
I’ve list of strings and I need to store each element of the list in firebase but, this what I got “firebase_admin.exceptions.InvalidArgumentError: Invalid data; couldn't parse JSON object, array, or value.”
    for i in indusry_list:
        name= i
            "cpc": cpc,
            "serp": serp,
            "volume" : vulme}


    SUPERHEROES2 = db.reference('Industries/')

    #end of for loop
this is the code. Thanks in advance!
Francisco Albert Albusac
guys, during an installation with PIP in mac I'm having an error and is saying: Check the logs for full command output., but is not saying what file is that log. Exist any default one?
Could you give us the full traceback ?
Francisco Albert Albusac
is sorted out, I reinstalled python and it didn't happen again, not sure about the reason
Joe Gasewicz
hey guys , I would be really grateful if anyone wants to star my Flask library, thank you: https://github.com/joegasewicz/Flask-JWT-Router