devbisme / KiField

Edit/insert/delete part fields in KiCad schematics or libraries using a spreadsheet.
MIT License
70 stars 27 forks source link

kifield start error message #43

Closed ghost closed 6 years ago

ghost commented 6 years ago

I have error message while running kifield:

Traceback (most recent call last):
  File "kifield.py", line 50, in <module>
    from .sch import Schematic
ModuleNotFoundError: No module named '__main__.sch'; '__main__' is not a package
kasbah commented 6 years ago

What version of python are you running? Have you tried it with Python3?

ghost commented 6 years ago

Same problem with Python 3.6.2rc1 and Python 3.7.0b2.

kasbah commented 6 years ago

And python 2.7?

kasbah commented 6 years ago

Could you give more details that would allow me to reproduce this issue please. Can you share the file and the exact command you are running?

ghost commented 6 years ago

With python2.7 have broken package dependecies:

root@debian:/home/user/KiField/kifield# pip install future
Requirement already satisfied: future in /usr/local/lib/python2.7/dist-packages (0.16.0)
pycollada 0.4 has requirement python-dateutil==1.5, but you'll have python-dateutil 2.6.1 which is incompatible.

To reproduce the issue:

git clone https://github.com/xesscorp/KiField.git
cd KiField/kifield
user@debian:~/KiField/kifield$ python3.6 kifield.py
kasbah commented 6 years ago

You need to install it. E.g.

pip3 install kifield

or if you really want to install from git:

cd KiField
pip3 install .

Then run the kifield command that should be on your path.

ghost commented 6 years ago

Thanks, works now.