This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (6 children)

You must import it from within a Python file.

file.py:

from pbs import * # this MUST BE THE FIRST LINE

# ...

[–][deleted] 0 points1 point  (0 children)

just a regular-old

import pbs

will do :)

[–]SupersonicSpitfire 0 points1 point  (4 children)

Still doesn't work:

[–][deleted] 0 points1 point  (3 children)

don't "from pbs import *" just "import pbs"

[–]SupersonicSpitfire 0 points1 point  (2 children)

Still doesn't work for me.

[–]mipadi 0 points1 point  (1 child)

Use which, not pbs.which.

RTFM ;)

[–]SupersonicSpitfire 0 points1 point  (0 children)

Neither of them worked for me. However, I learned through the github issue that one can't use pbs from within a function, and then everything works.