I have a simple python script that depends on pandas. I need to package it with pex so it's executed without dependency installation.
import sys
import csv
import argparse
import pandas as pd
class myLogic():
def __init__(self):
pass
def loadData(self, data_file):
return pd.read_csv(data_file, delimiter="|")
#command line interaction interface
def processInputArguments(self,args):
parser = argparse.ArgumentParser(description="my logic")
#transactions file name
parser.add_argument('-td',
'--data',
type=str,
dest='data',
help='data file location'
)
options = parser.parse_args(args)
return vars(options)
def main(self):
options = self.processInputArguments(sys.argv[1:])
data_file = options["data"]
data = self.loadData(data_file)
print data.head()
if __name__ == '__main__':
ml = myLogic()
ml.main()
I am trying to use pex to do that, so I did the following:
pex pandas -e myprogram.myLogic:main -o test1.pex
But I am getting this error when running the generated pex file:
Traceback (most recent call last):
File ".bootstrap/_pex/pex.py", line 317, in execute
File ".bootstrap/_pex/pex.py", line 250, in _wrap_coverage
File ".bootstrap/_pex/pex.py", line 282, in _wrap_profiling
File ".bootstrap/_pex/pex.py", line 360, in _execute
File ".bootstrap/_pex/pex.py", line 418, in execute_entry
File ".bootstrap/_pex/pex.py", line 435, in execute_pkg_resources
File ".bootstrap/pkg_resources.py", line 2088, in load
ImportError: No module named myLogic
I also tried packaging with the -c (switch for script) using the following command:
pex pandas -c myprogram.py -o test2.pex
But also getting an error:
Traceback (most recent call last):
File "/usr/local/bin/pex", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/pex/bin/pex.py", line 509, in main
pex_builder = build_pex(reqs, options, resolver_options_builder)
File "/usr/local/lib/python2.7/dist-packages/pex/bin/pex.py", line 486, in build_pex
pex_builder.set_script(options.script)
File "/usr/local/lib/python2.7/dist-packages/pex/pex_builder.py", line 214, in set_script
script, ', '.join(self._distributions)))
TypeError: sequence item 0: expected string, DistInfoDistribution found
The only option that worked for me up until now is creating an interpreter with pex that includes pandas and then shipping it with the python script. This can be done as follows:
pex pandas -o my_interpreter.pex
But this fails when the building python version is UCS4 and the version to run with is UCS2
Related
I'm trying to upload some files to annotate and train inside AutoMl to extract entities. But I have been receiving errors in the process. For example When I used PDF files, and create the JSONL files with their corresponding CSV file I hadn't problems, but after that I applied OCR in some scanned documents, I followed the guide and I used this script:
https://cloud.google.com/natural-language/automl/docs/scripts/input_helper_v2.py?_gac=1.88279529.1589302044.CjwKCAjwkun1BRAIEiwA2mJRWeRJRDpqVkcxBu3um5PTXjp1KaVgPITbHqK9OunNca4lrI_MlZfVthoC748QAvD_BwE&_ga=2.177424421.-1405970329.1585427512
I installed python 2.7 in new anaconda environment, finally when I try to use this script, it is not working for me.
Uploading 57 files (including csv and local PDF files) to gs://mybucket ...
Traceback (most recent call last):
File "C:\Users\USUARIO\Anaconda3\envs\jsonl\Scripts\gsutil-script.py", line 5, in
from gslib.__main__ import main
File "C:\Users\USUARIO\Anaconda3\envs\jsonl\lib\site-packages\gslib__main__.py", line 66, in
import httplib2
File "C:\Users\USUARIO\Anaconda3\envs\jsonl\lib\site-packages\httplib2__init__.py", line 482
print("%s:" % h, end=" ", file=self._fp)
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "input_helper_v2.py", line 686, in
main()
File "input_helper_v2.py", line 678, in main
UploadFiles(annotated_files, FLAGS.target_gcs_directory)
File "input_helper_v2.py", line 651, in UploadFiles
subprocess.check_call(cmd, shell=True)
File "C:\Users\USUARIO\Anaconda3\envs\jsonl\lib\subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'gsutil -m cp c:\users\usuario\appdata\local\temp\tmprxwqnj\analisis_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\c_kredit_parte_2.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\c_av_villas_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\cifin_parte_4.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\secretaria_popayan_parte_6.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\fiduprevisora_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\entrevista_parte_2.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\data_credito_mini_parte_2.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\c_kredit_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\c_colpatria_parte_2.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\secretaria_popayan_parte_5.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\fopep_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\c_ck_tr_parte_4.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\apc_parte_2.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\secretaria_popayan_parte_7.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\c_ck_tr_parte_5.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\secretaria_popayan_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\data_credito_mini_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\terminacion_proceso_embargo_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\secretaria_popayan_parte_10.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\cifin_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\apc_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\entrevista_parte_3.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\c_av_villas_parte_3.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\fomaq_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\data_credito_mini_parte_3.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\secretaria_popayan_parte_3.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\cifin_parte_3.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\secretaria_parte_2.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\c_av_villas_parte_4.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\entrevista_parte_4.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\c_ck_tr_parte_2.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\c_colpatria_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\c_kredit_parte_3.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\c_gnb_parte_2.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\secretaria_popayan_parte_9.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\soporte_pago_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\entrevista_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\secretaria_popayan_parte_2.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\c_gnb_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\c_av_villas_parte_2.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\colpensiones_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\cedulas_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\secretaria_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\c_ck_tr_parte_3.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\paz_y_salvo_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\levantamiento_embargo_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\secretaria_parte_3.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\secretaria_popayan_parte_8.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\secretaria_popayan_parte_4.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\ape_parte1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\c_ck_tr_parte_1.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\analisis_parte_2.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\cifin_parte_2.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\cifin_parte_5.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\data_credito_mini_parte_4.jsonl c:\users\usuario\appdata\local\temp\tmprxwqnj\dataset.csv gs://mybucket' returned non-zero exit status 1
If someone could help, I'll be grateful...
I've just installed pychecker on windows 7 Pro using "python setup.py install". When I run it on my script using the command:
c:\Python26\Scripts\pychecker -#100 finaltest17.py
I get the following error/traceback:
C:\Users\....\ToBeReleased>C:\Python26\python.exe C:\Python26\Lib\site-packages\pychecker\checker.py -#100 finaltest17.py
Processing module finaltest17 (finaltest17.py)...
Caught exception importing module finaltest17:
File "C:\Python26\Lib\site-packages\pychecker\pcmodules.py", line 533, in setupMainCode()
self.moduleName, self.moduleDir)
File "C:\Python26\Lib\site-packages\pychecker\pychecker\utils.py", line 184, in findModule()
handle, filename, smt = _q_find_module(p, path)
File "C:\Python26\Lib\site-packages\pychecker\pychecker\utils.py", line 162, in _q_find_module()
if not cfg().quixote:
File "C:\Python26\Lib\site-packages\pychecker\pychecker\utils.py", line 39, in cfg()
return _cfg[-1]
IndexError: list index out of range
Traceback (most recent call last):
File "C:\Python26\Lib\site-packages\pychecker\checker.py", line 364, in <module>
sys.exit(main(sys.argv))
File "C:\Python26\Lib\site-packages\pychecker\checker.py", line 337, in main
importWarnings = processFiles(files, _cfg, _print_processing)
File "C:\Python26\Lib\site-packages\pychecker\checker.py", line 270, in processFiles
loaded = pcmodule.load()
File "C:\Python26\Lib\site-packages\pychecker\pcmodules.py", line 477, in load
return utils.cfg().ignoreImportErrors
File "C:\Python26\Lib\site-packages\pychecker\pychecker\utils.py", line 39, in cfg
return _cfg[-1]
IndexError: list index out of range
If anyone could point me in the right direction that would be great.
Thanks
Stewart
Problem resolved.
I found the following support request on SourceForge which refers to a need to use short format (8.3) path and filenames in pychecker.bat and not long format as is allowed in newer versions of Windows.
https://sourceforge.net/p/pychecker/support-requests/7/#96cb
I had a problem when I use spark-submit to run a python file.When the 'map' code run in 'executor', the problem like this :
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 151, in _run_module_as_main
mod_name, loader, code, fname = _get_module_details(mod_name)
File "/usr/lib64/python2.7/runpy.py", line 101, in _get_module_details
loader = get_loader(mod_name)
File "/usr/lib64/python2.7/pkgutil.py", line 464, in get_loader
return find_loader(fullname)
File "/usr/lib64/python2.7/pkgutil.py", line 474, in find_loader
for importer in iter_importers(fullname):
File "/usr/lib64/python2.7/pkgutil.py", line 430, in iter_importers
__import__(pkg)
File "/data8/yarn/local-dir/usercache/bo.feng/appcache/application_1448854352032_70810/container_1448854352032_70810_01_000002/pyspark.zip/pyspark/__init__.py", line 41, in <module>
File "/data8/yarn/local-dir/usercache/bo.feng/appcache/application_1448854352032_70810/container_1448854352032_70810_01_000002/pyspark.zip/pyspark/context.py", line 35, in <module>
File "/data8/yarn/local-dir/usercache/bo.feng/appcache/application_1448854352032_70810/container_1448854352032_70810_01_000002/pyspark.zip/pyspark/rdd.py", line 51, in <module>
File "/data8/yarn/local-dir/usercache/bo.feng/appcache/application_1448854352032_70810/container_1448854352032_70810_01_000002/pyspark.zip/pyspark/shuffle.py", line 33, in <module>
File "build/bdist.linux-x86_64/egg/psutil/__init__.py", line 89, in <module>
File "build/bdist.linux-x86_64/egg/psutil/_pslinux.py", line 24, in <module>
File "build/bdist.linux-x86_64/egg/_psutil_linux.py", line 7, in <module>
File "build/bdist.linux-x86_64/egg/_psutil_linux.py", line 4, in __bootstrap__
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 945, in resource_filename
self, resource_name
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1633, in get_resource_filename
self._extract_resource(manager, self._eager_to_zip(name))
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1661, in _extract_resource
self.egg_name, self._parts(zip_path)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1025, in get_cache_path
self.extraction_error()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 991, inextraction_error
raise err
pkg_resources.ExtractionError: Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the Python egg
cache:
[Errno 13] Permission denied: '/home/.python-eggs'
The Python egg cache directory is currently set to:
/home/.python-eggs
Perhaps your account does not have write access to this directory? You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.
I set the PYTHON_EGG_CACHE environment variable to every executor,and I also write 'os.environ['PYTHON_EGG_CACHE'] = "/tmp/"' in my program,but the problem is still happen.
My code :
import os,sys
print "env::::"+os.environ['PYTHON_EGG_CACHE']
from pyspark import SparkConf, SparkContext
# Load and parse the data
def parsePoint(line):
import os
print "env::::"+os.environ['PYTHON_EGG_CACHE']
os.environ['PYTHON_EGG_CACHE'] = "/tmp/"
values = [float(x) for x in line.split(' ')]
return line
if __name__ == "__main__":
os.environ['PYTHON_EGG_CACHE'] = "/tmp/"
print "env::::"+os.environ['PYTHON_EGG_CACHE']
conf = SparkConf()
sc = SparkContext(conf = conf)
data = sc.textFile(sys.argv[1])
parsedData = data.map(parsePoint)
parsedData.collect()
I run this python program in 'standalone' model and succeeded.
This is my submit command:
spark-submit --name test_py --master yarn-client testpy.py input/sample_svm_data.txt
Is the yarn's problem?
This is late, but it's the first result # google I found with this problem... the previous answer is helpful (i wanted to know which env vars I had to modify), but please DONT modify editing Spark sources, just change environment variables using the proper tools, add this to your spark.conf variables...
spark.executorEnv.PYTHON_EGG_CACHE="./.python-eggs/"
spark.executorEnv.PYTHON_EGG_DIR="./.python-eggs/"
spark.driverEnv.PYTHON_EGG_CACHE="./.python-eggs/"
spark.driverEnv.PYTHON_EGG_DIR="./.python-eggs/"
(I prefer not to use /tmp/ because . will get deleted after my job ends, so eggs should disappear too IMO)
I solved this problem:
unzip the pyspark.zip then find rdd.py file
open this file , under "import os" line ,add code as :
os.environ['PYTHON_EGG_CACHE'] = '/tmp/.python-eggs/'
os.environ['PYTHON_EGG_DIR']='/tmp/.python-eggs/'
save file and zip pyspark
I solved this problem with the help from BiS's answer. By adding the four configuration values when running spark-submit, it fixed the egg problem.
Here's an example of what adding the four parameters looks like when using spark-submit.
spark-submit \
--conf spark.executorEnv.PYTHON_EGG_CACHE="./.python-eggs/" \
--conf spark.executorEnv.PYTHON_EGG_DIR="./.python-eggs/" \
--conf spark.driverEnv.PYTHON_EGG_CACHE="./.python-eggs/" \
--conf spark.driverEnv.PYTHON_EGG_DIR="./.python-eggs/" \
I'm installing Caffe on an Ubuntu 14.04 virtual server with CUDA installed (without driver) using https://github.com/BVLC/caffe/wiki/Ubuntu-14.04-VirtualBox-VM as inspiration. I've installed all the necessary dependencies and have followed all the instructions step by step but get the error below when I try to test the installation.
In regards to the step:
" Modify python/classify.py to add the --print_results option"
I had amended the code via in classify.py to be identical to the official caffe distribution. Not sure if that is the step that is causing the problem but thought I'd add that extra piece of information just in case.
The error i get is as below:
vagrant#vagrant-ubuntu-trusty-64:~/caffe$ sudo python python/classify.py --print_results examples/images/cat.jpg foo
libdc1394 error: Failed to initialize libdc1394
Traceback (most recent call last):
File "python/classify.py", line 14, in <module>
import caffe
File "/home/vagrant/caffe/python/caffe/__init__.py", line 1, in <module>
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
File "/home/vagrant/caffe/python/caffe/pycaffe.py", line 15, in <module>
import caffe.io
File "/home/vagrant/caffe/python/caffe/io.py", line 2, in <module>
import skimage.io
File "/usr/local/lib/python2.7/dist-packages/skimage/io/__init__.py", line 15, in <module>
reset_plugins()
File "/usr/local/lib/python2.7/dist-packages/skimage/io/manage_plugins.py", line 89, in reset_plugins
_load_preferred_plugins()
File "/usr/local/lib/python2.7/dist-packages/skimage/io/manage_plugins.py", line 69, in _load_preferred_plugins
_set_plugin(p_type, preferred_plugins['all'])
File "/usr/local/lib/python2.7/dist-packages/skimage/io/manage_plugins.py", line 81, in _set_plugin
use_plugin(plugin, kind=plugin_type)
File "/usr/local/lib/python2.7/dist-packages/skimage/io/manage_plugins.py", line 251, in use_plugin
_load(name)
File "/usr/local/lib/python2.7/dist-packages/skimage/io/manage_plugins.py", line 295, in _load
fromlist=[modname])
File "/usr/local/lib/python2.7/dist-packages/skimage/io/_plugins/matplotlib_plugin.py", line 4, in <module>
import matplotlib.pyplot as plt
File "/usr/local/lib/python2.7/dist-packages/matplotlib/__init__.py", line 1131, in <module>
rcParams = rc_params()
File "/usr/local/lib/python2.7/dist-packages/matplotlib/__init__.py", line 975, in rc_params
return rc_params_from_file(fname, fail_on_error)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/__init__.py", line 1100, in rc_params_from_file
config_from_file = _rc_params_in_file(fname, fail_on_error)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/__init__.py", line 1018, in _rc_params_in_file
with _open_file_or_url(fname) as fd:
File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/usr/local/lib/python2.7/dist-packages/matplotlib/__init__.py", line 1000, in _open_file_or_url
encoding = locale.getdefaultlocale()[1]
File "/usr/lib/python2.7/locale.py", line 543, in getdefaultlocale
return _parse_localename(localename)
File "/usr/lib/python2.7/locale.py", line 475, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
Any input would be greatly appreciated. Thank you.
Check your current shell environment, these variables: LC_ALL, LC_CTYPE, LANG, LANGUAGE:
set | grep -a '^LC_ALL=.'; set | grep -a '^LC_CTYPE=.';
set | grep -a '^LANG=.'; set | grep -a '^LANGUAGE=.'
Likely the first printed line will contain one of these variables equal to 'UTF-8'. This is wrong.
A proper locale should have language and optional country and encoding specification, like 'en' or 'en_US' or 'ru_RU.UTF-8'. There's a special locale 'C' used as fallback.
So you may redefine your locale permanently in /etc/default/locale (don't forget to reload your settings, the easiest way is to logoff/logon), or simply override it for a particular command:
> LC_ALL=C python python/classify.py --print_results examples/images/cat.jpg foo
Regarding libdc1394: if you don't need interaction with FireWire check ctypes error: libdc1394 error: Failed to initialize libdc1394
If i create a new theme, i become a Traceback:
../bin/paster create -t gomobile_theme gomobiletheme.mytheme
...
Traceback (most recent call last):
File "../bin/paster", line 275, in <module>
paste.script.command.run()
File "/opt/plone4/plone4/eggs/PasteScript-1.7.5-py2.6.egg/paste/script/command.py", line 104, in run
invoke(command, command_name, options, args[1:])
File "/opt/plone4/plone4/eggs/PasteScript-1.7.5-py2.6.egg/paste/script/command.py", line 143, in invoke
exit_code = runner.run(args)
File "/opt/plone4/plone4/eggs/PasteScript-1.7.5-py2.6.egg/paste/script/command.py", line 238, in run
result = self.command()
File "/opt/plone4/plone4/eggs/PasteScript-1.7.5-py2.6.egg/paste/script/create_distro.py", line 170, in command
egg_info_dir = pluginlib.egg_info_dir(output_dir, dist_name)
File "/opt/plone4/plone4/eggs/PasteScript-1.7.5-py2.6.egg/paste/script/pluginlib.py", line 135, in egg_info_dir
% ', '.join(all))
IOError: No egg-info directory found (looked in ./gomobiletheme.mytheme/./gomobiletheme.mytheme.egg-info, ./gomobiletheme.mytheme/setup.cfg/gomobiletheme.mytheme.egg-info, ./gomobiletheme.mytheme/docs/gomobiletheme.mytheme.egg-info, ./gomobiletheme.mytheme/README.txt/gomobiletheme.mytheme.egg-info, ./gomobiletheme.mytheme/gomobiletheme/gomobiletheme.mytheme.egg-info, ./gomobiletheme.mytheme/src/gomobiletheme.mytheme.egg-info, ./gomobiletheme.mytheme/setup.py/gomobiletheme.mytheme.egg-info, ./gomobiletheme.mytheme/CONTRIBUTORS.txt/gomobiletheme.mytheme.egg-info, ./gomobiletheme.mytheme/CHANGES.txt/gomobiletheme.mytheme.egg-info)
Then I added my theme to buildout.cfg, reran it become a error like this:
bin/buildout
Develop: '/opt/plone4/plone4/src/gomobiletheme.mytheme'
error in gomobiletheme.mytheme setup command: Distribution
contains no modules or packages for namespace package 'gomobiletheme'
While:
Installing.
Processing develop directory '/opt/plone4/plone4/src/
gomobiletheme.mytheme'.
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/opt/plone4/plone4/eggs/zc.buildout-1.4.3-py2.6.egg/zc/
buildout/buildout.py", line 1660, in main
getattr(buildout, command)(args)
File "/opt/plone4/plone4/eggs/zc.buildout-1.4.3-py2.6.egg/zc/
buildout/buildout.py", line 394, in install
installed_develop_eggs = self._develop()
File "/opt/plone4/plone4/eggs/zc.buildout-1.4.3-py2.6.egg/zc/
buildout/buildout.py", line 634, in _develop
zc.buildout.easy_install.develop(setup, dest)
File "/opt/plone4/plone4/eggs/zc.buildout-1.4.3-py2.6.egg/zc/
buildout/easy_install.py", line 895, in develop
*args) == 0
AssertionError
Know anyone whats wrong?
I think this is caused by the template you are using. Perhaps it is outdated.
Check if your setup.py looks like this:
packages=find_packages('src'),
namespace_packages=['gomobiletheme'],
But you need an additional:
package_dir = {'': 'src'},
directive to get the buildout working again.