Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 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
han-solo
@millefalcon
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
@purefan
hi @millefalcon actually removing setuptools fixed it, thank you for your tip! its what lead me to finding this :)
han-solo
@millefalcon
@purefan No problem. Although, updating setuptools didn't fix it ?
Miguel Espinoza
@purefan
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
han-solo
@millefalcon
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
@purefan
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
han-solo
@millefalcon
Filipe Oliveira
@OlivlfilipeOliveira
how I can create an list distinct for instance in objects of Python?
Andrew
@sheerluck
@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].
WebGearMT
@WebGearMT

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?

Andrew
@sheerluck
for Gentoo Linux it's just emerge pycharm-community
Andrew
@sheerluck
try sudo snap install pycharm-community —classic
Andrew
@sheerluck
compare
WebGearMT
@WebGearMT
@sheerluck It worked! thanks a million!!
I used this one: sudo snap install pycharm-community —classic
Aviraj Khare
@avirajkhare00
./run hello_world.sh
Sara Alomran
@saraalomran3_twitter
hey guys i have a question regarding API requests using python
anyone interested to help?
Philip Durbin
@pdurbin
@saraalomran3_twitter I can try. What's your question? :)
Sara Alomran
@saraalomran3_twitter
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
@pdurbin
@saraalomran3_twitter well, please be careful to sanitize user input to prevent security problems
Andrew
@sheerluck
@saraalomran3_twitter
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
@saraalomran3_twitter
YOU'RE A GENIUS I LOVE YOU ANDREW
Andrew
@sheerluck
Jeferson Moura
@jefmoura
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
https://github.com/buildlyio/buildly-core/
https://buildly.io/developer-community/
https://buildly-core.readthedocs.io/en/latest/
Sorry for the long message
Sara Alomran
@saraalomran3_twitter
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
@saraalomran3_twitter
how can i append all url object in one list then print it?
knowing its xml
this is the library's documentation
Sara Alomran
@saraalomran3_twitter
nevermind guys it workeddd
Lujain36
@Lujain36
Hi
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="11"
        serp="11"
        vulme="11"
        keyword={ 
            name:{
            "cpc": cpc,
            "serp": serp,
            "volume" : vulme}
        }

        keywords.update(keyword)


    Industry["keywords"].update(keywords)
    SUPERHEROES2 = db.reference('Industries/')
    SUPERHEROES2.push(Industry)

    #end of for loop
this is the code. Thanks in advance!
Francisco Albert Albusac
@tatitati
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?
han-solo
@millefalcon
Could you give us the full traceback ?
Francisco Albert Albusac
@tatitati
is sorted out, I reinstalled python and it didn't happen again, not sure about the reason
Joe Gasewicz
@joegasewicz
hey guys , I would be really grateful if anyone wants to star my Flask library, thank you: https://github.com/joegasewicz/Flask-JWT-Router