Giter Club home page Giter Club logo

Comments (4)

xgi avatar xgi commented on August 27, 2024

Should be fixed, thanks!

I accidentally used a Python 3.6 feature when I intend to support 3.5.

from castero.

queltosh avatar queltosh commented on August 27, 2024

Thanks for the fast answer. I am creating a docker image with this project, Its working with version 0.4.2 but if i change it to try the latest comit this is what i get:

Traceback (most recent call last):
  File "/usr/local/bin/castero", line 11, in <module>
    load_entry_point('castero==0.5.3', 'console_scripts', 'castero')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 561, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2631, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2291, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2297, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.5/dist-packages/castero-0.5.3-py3.5.egg/castero/__main__.py", line 79, in <module>
    main()
  File "/usr/local/lib/python3.5/dist-packages/castero-0.5.3-py3.5.egg/castero/__main__.py", line 15, in main
    database = Database()
  File "/usr/local/lib/python3.5/dist-packages/castero-0.5.3-py3.5.egg/castero/database.py", line 18, in __init__
    self._conn = sqlite3.connect(self.PATH, check_same_thread=False)
sqlite3.OperationalError: unable to open database file

The Dockerfile i'm using is:

FROM debian:9-slim
RUN apt-get update && apt-get install -yy python3 python3-pip wget git
RUN apt-get clean
RUN git clone https://github.com/xgi/castero
RUN cd /castero && python3 setup.py install
ENTRYPOINT ["castero"]

from castero.

xgi avatar xgi commented on August 27, 2024

Thanks for the dockerfile.

This should be fixed as of d897ddc. I had to ensure that the $XDG_DATA_HOME/castero path existed before trying to create the database file.

Sorry for the issues!

from castero.

queltosh avatar queltosh commented on August 27, 2024

Now works great. Thanks a lot!

from castero.

Related Issues (20)

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.