Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: I can't remove python. I'm not kidding, it doesn't get uninstalled.
Post: RE: I can't remove python. I'm not kidding, it doe...

Yea yea I know how to reinstall ubuntu, thanks. (I'm a developer for 20+ years, so...). It's going to take about three days to reinstall everything again. I wish this had all happened two months from...
david503 General Coding Help 5 2,561 Feb-07-2020, 10:50 AM
    Thread: I can't remove python. I'm not kidding, it doesn't get uninstalled.
Post: RE: I can't remove python. I'm not kidding, it doe...

OK when I reboot I get the CLI. It doesn't have network capability, but if I can get network capability to work then presumably I can just reinstall python (which ironically was still working so... u...
david503 General Coding Help 5 2,561 Feb-07-2020, 12:41 AM
    Thread: I can't remove python. I'm not kidding, it doesn't get uninstalled.
Post: I can't remove python. I'm not kidding, it doesn't...

I've spent like a week's worth of man-hours trying to get uwgsi to work (see https://python-forum.io/Thread-ImportErr...#pid104516 ), and my problem must be obscure because no one's advice works (or I...
david503 General Coding Help 5 2,561 Feb-06-2020, 10:32 PM
    Thread: ImportError: No module named site
Post: RE: ImportError: No module named site

(Feb-06-2020, 08:32 PM)Gribouillis Wrote: Perhaps try to run Output:env | grep PYto see if you have any bad python-related environment variable. Yea I tried that actually, nope, nothing.
david503 Networking 2 6,763 Feb-06-2020, 10:22 PM
    Thread: ImportError: No module named site
Post: ImportError: No module named site

I'm trying to do this tutorial: https://docs.djangoproject.com/en/3.0/ho...sgi/uwsgi/ (I've read other site's and docs for like 3 days and I still can't get uwsgi to work, let along get nginx to sta...
david503 Networking 2 6,763 Feb-06-2020, 05:04 PM
    Thread: Can I connect python/django to nginx "after the fact"?
Post: RE: Can I connect python/django to nginx "after th...

(Jan-25-2020, 06:04 PM)ndc85430 Wrote: I'm not really sure what you're asking. NGINX is a (reverse) proxy and runs independently of your app. All you should need to do is write the NGINX configurati...
david503 Networking 2 2,211 Feb-06-2020, 04:47 PM
    Thread: Can I connect python/django to nginx "after the fact"?
Post: Can I connect python/django to nginx "after the fa...

This tutorial describes how to get python and django up and running: https://www.digitalocean.com/community/t...untu-16-04 What I want to know is- once I get that all working, can I connect it to ng...
david503 Networking 2 2,211 Jan-25-2020, 10:43 AM
    Thread: Can I make virtualenv (and/or uwsgi) use python 3.6 instead of 2.7?
Post: RE: Can I make virtualenv (and/or uwsgi) use pytho...

Thanks I have a pretty good knowledge of linux (I mean 20 years as a lamp developer plus I run ubuntu as my desktop OS for the past 4) but I know what you mean- the very low-level kind of stuff, right...
david503 Networking 11 6,766 Nov-10-2019, 07:20 PM
    Thread: What do I put in the "module" argument in a uwsgi.ini file?
Post: What do I put in the "module" argument in a uwsgi....

Ok I think this should be a simple question since I've boiled it down after hours to this: I can run this and it works fine: bog@bog-Lenovo-Product:~/myapp/myappdjango/myappdjango$ pwd /home/bog/mya...
david503 Networking 0 2,511 Nov-10-2019, 04:00 AM
    Thread: Can I make virtualenv (and/or uwsgi) use python 3.6 instead of 2.7?
Post: RE: Can I make virtualenv (and/or uwsgi) use pytho...

(Nov-10-2019, 02:50 AM)Larz60+ Wrote: Quote:The only thing I can think of is that I had logged out of my session (as in the entire ubuntu session, not just CLI login). Would that change anything? Al...
david503 Networking 11 6,766 Nov-10-2019, 03:39 AM
    Thread: Can I make virtualenv (and/or uwsgi) use python 3.6 instead of 2.7?
Post: RE: Can I make virtualenv (and/or uwsgi) use pytho...

(Nov-09-2019, 11:02 AM)Larz60+ Wrote: did you activate the virtual environment? from command line (Linux), command is: . ./venv/bin/activatecheck with Python -V You know what's really odd- suddenly ...
david503 Networking 11 6,766 Nov-10-2019, 02:30 AM
    Thread: Can I make virtualenv (and/or uwsgi) use python 3.6 instead of 2.7?
Post: RE: Can I make virtualenv (and/or uwsgi) use pytho...

Wait I'm still having the same problem; wsgi is still using 2.7.15 bog@bog-Lenovo-Product:~/myapp/myappdjango/myappdjango$ uwsgi --socket mysite.sock --wsgi-file test.py --chmod-socket=666 *** Starti...
david503 Networking 11 6,766 Nov-09-2019, 05:55 AM
    Thread: Can I make virtualenv (and/or uwsgi) use python 3.6 instead of 2.7?
Post: RE: Can I make virtualenv (and/or uwsgi) use pytho...

Woo! It worked ok here's what I did: It's kind of a hybrid of the tutorial, your advice, the thread you linked me too, and a line from another forum where I asked this question haha: sudo apt-get in...
david503 Networking 11 6,766 Nov-07-2019, 02:01 AM
    Thread: Can I make virtualenv (and/or uwsgi) use python 3.6 instead of 2.7?
Post: Can I make virtualenv (and/or uwsgi) use python 3....

I must be doing this wrong: I'm in ubuntu 18.04.2 I'm figuring out to setup uwsgi according to this: https://uwsgi-docs.readthedocs.io/en/lat...nginx.html And it's working so far but it's running ...
david503 Networking 11 6,766 Nov-06-2019, 05:26 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020