GithubHelp home page GithubHelp logo

Comments (4)

Nifaste avatar Nifaste commented on September 15, 2024

Ooops, i found the problem.
I had python v3.7 installed and with python2.7 it's ok !
Sorry :s

from alignqc.

PertuyF avatar PertuyF commented on September 15, 2024

Just to mention, this could probably be solved using explicit relative imports for all the modules packed in AlignQC.

from __future__ import absolute_import  # Not necessary for python 2.6+

from . import analyze
# Or any other module at the same location as __file__

BTW, I would be interested by a Python 3 compatible version of alignQC, is the migration planned @jason-weirather?

from alignqc.

shaniAmare avatar shaniAmare commented on September 15, 2024

Hi,

I also get this same error still when trying to run AlignQC through Python 3.7.0. So guess it has not been fixed. Furthermore, when you said "I had python v3.7 installed and with python2.7 it's ok !" can you please explain whether you reinstalled AlignQC using python 2.7 or ran the already installed tool in python 2.7, @Nifaste? I can't seem to use the AlignQC version I installed through python 3.7.0 through python 2.7 when I use pip to install.

So I tried to install AlignQC using python 2.7.12 and I get the following set of errors:
pip install --user AlignQC

Traceback (most recent call last):
  File "/stornext/System/data/apps/python/python-2.7.12/bin/pip", line 6, in <module>
    from pip._internal import main
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_internal/__init__.py", line 40, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
    from pip._internal.cli import cmdoptions
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module>
    from pip._internal.models.search_scope import SearchScope
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_internal/models/search_scope.py", line 11, in <module>
    from pip._internal.utils.misc import normalize_path, redact_password_from_url
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_internal/utils/misc.py", line 21, in <module>
    from pip._vendor import pkg_resources
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3241, in <module>
    @_call_aside
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3225, in _call_aside
    f(*args, **kwargs)
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3254, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 574, in _build_master
    ws = cls()
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 567, in __init__
    self.add_entry(entry)
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 623, in add_entry
    for dist in find_distributions(entry, True):
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2056, in find_on_path
    for dist in factory(fullpath):
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2126, in distributions_from_metadata
    root, entry, metadata, precedence=DEVELOP_DIST,
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2583, in from_location
    py_version=py_version, platform=platform, **kw
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2985, in _reload_version
    md_version = self._get_version()
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2763, in _get_version
    version = _version_from_file(lines)
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2547, in _version_from_file
    line = next(iter(version_lines), '')
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2758, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1902, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/stornext/System/data/apps/python/python-2.7.12/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1888, in get_metadata
    with io.open(self.path, encoding='utf-8', errors="replace") as f:
IOError: [Errno 1] Operation not permitted: '/stornext/Home/data/.local/lib/python2.7/site-packages/mlpy-3.5.0-py2.7.egg-info'

How can this be solved @jason-weirather ? Would be great to hear your expert advice!

Thanks heaps,
Shani.

from alignqc.

shaniAmare avatar shaniAmare commented on September 15, 2024

OK, so this error seems to be gone when using the conda installation.

from alignqc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.