Closed mabodo closed 6 years ago
When doing import pyflux I'm getting the message:
import pyflux
No such file or directory: '/usr/local/lib/python3.5/site-packages/scipy-0.19.0.dist-info/METADATA'
My version of pyflux is 0.4.15 My version of scipy is 1.0.0
full traceback:
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py in _dep_map(self) 2915 return self._pkg_info -> 2916 except AttributeError: 2917 metadata = self.get_metadata(self.PKG_INFO) /usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py in __getattr__(self, attr) 2726 return "%s %s" % (self.project_name, version) -> 2727 2728 def __getattr__(self, attr): AttributeError: _DistInfoDistribution__dep_map During handling of the above exception, another exception occurred: AttributeError Traceback (most recent call last) /usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py in _parsed_pkg_info(self) 2906 w/metadata, .dist-info style. -> 2907 """ 2908 PKG_INFO = 'METADATA' /usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py in __getattr__(self, attr) 2726 return "%s %s" % (self.project_name, version) -> 2727 2728 def __getattr__(self, attr): AttributeError: _pkg_info During handling of the above exception, another exception occurred: FileNotFoundError Traceback (most recent call last) <ipython-input-3-288b913a432c> in <module>() 2 from sqlalchemy import create_engine 3 import sqlalchemy ----> 4 import pyflux as pf 5 from string import ascii_letters 6 import numpy as np /usr/local/lib/python3.5/site-packages/pyflux/__init__.py in <module>() 12 from . import __check_build 13 ---> 14 from .arma import * 15 from .var import * 16 from .ensembles import * /usr/local/lib/python3.5/site-packages/pyflux/arma/__init__.py in <module>() ----> 1 from .arma import ARIMA 2 from .arimax import ARIMAX 3 from .nnar import NNAR /usr/local/lib/python3.5/site-packages/pyflux/arma/arma.py in <module>() 11 from .. import output as op 12 from .. import tests as tst ---> 13 from .. import tsm as tsm 14 from .. import data_check as dc 15 /usr/local/lib/python3.5/site-packages/pyflux/tsm.py in <module>() 9 import numpy as np 10 from scipy import optimize ---> 11 import numdifftools as nd 12 import pandas as pd 13 /usr/local/lib/python3.5/site-packages/numdifftools/__init__.py in <module>() 6 from numpy.testing import Tester 7 try: ----> 8 __version__ = pkg_resources.get_distribution(__name__).version 9 except pkg_resources.DistributionNotFound: 10 __version__ = 'unknown' /usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py in get_distribution(dist) 560 """Return a current distribution object for a Requirement or string""" 561 if isinstance(dist, six.string_types): --> 562 dist = Requirement.parse(dist) 563 if isinstance(dist, Requirement): 564 dist = get_provider(dist) /usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py in get_provider(moduleOrReq) 434 """Return an IResourceProvider for the named module or requirement""" 435 if isinstance(moduleOrReq, Requirement): --> 436 return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0] 437 try: 438 module = sys.modules[moduleOrReq] /usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py in require(self, *requirements) 979 thereof, specifying the distributions and versions required. The 980 return value is a sequence of the distributions that needed to be --> 981 activated to fulfill the requirements; all relevant distributions are 982 included, even if they were already activated in this working set. 983 """ /usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py in resolve(self, requirements, env, installer, replace_conflicting, extras) 873 # Oops, the "best" so far conflicts with a dependency 874 dependent_req = required_by[req] --> 875 raise VersionConflict(dist, req).with_context(dependent_req) 876 877 # push the new requirements onto the stack /usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py in requires(self, extras) 2669 extra = safe_extra(extra) or None 2670 dm.setdefault(extra, []).extend(parse_requirements(reqs)) -> 2671 return dm 2672 2673 def requires(self, extras=()): /usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py in _dep_map(self) 2916 except AttributeError: 2917 metadata = self.get_metadata(self.PKG_INFO) -> 2918 self._pkg_info = email.parser.Parser().parsestr(metadata) 2919 return self._pkg_info 2920 /usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py in _compute_dependencies(self) 2925 except AttributeError: 2926 self.__dep_map = self._compute_dependencies() -> 2927 return self.__dep_map 2928 2929 def _compute_dependencies(self): /usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py in _parsed_pkg_info(self) 2907 """ 2908 PKG_INFO = 'METADATA' -> 2909 EQEQ = re.compile(r"([\(,])\s*(\d.*?)\s*([,\)])") 2910 2911 @property /usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py in get_metadata(self, name) 1484 def has_resource(self, resource_name): 1485 return self._has(self._fn(self.module_path, resource_name)) -> 1486 1487 def has_metadata(self, name): 1488 return self.egg_info and self._has(self._fn(self.egg_info, name)) /usr/local/lib/python3.5/site-packages/pkg_resources/__init__.py in _get(self, path) 1593 return os.path.exists(path) 1594 -> 1595 def _isdir(self, path): 1596 return os.path.isdir(path) 1597 FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.5/site-packages/scipy-0.19.0.dist-info/METADATA'
The problem magically stopped happening :)
When doing
import pyflux
I'm getting the message:No such file or directory: '/usr/local/lib/python3.5/site-packages/scipy-0.19.0.dist-info/METADATA'
My version of pyflux is 0.4.15 My version of scipy is 1.0.0
full traceback: