while creating new product i got error "No egg-info directory found " on plone4.3
oomsys@oomsysmob-7:~/brundel/src$ ../bin/zopeskel plone_basic bdr.theme
plone_basic: A project for Plone products
This creates a package for a basic Plone add-on project, with a
single namespace (like Products.PloneFormGen). To create a package
with a nested namespace use the plone_nested_addon template. If
you are trying to create a Plone *site* you want to use one of the
installers from plone.org or the ploneX_buildout (where x is the
major version of Plone you wish to use)
To create a Plone project with a name like 'plone.app.myproject'
(2 dots, a 'nested namespace'), use the 'plone_app' template.
If at any point, you need additional help for a question, you can enter
'?' and press RETURN.
Expert Mode? (What question mode would you like? (easy/expert/all)?) ['easy']: easy
Version (Version number for project) ['1.0']: 1.0
Description (One-line description of the project) ['']:
Register Profile (Should this package register a GS Profile) [False]: yes
Creating directory ./bdr.theme
Replace 1019 bytes with 1123 bytes (0/43 lines changed; 3 lines added)
Replace 0 bytes with 119 bytes (0/0 lines changed; 5 lines added)
Traceback (most recent call last):
File "../bin/zopeskel", line 21, in <module>
sys.exit(templer.core.zopeskel_script.run())
File "/home/oomsys/brundel/eggs/templer.core-1.0b3-core/zopeskel_script.py", line 398, in run
command.run( [ '-q', '-t', template_name ] + optslist )
File "/home/oomsys/brundel/eggs/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 238, in run
result = self.command()
File "/home/oomsys/brundel/eggs/PasteScript-1.7.5-py2.7.egg/paste/script/create_distro.py", line 170, in command
egg_info_dir = pluginlib.egg_info_dir(output_dir, dist_name)
File "/home/oomsys/brundel/eggs/PasteScript-1.7.5-py2.7.egg/paste/script/pluginlib.py", line 135, in egg_info_dir
% ', '.join(all))
IOError: No egg-info directory found (looked in ./bdr.theme/./bdr.theme.egg-info, ./bdr.theme/CONTRIBUTORS.txt/bdr.theme.egg-info, ./bdr.theme/src/bdr.theme.egg-info, ./bdr.theme/setup.py/bdr.theme.egg-info, ./bdr.theme/README.txt/bdr.theme.egg-info, ./bdr.theme/docs/bdr.theme.egg-info, ./bdr.theme/CHANGES.txt/bdr.theme.egg-info, ./bdr.theme/buildout.cfg/bdr.theme.egg-info, ./bdr.theme/bootstrap.py/bdr.theme.egg-info)
bdr.theme is my new product when i tried to create new product using this command ../bin/zopeskel plone_basic bdr.theme i got IOERROR(no egg info directory).so any one can answer this question
Answer
The error you're encountering, IOError: No egg-info directory found
, indicates that the zopeskel
tool was unable to find the expected .egg-info
directory in the newly created bdr.theme
directory.
This error can happen for a couple of reasons, often related to a misconfiguration in the package creation process. Here's how you can address it:
1. Check the Environment and Dependencies
Ensure that your environment is properly set up with all the necessary dependencies for your project. You may be using an old or incompatible version of the tools. It’s also possible that zopeskel
and its dependencies (templer.core
, PasteScript
, etc.) are not compatible with your current environment.
- Make sure you're using Python 2.7 (as
zopeskel
might require it). - Try updating the relevant dependencies:
easy_install -U zopeskel templer.core PasteScript
2. Inspect the Template
The issue might also be related to how the template plone_basic
is set up. Specifically, zopeskel
is looking for an .egg-info
directory, which should be generated by the package during its creation process, but it appears to be missing.
- Check that the
plone_basic
template is properly installed. The template may not be properly configured or could be corrupted. - Try running the command with a different template (e.g.,
plone_app
orplone_nested_addon
) to see if the issue persists.
3. Manual Fix for the .egg-info
Directory
If the .egg-info
directory is indeed missing (which is typically created during the setup process), you can attempt to manually generate it.
- Try running the following in the
bdr.theme
directory after creation:
This should create thepython setup.py egg_info
.egg-info
directory, which contains metadata about the package. After doing this, try running thezopeskel
command again.
4. Check File Permissions
Sometimes, this kind of error can occur if there are file permission issues, preventing zopeskel
from creating the required directories or files.
- Make sure you have the correct file permissions to write in the
bdr.theme
directory:chmod -R 755 ./bdr.theme
5. Clean Up and Retry
Sometimes, cleaning the workspace and retrying can resolve the issue:
- Delete the
bdr.theme
directory and try running the command again:rm -rf ./bdr.theme ../bin/zopeskel plone_basic bdr.theme
6. Check for Python Version Compatibility
It looks like you're using Python 2.7 based on the paths in the error (py2.7
). Ensure that the tools you're using are compatible with Python 2.7, as some of the Plone tooling (especially older versions) might not work with Python 3.x.
7. Consult the Documentation and Logs
Finally, if the issue persists, check the documentation for zopeskel
and related tools to verify if there are any version-specific changes or issues. You can also enable debugging or verbosity when running the command to get more detailed logs.
Summary
The error you're seeing is due to a missing .egg-info
directory. Try updating your dependencies, running python setup.py egg_info
, and verifying that your environment is correctly set up. If that doesn’t solve the problem, consider cleaning up the workspace and retrying the setup process.