Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C csvkit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • wireservice
  • csvkit
  • Merge requests
  • !234

Add "python setup.py develop" to developer install steps.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/dergachev/improve-dev-instructions into master Nov 08, 2013
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: dergachev

Currently instructions are as follows:

git clone git://github.com/onyxfish/csvkit.git
cd csvkit
mkvirtualenv --no-site-packages csvkit
pip install -r requirements.txt
nosetests

This successfully runs the tests, but even in the csvkit environment that we create csvcut and friends aren't available in the path. I tried to run the scripts directly, but got this error:

python ./csvkit/utilities/csvcut.py
#    Traceback (most recent call last):
#      File "./csvkit/utilities/csvcut.py", line 14, in <module>
#        from csvkit import CSVKitReader, CSVKitWriter
#    ImportError: No module named csvkit

After a bit of googling around, I realized the following is a fix:

python setup.py develop
#    symlinks ~/.virtualenvs/csvkit/bin/csvcut and friends

This pull request adds this command to the instructions, which will make it much easier to dive into debugging without knowing the intricacies of virtualenv.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/dergachev/improve-dev-instructions