noob problem: ImportError: No module named jam.wsgi

184 views
Skip to first unread message

Saulo Barbosa Oliveira

unread,
Aug 30, 2021, 2:36:57 PM8/30/21
to Jam.py Users Mailing List
Hi there,

I've just installed jam.py using pip and when i run ./server.py after create a project:

Traceback (most recent call last):
  File "./server.py", line 4, in <module>
    from jam.wsgi import create_application
ImportError: No module named jam.wsgi

Seems to be a silly problem, but i'm little lost here.. can someone give me a hint?

best regards,
sbo

Andrew Yushev

unread,
Aug 30, 2021, 3:26:21 PM8/30/21
to Saulo Barbosa Oliveira, Jam.py Users Mailing List
Hi, Saulo

It seems that there is something wrong with package installation.
Maybe this link could help

Regards,
Andrew Yushev

пн, 30 авг. 2021 г. в 21:36, Saulo Barbosa Oliveira <neo...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jam-py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jam-py/75f6bab7-4b37-4271-8098-397071ca01a7n%40googlegroups.com.

Drazen D. Babic

unread,
Aug 30, 2021, 8:27:30 PM8/30/21
to Jam.py Users Mailing List
Hello,
we need to know the OS version tho....

BR

Saulo Barbosa Oliveira

unread,
Sep 8, 2021, 2:28:59 PM9/8/21
to Jam.py Users Mailing List
sorry guys,  solved!

I was using ubuntu 21.04, upgraded from 17.10 on every release and was wondering if something was broken as Andrew mentioned.. so i've installed a fresh copy of Pop!_OS 21.04 and the error was the same, everything is fresh.

As Andrew said, the issue was about environments, jam.py is installed at python3 env:
 
sbonb@pop-os:~/jampy$ python -m pip install jam.py
/usr/bin/python: No module named pip
sbonb@pop-os:~/jampy$ python3 -m pip install jam.py
Requirement already satisfied: jam.py in /usr/local/lib/python3.9/dist-packages (5.4.114)

but the ./server.py file calls  for python env ( #!/usr/bin/env python ), not python3 env.

so i just had to correct that at first line and the server.py works.

Best regards,
sbo

Drazen D. Babic

unread,
Sep 8, 2021, 8:31:01 PM9/8/21
to Jam.py Users Mailing List
Hello, 
glad to hear.

I think it is better to create a Python virtual environment and THAN install jam.py, so you do not need to change anything.

We can have many virtual environments, and if one is "ruined" by some bad package, we just create a new virt env and off you go.

D.
Reply all
Reply to author
Forward
0 new messages