Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'sqlalchemy' #298

Open
simonmacdonald opened this issue Oct 31, 2021 · 0 comments
Open

ModuleNotFoundError: No module named 'sqlalchemy' #298

simonmacdonald opened this issue Oct 31, 2021 · 0 comments

Comments

@simonmacdonald
Copy link

I am new to Python and program-y
I am running an AWS EC2 server using Amazon Linux
Python v3.7
Program-y v.5.0.1 from pyp1.org

As far as I can see I have installed Program-y correctly in a test virtual environment and downloaded y-bot.
Running the bot resuts in

👍 Traceback (most recent call last):
  File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/ec2-user/mybots/testbot/lib64/python3.7/site-packages/programy/clients/events/console/client.py", line 19, in <module>
    from programy.clients.events.client import EventBotClient
  File "/home/ec2-user/mybots/testbot/lib64/python3.7/site-packages/programy/clients/events/client.py", line 19, in <module>
    from programy.clients.client import BotClient
  File "/home/ec2-user/mybots/testbot/lib64/python3.7/site-packages/programy/clients/client.py", line 37, in <module>
    from programy.clients.botfactory import BotFactory
  File "/home/ec2-user/mybots/testbot/lib64/python3.7/site-packages/programy/clients/botfactory.py", line 19, in <module>
    from programy.bot import Bot
  File "/home/ec2-user/mybots/testbot/lib64/python3.7/site-packages/programy/bot.py", line 29, in <module>
    from programy.clients.config import ClientConfigurationData
  File "/home/ec2-user/mybots/testbot/lib64/python3.7/site-packages/programy/clients/config.py", line 21, in <module>
    from programy.storage.config import StorageConfiguration
  File "/home/ec2-user/mybots/testbot/lib64/python3.7/site-packages/programy/storage/config.py", line 21, in <module>
    from programy.storage.stores.sql.config import SQLStorageConfiguration
  File "/home/ec2-user/mybots/testbot/lib64/python3.7/site-packages/programy/storage/stores/sql/config.py", line 19, in <module>
    from programy.storage.stores.sql.engine import SQLStorageEngine
  File "/home/ec2-user/mybots/testbot/lib64/python3.7/site-packages/programy/storage/stores/sql/engine.py", line 17, in <module>
    from sqlalchemy import create_engine
ModuleNotFoundError: No module named 'sqlalchemy'

As far as I can tell from 'pip list' SQLAlchemy 1.3.12 is installed.

The $PYTHONPATH -

(testbot) [ec2-user@quiraang xnix]$ echo "$PYTHONPATH" | tr ":" "\n" | nl

     1  /usr/lib64/python3.7/site-packages
     2  /usr/local/lib64/python3.7/site-packages
     3  /usr/lib/python3.7/site-packages
     4  /home/ec2-user/mybots/testbot/lib64/python3.7/site-packages

I'm obviously doing something wrong - any advice would be grateful.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant