Django River - ModuleNotFoundError: No module named 'river'

210 views
Skip to first unread message

Kean

unread,
Sep 1, 2019, 3:56:25 PM9/1/19
to Django users
Hi,

New to Django, but can't seem to get django to run the module.
The process I followed:

Process.

1) Closed venv
2) shell: pip3 install django-river 
3) Add 'river' to Installed_apps in settings.py

Please can anyone advise if they have seen this issue before and how resolved?

Best,

Kean 

Gil Obradors

unread,
Sep 1, 2019, 5:06:12 PM9/1/19
to django...@googlegroups.com
Hi,


If you deactivate ( close?) venv, and then you install with pip3, it will be installet to system.
If you are using venv, pip3 with venv activated


Bests djangos,




Missatge de Kean <kea...@gmail.com> del dia dg., 1 de set. 2019 a les 21:56:
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bdb4011d-a896-4bc7-b968-45719c8b9e4f%40googlegroups.com.

Kean

unread,
Sep 1, 2019, 5:27:12 PM9/1/19
to django...@googlegroups.com
Hi Gil,

Thank you for the response.
In the first step, I closed the venv, then installed river, (please see process below)
This is when I get the issue of Module not found.

please clarify, are you saying solution is to install django-river with venv active and then it will work?
would I need to unistall the current instance of django-river firs,t and then re-install django-river wihen venv active?

Best,

K

Gil Obradors

unread,
Sep 1, 2019, 5:32:55 PM9/1/19
to django...@googlegroups.com
With venv deactivated, your are installing onto system library.

If you run django , without venv, you will run with system lib.  Not recommended.


When you works with venv, you need yo install into this virtal enviorment.
How?
1.- activate venv
2- pip install 

And go!

El dg., 1 de set. 2019, 23:26, Kean <kea...@gmail.com> va escriure:

Kean

unread,
Sep 1, 2019, 5:39:31 PM9/1/19
to django...@googlegroups.com
Hi,

Thank you Gill, solution is becoming clearer,

should I pip3 un-install django-river as v- was  installed outside virtualenv,
then reinstall  using pip3 install django-river, within my active venv?

best,

K

n.b Is their a rule to follow with installing django packages,

Kean

unread,
Sep 2, 2019, 11:15:58 AM9/2/19
to django...@googlegroups.com
Hi,

Uninstalled django-river with pip3 then installed django-river into my venv, as well as added it to installed apps in settings.

I’m still having the same issue, with no module named river found, please can you advise?

n.b. please see pip freeze.

altgraph==0.10.1
bdist-mpkg==0.4.4
bonjour-py==0.3
Django==1.11.22
macholib==1.5
matplotlib==1.1.1
modulegraph==0.10.1
numpy==1.6.2
py2app==0.7.1
pyobjc-core==2.3.2a0
pyobjc-framework-AddressBook==2.3.2a0
pyobjc-framework-AppleScriptKit==2.3.2a0
pyobjc-framework-AppleScriptObjC==2.3.2a0
pyobjc-framework-Automator==2.3.2a0
pyobjc-framework-CFNetwork==2.3.2a0
pyobjc-framework-Cocoa==2.3.2a0
pyobjc-framework-Collaboration==2.3.2a0
pyobjc-framework-CoreData==2.3.2a0
pyobjc-framework-CoreLocation==2.3.2a0
pyobjc-framework-CoreText==2.3.2a0
pyobjc-framework-DictionaryServices==2.3.2a0
pyobjc-framework-ExceptionHandling==2.3.2a0
pyobjc-framework-FSEvents==2.3.2a0
pyobjc-framework-InputMethodKit==2.3.2a0
pyobjc-framework-InstallerPlugins==2.3.2a0
pyobjc-framework-InstantMessage==2.3.2a0
pyobjc-framework-InterfaceBuilderKit==2.3.2a0
pyobjc-framework-LatentSemanticMapping==2.3.2a0
pyobjc-framework-LaunchServices==2.3.2a0
pyobjc-framework-Message==2.3.2a0
pyobjc-framework-OpenDirectory==2.3.2a0
pyobjc-framework-PreferencePanes==2.3.2a0
pyobjc-framework-PubSub==2.3.2a0
pyobjc-framework-QTKit==2.3.2a0
pyobjc-framework-Quartz==2.3.2a0
pyobjc-framework-ScreenSaver==2.3.2a0
pyobjc-framework-ScriptingBridge==2.3.2a0
pyobjc-framework-SearchKit==2.3.2a0
pyobjc-framework-ServiceManagement==2.3.2a0
pyobjc-framework-SyncServices==2.3.2a0
pyobjc-framework-SystemConfiguration==2.3.2a0
pyobjc-framework-WebKit==2.3.2a0
pyobjc-framework-XgridFoundation==2.3.2a0
pyOpenSSL==0.13
PyRSS2Gen==1.0.0
python-dateutil==1.5
pytz===2012d
scipy==0.11.0
sip==4.19.18
Twisted==12.2.0
virtualenv==16.6.2
xattr==0.6.4
zope.interface==3.8.0

please see pip freeze.

Best,

K

On 1 Sep 2019, at 22:32, Gil Obradors <gil.ob...@gmail.com> wrote:

Most. Runa

unread,
Sep 2, 2019, 6:26:38 PM9/2/19
to django...@googlegroups.com
Fuck me brother 

 Its me, u like my puss.  

IMG_20190227_131638.jpg
IMG_20190227_131651.jpg
Reply all
Reply to author
Forward
0 new messages