Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packaging Error #4

Closed
sorin-ionescu opened this issue Feb 2, 2011 · 16 comments
Closed

Packaging Error #4

sorin-ionescu opened this issue Feb 2, 2011 · 16 comments

Comments

@sorin-ionescu
Copy link

When I execute hyde on the console, I get the following error.

Traceback (most recent call last):
File "/usr/local/bin/hyde", line 8, in <module>
    load_entry_point('hyde==0.6.0', 'console_scripts', 'hyde')()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 271, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 2174, in load_entry_point
    return ep.load()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 1907, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/local/bin/main.py", line 5, in <module>
    pkg_resources.run_script('hyde==0.6.0', 'main.py')
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 442, in run_script
    self.require(requires)[0].run_script(script_name, ns)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 1160, in run_script
    execfile(script_filename, namespace, namespace)
File "/Library/Python/2.6/site-packages/hyde-0.6.0-py2.6.egg/EGG-INFO/scripts/main.py", line 6, in <module>
    from hyde.engine import Engine
File "/usr/local/bin/hyde.py", line 5, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 442, in run_script
    self.require(requires)[0].run_script(script_name, ns)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 620, in require
    needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 522, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (hyde 0.6.0 (/Library/Python/2.6/site-packages/hyde-0.6.0-py2.6.egg), Requirement.parse('hyde==0.5.3'))
@navilan
Copy link
Member

navilan commented Feb 2, 2011

From what I can read, it looks like the two versions you have installed are conflicting with each other in some manner. I will try to reproduce this error.

In the meantime, could you try to install hyde 0.6 in a virtualenv?

http://www.doughellmann.com/docs/virtualenvwrapper/install.html

@sorin-ionescu
Copy link
Author

As far as I can tell, it's been uninstalled, and as far I can see, there are no traces left of neither 0.5.3 nor the new version. I'm using Python 2.6.1. I have never installed both at the same time.

@navilan
Copy link
Member

navilan commented Feb 9, 2011

Hey,

Are you still getting this error?

@sorin-ionescu
Copy link
Author

I no longer do. But, hyde still does not work. Am I doing something wrong?

Downloads ❯ hyde -s test_site create -l test
23:23:20 hyde Creating site at [/Users/sorin/Downloads/test_site] with layout [None]
Traceback (most recent call last):
File "/usr/local/bin/hyde", line 8, in <module>
    load_entry_point('hyde==0.6.0', 'console_scripts', 'hyde')()
File "/Library/Python/2.6/site-packages/hyde-0.6.0-py2.6.egg/EGG-INFO/scripts/main.py", line 10, in main
    Engine().run()
File "build/bdist.macosx-10.6-universal/egg/commando.py", line 193, in run
File "/Library/Python/2.6/site-packages/hyde-0.6.0-py2.6.egg/hyde/engine.py", line 64, in create
    " layouts" % HYDE_DATA)
hyde.exceptions.HydeException: The given layout is invalid. Please check if you have the `layout` in the right place and the environment variable(HYDE_DATA) has been setup properly if you are using custom path for layouts
Downloads ❯ 

@navilan
Copy link
Member

navilan commented Feb 9, 2011

Looks like you are facing the same issue as mentioned here:
https://groups.google.com/d/msg/hyde-dev/KhQ70ggbMyI/9ZwgwO38TokJ

I still don't know how this situation is created, but the fix is to reinstall hyde.

@sorin-ionescu
Copy link
Author

My first installation of hyde failed because argparse was not installed. Though hyde has it as a dependency, commando, which depends on it does not. I simply ran python setup.py install on hyde again after I installed argparse. I did not uninstall everything to start over.

@navilan
Copy link
Member

navilan commented Feb 9, 2011

I see:

I was assuming it was a different issue because of this statement in the issue log:
'Requirement.parse('hyde==0.5.3'))'


Anyway, I will update commando to include argparse as a dependency (it was intended as python 2.7 package where argparse is part of python).

https://github.com/lakshmivyas/commando/issues/#issue/1


