Code Monkey home page Code Monkey logo

flactory's Introduction

Hi There ๐Ÿ‘‹

I guess you know my name by now. I started playing with code when I was 10 and Iโ€™ve been enchanted with software since then. I am super-passionate about software engineering, startups and leadership. I spend a lot of time on reading books and articles, watching tech talks and experimenting on these subjects.

Other profiles

Mehdy's Stackoverflow Mehdy's LinkedIn Mehdy's Instagram Mehdy's Twitter

GitHub Stats

Anurag's GitHub stats Top Langs

flactory's People

Contributors

mehdy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flactory's Issues

error: can't copy 't': doesn't exist or not a regular file

when i tried to install flactory i faced following error
here is complete traceback

  Downloading flactory-0.1.0.tar.gz
Collecting click (from flactory)
  Downloading click-6.6.tar.gz (283kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 286kB 99kB/s 
Requirement already satisfied (use --upgrade to upgrade): jinja2 in ./envS/pycon/lib/python2.7/site-packages (from flactory)
Requirement already satisfied (use --upgrade to upgrade): flask in ./envS/pycon/lib/python2.7/site-packages (from flactory)
Requirement already satisfied (use --upgrade to upgrade): markupsafe in ./envS/pycon/lib/python2.7/site-packages (from jinja2->flactory)
Requirement already satisfied (use --upgrade to upgrade): Werkzeug>=0.7 in ./envS/pycon/lib/python2.7/site-packages (from flask->flactory)
Requirement already satisfied (use --upgrade to upgrade): itsdangerous>=0.21 in ./envS/pycon/lib/python2.7/site-packages (from flask->flactory)
Installing collected packages: click, flactory
  Running setup.py install for click ... done
  Running setup.py install for flactory ... error
    Complete output from command /home/reza/envS/pycon/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-kIrwnn/flactory/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-RehIkE-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/reza/envS/pycon/include/site/python2.7/flactory:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    copying flactory.py -> build/lib.linux-x86_64-2.7
    running install_lib
    copying build/lib.linux-x86_64-2.7/flactory.py -> /home/reza/envS/pycon/lib/python2.7/site-packages
    byte-compiling /home/reza/envS/pycon/lib/python2.7/site-packages/flactory.py to flactory.pyc
    running install_data
    creating /home/reza/envS/pycon/flactory
    error: can't copy 't': doesn't exist or not a regular file

    ----------------------------------------
Command "/home/reza/envS/pycon/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-kIrwnn/flactory/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-RehIkE-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/reza/envS/pycon/include/site/python2.7/flactory" failed with error code 1 in /tmp/pip-build-kIrwnn/flactory/

error in bootstraping project via flactory

when i try to create a new project by flactory new i get prompted to this options:

which template do you want to use [mehdy/default]: 

entering mehdy , default , reza or anyother name gives following error:

Traceback (most recent call last):
  File "/home/reza/envS/pycon/bin/flactory", line 9, in <module>
    load_entry_point('flactory==0.1.1', 'console_scripts', 'flactory')()
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/click/core.py", line 1058, in invoke
    sub_ctx = cmd.make_context(cmd_name, args, parent=ctx)
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/click/core.py", line 620, in make_context
    self.parse_args(ctx, args)
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/click/core.py", line 874, in parse_args
    value, args = param.handle_parse_result(ctx, opts, args)
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/click/core.py", line 1398, in handle_parse_result
    self.callback, ctx, self, value)
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/click/core.py", line 77, in invoke_param_callback
    return callback(ctx, param, value)
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/flactory.py", line 87, in check_template
    user, template = value.split('/')
ValueError: need more than 1 value to unpack

and just pressing enter give following error

Traceback (most recent call last):
  File "/home/reza/envS/pycon/bin/flactory", line 9, in <module>
    load_entry_point('flactory==0.1.1', 'console_scripts', 'flactory')()
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/click/core.py", line 1058, in invoke
    sub_ctx = cmd.make_context(cmd_name, args, parent=ctx)
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/click/core.py", line 620, in make_context
    self.parse_args(ctx, args)
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/click/core.py", line 874, in parse_args
    value, args = param.handle_parse_result(ctx, opts, args)
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/click/core.py", line 1398, in handle_parse_result
    self.callback, ctx, self, value)
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/click/core.py", line 77, in invoke_param_callback
    return callback(ctx, param, value)
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/flactory.py", line 88, in check_template
    if user in res.resource_listdir('flactory', 'templates'):
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1167, in resource_listdir
    resource_name
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1618, in resource_listdir
    return self._listdir(self._fn(self.module_path, resource_name))
  File "/home/reza/envS/pycon/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1706, in _listdir
    return os.listdir(path)
OSError: [Errno 2] No such file or directory: '/home/reza/envS/pycon/local/lib/python2.7/site-packages/templates'

if you manually create templates directory you will get this error:

user "mehdy" does not exist

and if you pass any name, you still will get this error:

ValueError: need more than 1 value to unpack

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.