Skip to content

Installation with pip #3

Closed
Closed

Description

@SteVwonder

If I do:

git clone git@github.com:ExaWorks/psi-j-python.git
virtualenv -p python3 ./.virtualenv
source .virtualenv/bin/activate
pip install -r requirements.txt
pip install -e .

And then try to run one of the example files in test, I get:

(126) herbein1 ~/Repositories/exaworks/psi-j-python/tests [.virtualenv] (main ?)
❯ python ./test_doc_examples.py                                                                                                                                                              17:08:01 ()
Traceback (most recent call last):
  File "/Users/herbein1/Repositories/exaworks/psi-j-python/tests/./test_doc_examples.py", line 1, in <module>
    import psi.j
ModuleNotFoundError: No module named 'psi'

Looking at the virtualenv, it seems the package was installed as jpsi-python:

❯ find ./.virtualenv -name "*psi*"                                                                                                                                                           17:08:37 ()
./.virtualenv/lib/python3.9/site-packages/jpsi-python.egg-link

I don't totally know my way around the packaging of python, so I'll defer to others, but I think the issue here is in setup.py which has the name of the package as jpsi-python. Not sure if we want to tweak the setup.py to have a different package name or tweak the imports.

Activity

  1. hategan commented on Mar 20, 2021

    @hategan
    Collaborator

    True, true. I had it initially as "jpsi-python" and, after the change to "psi-j-python" I forgot to update the installation file.

  2. added a commit that references this issue on Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions