Closed prjemian closed 4 years ago
@jkirchman: Since apsbss
does not use imaging (so no PIMS, scikit-image, or matplotlib), I'm guessing this happens due to other factors, most likely environment. If you are using apsbss
from /APSshare/anaconda3/Bluesky/bin/apsbss
(which should use /APSshare/anaconda3/Bluesky/bin/python`) and you get this error, then maybe it would help if you sourced a virtual environment first. Try this:
bash
export PYTHONPATH=
source /APSshare/anaconda3/Bluesky/bin/activate base
apsbss update 27id:dm:
Same problem?
Also, do you have a PYTHONPATH environment variable set? Might help to unset that. Amending my previous comment for this.
@jkirchman: Is there a PYTHONPATH variable?
I'm also suspicious of package versions installed in /APSshare/anaconda3/Bluesky/
. I'll compare with the bluesky_2020_5
environment for the USAXS instrument.
Compare packages on /APSshare and the USAXS custom environment:
Notably:
USAXS has scikit-beam 0.0.21 and scikit-image 0.16.2 installed via pip, APSshare has neither. This is likely the problem.
Will pip install scikit-beam
and pip install scikit-image
in /APSshare/anaconda3/Bluesky
BTW, here is the code to compare two conda environments (that generated the table above):
from collections import defaultdict
import os
import pyRestTable
# import sys
SUITE = dict(
# These files contain the output of ``conda list``
APSshare="APSshare.txt",
USAXS="USAXS.txt"
)
def main():
path = os.path.dirname(__file__)
db = defaultdict(lambda: {})
for env, fname in SUITE.items():
with open(os.path.join(path, fname), "r") as fp:
for line in fp.readlines():
if line.startswith("#"):
continue
parts = line.strip().split()
if len(parts) not in (3, 4):
continue
elif len(parts) == 3:
parts.append("")
package, version, build, channel = parts
db[package][env] = (version, build, channel)
table = pyRestTable.Table()
table.addLabel("package")
for env in sorted(SUITE.keys()):
table.addLabel(f"{env} version")
table.addLabel(f"{env} build")
table.addLabel(f"{env} channel")
for package, pkg_info in sorted(db.items()):
row = [package,]
for env in sorted(SUITE.keys()):
if env in pkg_info:
row += pkg_info[env]
else:
row += ["", "", ""]
table.addRow(row)
print(table)
if __name__ == "__main__":
main()
open new issue if problem recurs
@jkirchman emails: