Hi, I try to build an msi with cx_freexe on python 3.4.3. everything seem
to build fine and I can install the msi, but as soon as the app imports
swiftclient it throws the error below.

Is this possibly because the actual module name is called "swiftclient" but
the python package is called python-swiftclient ?

This person seesm to have a similar error message but it is a different
package
http://stackoverflow.com/questions/31861743/pkg-resources-distributionnotfound-setuptools-when-using-cx-freeze

The build log is attached (No, I removed the log because it was too big )

Thansk much for your help


Error:
___________________________________________________________

raceback (most recent call last):
File "c:\Python\Python34\lib\site-packages\swiftclient\version.py", line
23, in
pkg_resources.Requirement.parse('python-swiftclient')).version
File "c:\Python\Python34\lib\site-packages\pkg_resources__init__.py", line
392, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "c:\Python\Python34\lib\site-packages\pkg_resources__init__.py", line
918, in require
needed = self.resolve(parse_requirements(requirements))
File "c:\Python\Python34\lib\site-packages\pkg_resources__init__.py", line
805, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: python-swiftclient

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\Python\Python34\lib\site-packages\pbr\version.py", line 432, in
get_version_from_pkg_resources
provider = pkg_resources.get_provider(requirement)
File "c:\Python\Python34\lib\site-packages\pkg_resources__init_.py", line
392, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "c:\Python\Python34\lib\site-packages\pkg_resources__init__.py", line
918, in require
needed = self.resolve(parse_requirements(requirements))
File "c:\Python\Python34\lib\site-packages\pkg_resources__init__.py", line
805, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: python-swiftclient

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File
"c:\Python\Python34\lib\site-packages\cx_Freeze\initscripts\Console.py",
line 27, in
exec(code, m.dict)
File "swift.py", line 20, in
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2237, in
find_and_load
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2212, in
find_and_load_unlocked
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 321, in
_call_with_frames_removed
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2237, in
_find_and_load
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2226, in
_find_and_load_unlocked
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 1191, in
_load_unlocked
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 1161, in
_load_backward_compatible
File "c:\Python\Python34\lib\site-packages\swiftclient__init.py", line 20,
in
from .client import *
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2237, in
find_and_load
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2226, in
find_and_load_unlocked
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 1191, in
_load_unlocked
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 1161, in
_load_backward_compatible
File "c:\Python\Python34\lib\site-packages\swiftclient\client.py", line 32,
in
from swiftclient import version as swiftclient_version
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2284, in
_handle_fromlist
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 321, in
_call_with_frames_removed
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2237, in
_find_and_load
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2226, in
_find_and_load_unlocked
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 1191, in
_load_unlocked
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 1161, in
_load_backward_compatible
File "c:\Python\Python34\lib\site-packages\swiftclient\version.py", line
28, in
version_string = str(pbr.version.VersionInfo('python-swiftclient'))
File "c:\Python\Python34\lib\site-packages\pbr\version.py", line 416, in
__str
return self.version_string()
File "c:\Python\Python34\lib\site-packages\pbr\version.py", line 457, in
version_string
return self.semantic_version().brief_string()
File "c:\Python\Python34\lib\site-packages\pbr\version.py", line 452, in
semantic_version
self._semantic = self._get_version_from_pkg_resources()
File "c:\Python\Python34\lib\site-packages\pbr\version.py", line 438, in
_get_version_from_pkg_resources
from pbr import packaging
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2284, in
_handle_fromlist
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 321, in
_call_with_frames_removed
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2237, in
_find_and_load
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2226, in
_find_and_load_unlocked
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 1191, in
_load_unlocked
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 1161, in
_load_backward_compatible
File "c:\Python\Python34\lib\site-packages\pbr\packaging.py", line 32, in
from setuptools.command import develop
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2284, in
_handle_fromlist
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 321, in
_call_with_frames_removed
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2237, in
_find_and_load
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2226, in
_find_and_load_unlocked
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 1191, in
_load_unlocked
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 1161, in
_load_backward_compatible
File "c:\Python\Python34\lib\site-packages\setuptools\command\develop.py",
line 8, in
from setuptools.command.easy_install import easy_install
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2237, in
_find_and_load
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2226, in
_find_and_load_unlocked
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 1191, in
_load_unlocked
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 1161, in
_load_backward_compatible
File
"c:\Python\Python34\lib\site-packages\setuptools\command\easy_install.py",
line 43, in
from setuptools.sandbox import run_setup
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2237, in
_find_and_load
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 2226, in
_find_and_load_unlocked
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 1191, in
_load_unlocked
File "c:\Python\64-bit\3.4\lib\importlib_bootstrap.py", line 1161, in
_load_backward_compatible
File "c:\Python\Python34\lib\site-packages\setuptools\sandbox.py", line
353, in
_EXCEPTIONS.append(GetGeneratePath())
File "c:\Python\Python34\lib\site-packages\win32com\client\gencache.py",
line 131, in GetGeneratePath
assert not is_readonly, "Why do you want the genpath for a readonly store?"
AssertionError: Why do you want the genpath for a readonly store?
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to