Giter VIP home page Giter VIP logo

conrad's People

Contributors

abhi-baireddy avatar almondheng avatar cristhianmotoche avatar deepu-tp avatar josemyduarte avatar sangarshanan avatar vinayak-mehta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

conrad's Issues

FileNotFoundError on first conrad show

Traceback (most recent call last):
  File "/home/vinayak/.local/bin/conrad", line 10, in <module>
    sys.exit(cli())
  File "/home/vinayak/.local/lib/python3.5/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/vinayak/.local/lib/python3.5/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/vinayak/.local/lib/python3.5/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/vinayak/.local/lib/python3.5/site-packages/conrad/cli.py", line 174, in invoke
    callback()
  File "/home/vinayak/.local/lib/python3.5/site-packages/conrad/cli.py", line 125, in auto_refresh
    update_conrad_update()
  File "/home/vinayak/.local/lib/python3.5/site-packages/conrad/cli.py", line 98, in update_conrad_update
    with open(conrad_update, "w") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/vinayak/.conrad/.conrad-update'

conrad errors trying to open database file before first refresh

Hi, I was looking through Hacktoberfest issues when I found your module and downloaded it.
When I first ran pip install conference-radar, the pip installer froze for a good 2-3 minutes before I CTRL+C quit out of it. Running it again seemed to have zero effect, so I continued onward.

Running conrad show returned a DB error, perhaps a DB is not properly created before running conrad refresh? I don't personally know since I have yet to understand the project.

Full Terminal Output

No module named '_sqlite3

HI, anyone have that issue ? how to fix that , the module SQLITE3 was installed.... thanks

Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-123.4.2.el7.x86_64

[[email protected]]# conrad show
Traceback (most recent call last):
File "/usr/local/bin/conrad", line 6, in
from conrad.cli import cli
File "/usr/local/lib/python3.7/site-packages/conrad/cli.py", line 14, in
from .db import engine, Session
File "/usr/local/lib/python3.7/site-packages/conrad/db.py", line 42, in
configure_orm()
File "/usr/local/lib/python3.7/site-packages/conrad/db.py", line 22, in configure_orm
engine = create_engine(SQL_ALCHEMY_CONN, **engine_args)
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/init.py", line 479, in create_engine
return strategy.create(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py", line 87, in create
dbapi = dialect_cls.dbapi(**dbapi_args)
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/dialects/sqlite/pysqlite.py", line 382, in dbapi
from sqlite3 import dbapi2 as sqlite
File "/usr/local/lib/python3.7/sqlite3/init.py", line 23, in
from sqlite3.dbapi2 import *
File "/usr/local/lib/python3.7/sqlite3/dbapi2.py", line 27, in
from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'

Need support for ZSH and add more documentation

Hi all, I found very interesting this tool.
I tried to used but It doesn't work on ZSH.
When using the command: conrad show, I obtain the message: zsh: command not found: conrad.
Do I have to do some configurations before using it?
I tried to find some documentation, but there isn't one for the configuration so I will be helpful to add some for a first run.

Thanks in advance.

Check for new conrad version

Compare user's conrad.__version__ with the latest release on PyPI and suggest them to upgrade conrad periodically.

add support for filters

...so that I can filter events by country.

More use-cases can be show events in the next 3 months, things like that.

conrad show --new

Show events that were added on the last refresh.

Additionally, show the number of events added on each refresh.

$ conrad refresh
10 new events added!

Add crawler test to docs and ci

Doc:
"Before raising a PR with a crawler, run it with python -m crawlers CreepyCrawler to see if it works.".

CI:
A PR with a crawler should start a CI job which tries to run for one event.

Add support for multiple event schema versions

#139 adds a change (addition of a location field) which would break earlier conrad versions. One way to make this change backwards compatible would be to have two event files, the current one (events.json) and a new one (events_v2.json). Will need to import new events into both files when the scrapers run. Can support both files for two minor versions, but since schema changes like #139 could happen in the future too, it might make sense to keep events.json, events_v2.json, events_v3.json and so on, and keep them all updated.

Weird bug in conrad import

Tried conrad import with conrad.zip (extract for json)

The first time It gave me a validation error even though there are no duplicates event names

Another time it updated events.json but did not echo the string saying that these were updated...it ran successfully silently.

click.echo("Updating {}".format(e["name"]))

The third time it runs successfully

Screenshot from 2019-10-28 16-51-12

Conrad remind should check CONRAD_HOME exist before running

Right now if you have a clean conrad env and you run conrad remind it will fail bc the DB doesn't exist yet. You need to execute refresh first.

Before executing remind command might be a good idea to check if the db exists and suggest the user to run refresh first.

Conrad breaks on upgrade in Py3.7

Adding the stacktrace for conrad show here:

Traceback (most recent call last):
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context
    cursor, statement, parameters, context
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute
    cursor.execute(statement, parameters)
sqlite3.OperationalError: no such column: event.by

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/nirant/miniconda3/envs/toys/bin/conrad", line 10, in <module>
    sys.exit(cli())
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/conrad/cli.py", line 169, in invoke
    return orig_invoke(ctx)
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/conrad/cli.py", line 284, in _show
    session.query(Event).filter(*filters).order_by(Event.start_date).all()
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3186, in all
    return list(self)
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3342, in __iter__
    return self._execute_and_instances(context)
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3367, in _execute_and_instances
    result = conn.execute(querycontext.statement, self._params)
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 988, in execute
    return meth(self, multiparams, params)
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/sqlalchemy/sql/elements.py", line 287, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1107, in _execute_clauseelement
    distilled_params,
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context
    e, statement, parameters, cursor, context
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception
    util.raise_from_cause(sqlalchemy_exception, exc_info)
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb, cause=cause)
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 152, in reraise
    raise value.with_traceback(tb)
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context
    cursor, statement, parameters, context
  File "/Users/nirant/miniconda3/envs/toys/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such column: event.by
[SQL: SELECT event.id AS event_id, event.name AS event_name, event.url AS event_url, event.city AS event_city, event.state AS event_state, event.country AS event_country, event.cfp_open AS event_cfp_open, event.cfp_end_date AS event_cfp_end_date, event.start_date AS event_start_date, event.end_date AS event_end_date, event.source AS event_source, event.tags AS event_tags, event.kind AS event_kind, event."by" AS event_by 
FROM event ORDER BY event.start_date]
(Background on this error at: http://sqlalche.me/e/e3q8)

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.