The layout = None issue seemed to be because of a installation problem as well (as mandaris in the above linked thread seemed to suggest). I think this may be because of a python setup.py install versus pip install -e option. I will dig deeper to see where the issue is.

@luckypoem
Copy link

hi.

i also met the error:

pkg_resources.VersionConflict: (hyde 0.8.8 (/usr/local/lib/python2.7/site-packages/hyde-0.8.8-py2.7.egg), Requirement.parse('hyde==0.5.3'))

how to fix it?

@navilan
Copy link
Member

navilan commented Dec 1, 2013

@luckypoem - What command did you use to install hyde? (Looks like your requirements.txt has an older version in it?

@luckypoem
Copy link

hi.
wether i use "pip install hyde" or cloned the sourcecode and then "pip install -r requirements.txt",then
"python setup.py install", then when i run "hyde -h",i always met the above error.why?
how to fix this issue?it's really weird.
the python modules' version in https://github.com/hyde/hyde/blob/master/requirements.txt is up to the installation requirement,right?

@navilan
Copy link
Member

navilan commented Dec 2, 2013

@luckypoem - I just installed hyde (pip install hyde) on a clean virtualenv and it went through properly. Can you try installing on a clean virtualenv yourself? I think you have hyde 0.5.3 installed and it conflicts with your new installation.

Make sure you use the --no-site-packages option to avoid conflicts.

@luckypoem
Copy link

hi.
i tried installing hyde on a clean virtualenv.i succeeded: http://as3.brite.biz:45367/index.html,but when try to publish a post,i thought i had published successfully.BUT http://as3.brite.biz:45367/blog/ still only shows the original 3 posts.my post: http://as3.brite.biz:45367/blog/test1.html didn't show on http://as3.brite.biz:45367/blog/,why?how to fix it?

(dev)root@as3:~/dev/hyde-site/content/blog# cat test1.html
---
title: test1
created: !!timestamp '2013-12-02 10:00:00'
tags:
    - misc1
    - misc2
---

{% mark excerpt -%}

this is test1.

{%- endmark %}

let's have a look.
as3:~/dev/hyde-site/content/blog#

@navilan
Copy link
Member

navilan commented Dec 3, 2013

@luckypoem - I can't deduce where the problem is based on the information you have provided. Perhaps, you published without generating the site (Publish does not generate the site). Please share your source somewhere - if you are unable to sort it out.

Also, there is a mailing list for hyde: https://groups.google.com/forum/#!forum/hyde-dev

@luckypoem
Copy link

hi.
i did generate the site with "hyde gen".pls see:

(dev)as3:/dev/hyde-site/content/blog# ls
angry-post.html excerpts.xml index.html sad-post.html test1.html
atom.xml happy-post.html meta.yaml tags
(dev)as3:
/dev/hyde-site/content/blog# nano test2.html
(dev)as3:/dev/hyde-site/content/blog# cd /dev/hyde-site/
(dev)as3:
/dev/hyde-site# hyde gen
07:11:56 hyde.engine Reading site configuration from [/root/dev/hyde-site/site.yaml]
07:11:56 hyde.engine Reading site contents
07:11:56 hyde.engine Generating site at [/root/dev/hyde-site]
07:11:56 hyde.engine Configuring the template environment
07:11:56 hyde.engine Generating site to [/root/dev/hyde-site/deploy]
07:11:57 hyde Generation complete.
(dev)as3:
/dev/hyde-site# cd content/blog
(dev)as3:~/dev/hyde-site/content/blog# ls
angry-post.html excerpts.xml index.html sad-post.html test1.html
atom.xml happy-post.html meta.yaml tags test2.html

but http://as3.brite.biz:45367/blog/test2.html also doesn't show on the http://as3.brite.biz:45367/blog/,why?

@navilan
Copy link
Member

navilan commented Dec 3, 2013

@luckypoem: Please try regenerating the site with "hyde gen -r" - I think that ought to fix the problem.

@luckypoem
Copy link

now it's ok.
thank u so much!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants