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

iepy command not recognized #139

Open
gowthambalachandhiran opened this issue Nov 21, 2017 · 4 comments
Open

iepy command not recognized #139

gowthambalachandhiran opened this issue Nov 21, 2017 · 4 comments

Comments

@gowthambalachandhiran
Copy link

gowthambalachandhiran commented Nov 21, 2017

I gave java home path inside my virtual environment but its not able to create instance

JAVAHOME=/usr/lib/jvm/java-7-openjdk-amd64/bin/java JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/bin/java iepy --create iepy
Traceback (most recent call last):
File "/home/gowtham/my_app/bin/iepy", line 11, in
sys.exit(execute_from_command_line())
File "/home/gowtham/my_app/lib/python3.4/site-packages/iepy/instantiation/command_line.py", line 43, in execute_from_command_line
InstanceManager(opts["<folder_path>"], lang=lang).create()
File "/home/gowtham/my_app/lib/python3.4/site-packages/iepy/instantiation/instance_admin.py", line 57, in create
self._run_steps()
File "/home/gowtham/my_app/lib/python3.4/site-packages/iepy/instantiation/instance_admin.py", line 51, in _run_steps
step()
File "/home/gowtham/my_app/lib/python3.4/site-packages/iepy/instantiation/instance_admin.py", line 98, in create_folders
os.makedirs(self.bin_folder, exist_ok=not self.creating)
File "/home/gowtham/my_app/lib/python3.4/os.py", line 227, in makedirs
makedirs(head, mode, exist_ok)
File "/home/gowtham/my_app/lib/python3.4/os.py", line 237, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: 'iepy'

When I gave sudo infront of it its not accepting iepy as command

(my_app) gowtham@ubuntu:/usr/lib/jvm/java-7-openjdk-amd64$ sudo JAVAHOME=/usr/lib/jvm/java-7-openjdk-amd64/bin/java JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/bin/java iepy --create iepy
sudo: iepy: command not found
(my_app) gowtham@ubuntu:/usr/lib/jvm/java-7-openjdk-amd64$

@jmansilla
Copy link
Contributor

jmansilla commented Nov 21, 2017 via email

@gowthambalachandhiran
Copy link
Author

Yes I installed everything following the document below

https://media.readthedocs.org/pdf/iepy/latest/iepy.pdf

and I even activated only then I used the above commands

@gowthambalachandhiran
Copy link
Author

Issue is resolved javapath was not configured properly.

@shaileshrv
Copy link

Hi i am getting the below error

administrator@INKEO02263LNPR:~$ iepy
/usr/local/lib/python3.6/dist-packages/sklearn/utils/fixes.py:55: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
if 'order' in inspect.getargspec(np.copy)[0]:
Traceback (most recent call last):
File "/usr/local/bin/iepy", line 7, in
from iepy.instantiation.command_line import execute_from_command_line
File "/usr/local/lib/python3.6/dist-packages/iepy/instantiation/command_line.py", line 25, in
from iepy.instantiation.instance_admin import InstanceManager
File "/usr/local/lib/python3.6/dist-packages/iepy/instantiation/instance_admin.py", line 11, in
from iepy import defaults
File "/usr/local/lib/python3.6/dist-packages/iepy/defaults.py", line 3, in
from iepy.utils import make_feature_list
File "/usr/local/lib/python3.6/dist-packages/iepy/utils.py", line 19, in
os.mkdir(DIRS.user_data_dir)
FileNotFoundError: [Errno 2] No such file or directory: '/home/administrator/.config/iepy'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/init.py", line 5, in
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 20, in
import apt
File "/usr/lib/python3/dist-packages/apt/init.py", line 23, in
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'

Original exception was:
Traceback (most recent call last):
File "/usr/local/bin/iepy", line 7, in
from iepy.instantiation.command_line import execute_from_command_line
File "/usr/local/lib/python3.6/dist-packages/iepy/instantiation/command_line.py", line 25, in
from iepy.instantiation.instance_admin import InstanceManager
File "/usr/local/lib/python3.6/dist-packages/iepy/instantiation/instance_admin.py", line 11, in
from iepy import defaults
File "/usr/local/lib/python3.6/dist-packages/iepy/defaults.py", line 3, in
from iepy.utils import make_feature_list
File "/usr/local/lib/python3.6/dist-packages/iepy/utils.py", line 19, in
os.mkdir(DIRS.user_data_dir)
FileNotFoundError: [Errno 2] No such file or directory: '/home/administrator/.config/iepy'

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

3 participants