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

Script 'scripts/easyaccess' not found in metadata #153

Closed
georgezch opened this issue Aug 30, 2018 · 9 comments
Closed

Script 'scripts/easyaccess' not found in metadata #153

georgezch opened this issue Aug 30, 2018 · 9 comments

Comments

@georgezch
Copy link

Tried to install using conda

georgez:~$ easyaccess
Traceback (most recent call last):
  File "/home/georgez/anaconda2/bin/easyaccess", line 4, in <module>
    __import__('pkg_resources').run_script('easyaccess==1.4.3', 'easyaccess')
  File "/home/georgez/anaconda2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 657, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/home/georgez/anaconda2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1428, in run_script
    .format(**locals()),
pkg_resources.ResolutionError: Script 'scripts/easyaccess' not found in metadata at '/home/georgez/anaconda2/lib/python2.7/site-packages/easyaccess-1.4.3.dist-info'
@kadrlica
Copy link
Collaborator

Thanks @georgezch. For reference, this was using:

conda install easyaccess==1.4.3 -c mgckind

on Ubuntu.

@mgckind
Copy link
Owner

mgckind commented Aug 30, 2018

I have a py2 test conda environment in Ubuntu but can't reproduce the problem,
my guess is that setuptools is not installed (or is old), I'd recommend to install or update conda, then create a new environment (either py2 or py3) and try installing it again.

@kadrlica
Copy link
Collaborator

The conda install should grab the necessary oracle libraries, right? I think @georgezch has tried an install into a fresh environment and is getting an oracle error.

@mgckind
Copy link
Owner

mgckind commented Aug 30, 2018

yes, it should. I'd recommend miniconda3 (and create a env with python2 if needed).

@georgezch
Copy link
Author

I tried using miniconda3 to create a python2 environment. Now I get the following message:

(py27) georgez:~$ easyaccess
Traceback (most recent call last):
  File "/home/georgez/miniconda3/envs/py27/bin/easyaccess", line 4, in <module>
    __import__('pkg_resources').run_script('easyaccess==1.4.3', 'easyaccess')
  File "/home/georgez/miniconda3/envs/py27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 658, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/home/georgez/miniconda3/envs/py27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1445, in run_script
    exec(script_code, namespace, namespace)
  File "/home/georgez/miniconda3/envs/py27/lib/python2.7/site-packages/easyaccess-1.4.3-py2.7.egg/EGG-INFO/scripts/easyaccess", line 2, in <module>
    # EASY-INSTALL-SCRIPT: 'easyaccess==1.4.3','easyaccess'
  File "/home/georgez/miniconda3/envs/py27/lib/python2.7/site-packages/easyaccess-1.4.3-py2.7.egg/easyaccess/__init__.py", line 1, in <module>
  File "/home/georgez/miniconda3/envs/py27/lib/python2.7/site-packages/easyaccess-1.4.3-py2.7.egg/easyaccess/easyaccess.py", line 9, in <module>
  File "build/bdist.linux-x86_64/egg/cx_Oracle.py", line 7, in <module>
  File "build/bdist.linux-x86_64/egg/cx_Oracle.py", line 6, in __bootstrap__
ImportError: libaio.so.1: cannot open shared object file: No such file or directory

@mgckind
Copy link
Owner

mgckind commented Aug 30, 2018

You need that extra ubuntu library, use this
sudo apt-get install libaio1
and try again :)

@georgezch
Copy link
Author

Okay, that was easy to fix! One more thing, now I get the following:

georgez:~$ easyaccess

Error in DES_SERVICES config file, creating a new one...
File might not exists or is not configured correctly


Adding section db-dessci to des_service file

Enter username : 

After I enter my username it asks for a password. What username/password combination am I supposed to use? I could not make it to work so far.

@kadrlica
Copy link
Collaborator

The username/password should be the same one you are using to login to confluence.

@mgckind
Copy link
Owner

mgckind commented Aug 31, 2018

yes, or send me an email if it doesn't then work.

@mgckind mgckind closed this as completed Aug 31, 2018
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