Python Forum
Package cannot be loaded into PBS queue file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Package cannot be loaded into PBS queue file
#1
The skopt package (https://scikit-optimize.github.io/stable/install.html) was installed on a cluster I use.

When I run the code in python directly in the terminal (i.e., in the cluster terminal executing "python3 ./code.py" command), no problem occurs and the code works as expected.

However when I simply place the command to execute the code in a PBS queue system file (e.g., python3 ./code.py), I cannot load the installed package and I get the following message:

Traceback (most recent call last):
File "./code.py", line 22, in <module>
from skopt import gp_minimize
ModuleNotFoundError: No module named 'skopt'

Could someone give me an insight on how to solve the problem?

If I need to provide any more information, let me know.

If my question is out of scope, please delete.

ps1: the package is installed on /usr/local/lib/python3.6/site-packages/skopt directory.
ps2: the package was installed by "pip3 install skopt" command.
ps3: in my code I'm calling the installed package with the following commands: "from skopt import gp_minimize" and "from skopt.space import Real, Integer, Categorical"
ps4: when i run pip3 list, i can verify that the package is installed

Thanks.
Reply


Messages In This Thread
Package cannot be loaded into PBS queue file - by emersonpl - Sep-09-2021, 07:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to install package caldwellpy and requirement txt file Samta282006 1 669 Dec-07-2023, 11:59 PM
Last Post: Larz60+
  Is Matplotlib.pyplot Loaded DaveG 2 1,275 Apr-06-2022, 06:12 AM
Last Post: DaveG
  PyQt5 MySQL Drivers Not Loaded AdeS 7 4,939 Aug-06-2021, 08:34 AM
Last Post: AdeS
  MacOS BigSur Python3 - dyld: Library not loaded: trillionanswers 1 4,167 Mar-02-2021, 11:00 PM
Last Post: nilamo
  Why is mpl_toolkits loaded? Gribouillis 1 1,565 Jan-30-2021, 08:39 PM
Last Post: Serafim
  task queue Valon1981 8 3,517 Jul-07-2020, 07:41 AM
Last Post: freeman
  start interactive pyhton shell with pre-loaded custom modules Viktor 2 2,143 Apr-09-2020, 08:25 AM
Last Post: Viktor
  can we write command output to new csv file using Panda package? PythonBeginner_2020 3 2,322 Mar-13-2020, 12:38 PM
Last Post: ndc85430
  Queue in Pygame constantin01 1 3,636 Jan-07-2020, 04:02 PM
Last Post: metulburr
  Queue maxsize mr_byte31 2 4,501 Sep-03-2019, 07:02 PM
Last Post: mr_byte31

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020