Giter Site home page Giter Site logo

Problems running ur script about ptcaccount HOT 6 OPEN

 avatar commented on July 17, 2024
Problems running ur script

from ptcaccount.

Comments (6)

 avatar commented on July 17, 2024

Im Using python 2.7

from ptcaccount.

jepayne1138 avatar jepayne1138 commented on July 17, 2024

I'm not sure what you are clicking on so I'm not exactly sure where to start.

Open your terminal (Linux or Mac) or cmd (Windows) and navigate to where you want to install the program. (If you wish to use a virtualenv so as to globally install the dependencies, do that now, but its not required to install.) Follow the installation instructions in the README, specifically run:

pip install git+https://github.com/jepayne1138/[email protected]

This installation will create the "ptc" command. Run the program by just typing:

ptc

I didn't create any entry point by running a specific file, so there currently isn't a way of just running it by double clicking on any file.

After running ptc, if you still have errors (not unlikely, as this isn't tested as thoroughly as it should be), could you please copy the Traceback message from the terminal and paste it here, and include what version of Python you're using (2.7 in this case) and what operating system you're using? This will help me figure out any issues.

from ptcaccount.

zikphil avatar zikphil commented on July 17, 2024

⋊> ptc 18:04:00 Traceback (most recent call last): File "/usr/local/bin/ptc", line 9, in <module> load_entry_point('PTCAccount==1.2.0', 'console_scripts', 'ptc')() File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 542, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2575, in load_entry_point return ep.load() File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2235, in load return self.resolve() File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2241, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/local/lib/python2.7/site-packages/ptcaccount/__init__.py", line 1, in <module> from ptcaccount.accountcreator import * File "/usr/local/lib/python2.7/site-packages/ptcaccount/accountcreator.py", line 14, in <module> from ptcaccount.exceptions import * ImportError: No module named exceptions

from ptcaccount.

xneo64 avatar xneo64 commented on July 17, 2024

@jepayne1138
code in accountcreator.py imports ptcaccount.exceptions, while the file is named ptcexceptions.py

I changed the import in accountcreator.py to reflect the different name. This should be a 30sec fix :)

from ptcaccount.

jepayne1138 avatar jepayne1138 commented on July 17, 2024

Hmm, that's my bad screwing up the version control. It looks like it's actually correct in an old version. I'm not the most experienced and have been working on like four branches on two machines. I'll take a look and see if I can't straighten it out.

from ptcaccount.

jepayne1138 avatar jepayne1138 commented on July 17, 2024

Alright, I think I sorted it out and fixed the import with release v1.2.1. Hopefully I didn't break anything else this time.

from ptcaccount.

Related Issues (14)

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.