Code Monkey home page Code Monkey logo

dad-python's Introduction

Hey, I'm Justin Hammond ๐Ÿ‘‹

Senior Software Engineer @EasyPost, IT Pro, Tech Enthusiast

I love all things tech. I've been programming for 18+ years, tinkering with electronics for 15+ years, and founding or building tech companies for 10+ years. I'm an open source fanatic, Apple fanboy, and love to explore new tech. I spend my time coding open source projects, tinkering with electronics and new tech products, and consulting teams on how to get things done.

Noteworthy Projects

The following are items that may not be represented on my GitHub profile but are noteworthy in the software space:

GitHub Stats

Metrics

Latest Blog Posts

dad-python's People

Contributors

justintime50 avatar

Watchers

 avatar  avatar

Forkers

simrit1

dad-python's Issues

FileNotFoundError in newest release

Current State

Getting the following error in my virtualenv when trying to create a random address with dad_tool.random_address. Uninstalling and reinstalling the dad_tool package seems to result in the same error.

FileNotFoundError: [Errno 2] No such file or directory: '/Users/smarston/.local/share/virtualenvs/python-oWvDs7ZO/lib/python3.9/site-packages/dad_tool/dad/src/addresses/united-states/ut-addresses.min.json'

I've viewed the site-packages/dad_tool folder on my machine and it seems I do not have site-packages/dad_tool/dad.
image (1)

Expected State

Package should install the dad submodule to prevent the error

Files Can't be Opened Properly When this is Imported as a Package

It appears that we can't open the json files when importing this as a package because it can't find the files relatively. I'll need to do a bit of digging into how to open files in a package context (when this gets included into another piece of software)

jhammond@easypost-dev $ venv/bin/python '/Users/jhammond/git/easypost/easypost-dev/src/devvm/python/dad.py'
Traceback (most recent call last):
  File "/Users/jhammond/git/easypost/easypost-dev/src/devvm/python/dad.py", line 3, in <module>
    address = dad_tool.random_address('us_ut')
  File "/Users/jhammond/.venv/easypost-tools/lib/python3.9/site-packages/dad_tool/data_router.py", line 12, in random_address
    address_json = _open_json_file(data)
  File "/Users/jhammond/.venv/easypost-tools/lib/python3.9/site-packages/dad_tool/data_router.py", line 24, in _open_json_file
    with open(address_file, 'r') as json_file:
FileNotFoundError: [Errno 2] No such file or directory: 'dad/src/addresses/united-states/ut-addresses.min.json'

DeprecationWarning: pkg_resources is deprecated as an API

venv/lib/python3.11/site-packages/pkg_resources/__init__.py:121
  /Users/jhammond/git/personal/dad-python/venv/lib/python3.11/site-packages/pkg_resources/__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API
    warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)

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.