Code Monkey home page Code Monkey logo

Comments (9)

mgedmin avatar mgedmin commented on June 28, 2024

Hmm yes, this does sound like a bug.

from irclog2html.

mgedmin avatar mgedmin commented on June 28, 2024

Ah, I missed all the existing file checks while reviewing #20.

I have a fix, and a unit test that doesn't fail when it should, so uhh this will take a little bit.

from irclog2html.

mgedmin avatar mgedmin commented on June 28, 2024

Can you test whether the fix in git master works for you? I'm planning to publish a new release soon, and it would be good to have verification.

from irclog2html.

dregad avatar dregad commented on June 28, 2024

Thanks for fixing it so quickly.

Can you test whether the fix in git master works for you?

Sure. I'll try to do later tonight.

from irclog2html.

dregad avatar dregad commented on June 28, 2024

I'm sorry, I tried to test from Git, but didn't manage to build the script following instructions in HACKING.rst. When I run make, I get

python/bin/pip install -U setuptools
Requirement already up-to-date: setuptools in ./python/lib/python3.8/site-packages (57.1.0)
python/bin/python bootstrap.py
ez_setup.py is deprecated and when using it setuptools will be pinned to 33.1.1 since it's the last version that supports setuptools self upgrade/installation, check https://github.com/pypa/setuptools/issues/581 for more info; use pip to install setuptools
Downloading https://pypi.io/packages/source/s/setuptools/setuptools-33.1.1.zip
Extracting in /tmp/tmpud6k2sp1
Now working in /tmp/tmpud6k2sp1/setuptools-33.1.1
Building a Setuptools egg in /tmp/bootstrap-0rw3jcuw
warning: no files found matching '*' under directory 'setuptools/_vendor'
/tmp/bootstrap-0rw3jcuw/setuptools-33.1.1-py3.8.egg
Couldn't find index page for 'zc.buildout' (maybe misspelled?)
Couldn't find index page for 'zc.buildout' (maybe misspelled?)
No local packages or working download links found for zc.buildout
error: Could not find suitable distribution for Requirement.parse('zc.buildout')
Traceback (most recent call last):
  File "bootstrap.py", line 192, in <module>
    raise Exception(
Exception: Failed to execute command:
'/tmp/irclog2html/python/bin/python', '-c', "import sys; sys.path[0:0] = ['/tmp/bootstrap-0rw3jcuw/setuptools-33.1.1-py3.8.egg']; from setuptools.command.easy_install import main; main()", '-mZqNxd', '/tmp/bootstrap-0rw3jcuw', 'zc.buildout'
make: *** [Makefile:63: bin/buildout] Error 1

I don't know how to fix that.

from irclog2html.

mgedmin avatar mgedmin commented on June 28, 2024

Ah, sorry about that, the zc.buildout-based development setup is rather obsolete and I should probably rip it out entirely to avoid confusion.

It should be enough to try pip install -e . the source checkout into some virtualenv (or pip install --user -e ., whatever you prefer for installing scripts with pip -- I like pipx).

Or I could just publish the new release and hope the unit test I wrote matches your problem sufficiently well.

from irclog2html.

mgedmin avatar mgedmin commented on June 28, 2024

2.17.3 released to PyPI.

from irclog2html.

dregad avatar dregad commented on June 28, 2024

Thanks for the hint with pip -e option, I was not aware of it (I'm not much of a Python expert).

Setup worked perfectly with pip install --user -e . (once I figured out that the files were stored in ~/.local/bin :-/)

I (somewhat belatedly) confirm that your fix addresses the problem. Many thanks !

from irclog2html.

mgedmin avatar mgedmin commented on June 28, 2024

Yeah, Python packaging is a whole thing.

(I've started using pipx myself for installable Python command-line tools, which makes it easier to install/remove/upgrade them than installing everything into one bucket with pip install --user.)

from irclog2html.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.