1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
(env) root@valet:/home/jenkins/workspace/remarkbox# cat env/lib/python2.7/site-packages/plaster_pastedeploy-0.7-py2.7.egg/EGG-INFO/entry_points.txt 
[plaster.loader_factory]
egg = plaster_pastedeploy:Loader
file+ini = plaster_pastedeploy:Loader
pastedeploy = plaster_pastedeploy:Loader
pastedeploy+egg = plaster_pastedeploy:Loader
pastedeploy+ini = plaster_pastedeploy:Loader

[plaster.wsgi_loader_factory]
egg = plaster_pastedeploy:Loader
file+ini = plaster_pastedeploy:Loader
pastedeploy = plaster_pastedeploy:Loader
pastedeploy+egg = plaster_pastedeploy:Loader
pastedeploy+ini = plaster_pastedeploy:Loader








>>> list(pkg_resources.iter_entry_points('plaster.loader_factory'))
[]








(env) root@valet:/home/jenkins/workspace/remarkbox# python
Python 2.7.17 (default, Nov  7 2019, 10:07:09) 
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkg_resources
>>> pkg_resources
KeyboardInterrupt
>>> pkg_resources.get_distribution('file')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jenkins/workspace/remarkbox/env/lib/python2.7/site-packages/pkg_resources/__init__.py", line 481, in get_distribution
    dist = get_provider(dist)
  File "/home/jenkins/workspace/remarkbox/env/lib/python2.7/site-packages/pkg_resources/__init__.py", line 357, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/home/jenkins/workspace/remarkbox/env/lib/python2.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/home/jenkins/workspace/remarkbox/env/lib/python2.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'file' distribution was not found and is required by the application







>>> entrypoints.get_group_all("plaster.loader_factory")
[EntryPoint('egg', u'plaster_pastedeploy', u'Loader', Distribution('plaster_pastedeploy', '0.7')), EntryPoint('file+ini', u'plaster_pastedeploy', u'Loader', Distribution('plaster_pastedeploy', '0.7')), EntryPoint('pastedeploy', u'plaster_pastedeploy', u'Loader', Distribution('plaster_pastedeploy', '0.7')), EntryPoint('pastedeploy+egg', u'plaster_pastedeploy', u'Loader', Distribution('plaster_pastedeploy', '0.7')), EntryPoint('pastedeploy+ini', u'plaster_pastedeploy', u'Loader', Distribution('plaster_pastedeploy', '0.7'))]


>>> entrypoints.get_group_all("plaster.wsgi_loader_factory")
[EntryPoint('egg', u'plaster_pastedeploy', u'Loader', Distribution('plaster_pastedeploy', '0.7')), EntryPoint('file+ini', u'plaster_pastedeploy', u'Loader', Distribution('plaster_pastedeploy', '0.7')), EntryPoint('pastedeploy', u'plaster_pastedeploy', u'Loader', Distribution('plaster_pastedeploy', '0.7')), EntryPoint('pastedeploy+egg', u'plaster_pastedeploy', u'Loader', Distribution('plaster_pastedeploy', '0.7')), EntryPoint('pastedeploy+ini', u'plaster_pastedeploy', u'Loader', Distribution('plaster_pastedeploy', '0.7'))]









env/lib/python2.7/site-packages/plaster-1.0-py2.7.egg/plaster/loaders.py:109: LoaderNotFound
_ ERROR at setup of AuthenticatedFunctionalTests.test_namespace_request_and_verification _

cls = <class 'remarkbox.test_views.AuthenticatedFunctionalTests'>

    @classmethod
    def setUpClass(cls):
        try:
            # Python 2.
>           FunctionalTests.setUpClass.im_func(cls)

remarkbox/test_views.py:156: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
remarkbox/test_views.py:41: in setUpClass
    cls.settings = get_appsettings("test.ini")
env/lib/python2.7/site-packages/pyramid-1.10.4-py2.7.egg/pyramid/paster.py:46: in get_appsettings
    loader = get_config_loader(config_uri)
env/lib/python2.7/site-packages/pyramid-1.10.4-py2.7.egg/pyramid/scripts/common.py:23: in get_config_loader
    return plaster.get_loader(config_uri, protocols=['wsgi'])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

config_uri = PlasterURL('file+ini://test.ini'), protocols = ['wsgi']

    def get_loader(config_uri, protocols=None):
        """
        Find a :class:`plaster.ILoader` object capable of handling ``config_uri``.
    
        :param config_uri: Anything that can be parsed by
            :func:`plaster.parse_uri`.
    
        :param protocols: Zero or more :term:`loader protocol` identifiers that
            the loader must implement to match the desired ``config_uri``.
    
        :returns: A :class:`plaster.ILoader` object.
        :raises plaster.LoaderNotFound: If no loader could be found.
        :raises plaster.MultipleLoadersFound: If multiple loaders match the
            requested criteria. If this happens, you can disambiguate the lookup
            by appending the package name to the scheme for the loader you wish
            to use. For example if ``ini`` is ambiguous then specify
            ``ini+myapp`` to use the ini loader from the ``myapp`` package.
    
        """
        config_uri = parse_uri(config_uri)
        requested_scheme = config_uri.scheme
    
        matched_loaders = find_loaders(requested_scheme, protocols=protocols)
    
        if len(matched_loaders) < 1:
>           raise LoaderNotFound(requested_scheme, protocols=protocols)
E           LoaderNotFound: Could not find a matching loader for the scheme "file+ini", protocol "wsgi".

env/lib/python2.7/site-packages/plaster-1.0-py2.7.egg/plaster/loaders.py:109: LoaderNotFound
______ ERROR at setup of AuthenticatedFunctionalTests.test_notifications _______

cls = <class 'remarkbox.test_views.AuthenticatedFunctionalTests'>

    @classmethod
    def setUpClass(cls):
        try:
            # Python 2.
>           FunctionalTests.setUpClass.im_func(cls)

remarkbox/test_views.py:156: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
remarkbox/test_views.py:41: in setUpClass
    cls.settings = get_appsettings("test.ini")
env/lib/python2.7/site-packages/pyramid-1.10.4-py2.7.egg/pyramid/paster.py:46: in get_appsettings
    loader = get_config_loader(config_uri)
env/lib/python2.7/site-packages/pyramid-1.10.4-py2.7.egg/pyramid/scripts/common.py:23: in get_config_loader
    return plaster.get_loader(config_uri, protocols=['wsgi'])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

config_uri = PlasterURL('file+ini://test.ini'), protocols = ['wsgi']

    def get_loader(config_uri, protocols=None):
        """
        Find a :class:`plaster.ILoader` object capable of handling ``config_uri``.
    
        :param config_uri: Anything that can be parsed by
            :func:`plaster.parse_uri`.
    
        :param protocols: Zero or more :term:`loader protocol` identifiers that
            the loader must implement to match the desired ``config_uri``.
    
        :returns: A :class:`plaster.ILoader` object.
        :raises plaster.LoaderNotFound: If no loader could be found.
        :raises plaster.MultipleLoadersFound: If multiple loaders match the
            requested criteria. If this happens, you can disambiguate the lookup
            by appending the package name to the scheme for the loader you wish
            to use. For example if ``ini`` is ambiguous then specify
            ``ini+myapp`` to use the ini loader from the ``myapp`` package.
    
        """
        config_uri = parse_uri(config_uri)
        requested_scheme = config_uri.scheme
    
        matched_loaders = find_loaders(requested_scheme, protocols=protocols)
    
        if len(matched_loaders) < 1:
>           raise LoaderNotFound(requested_scheme, protocols=protocols)
E           LoaderNotFound: Could not find a matching loader for the scheme "file+ini", protocol "wsgi".

env/lib/python2.7/site-packages/plaster-1.0-py2.7.egg/plaster/loaders.py:109: LoaderNotFound