mrgmarsh / wfrog

Automatically exported from code.google.com/p/wfrog
GNU General Public License v3.0
0 stars 0 forks source link

No module named serial #110

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run bin/wfrog -S

What is the expected output? What do you see instead?
Expected: Normal setup questions.
Actual:
Traceback (most recent call last):
  File "bin/wfrog", line 37, in <module>
    import wflogger.setup
  File "/share/MD0_DATA/.qpkg/wfrog/wflogger/setup.py", line 27, in <module>
    import wfdriver.station
  File "/share/MD0_DATA/.qpkg/wfrog/wfdriver/station/__init__.py", line 26, in <module>
    import vantagepro2
  File "/share/MD0_DATA/.qpkg/wfrog/wfdriver/station/vantagepro2.py", line 23, in <module>
    import serial
ImportError: No module named serial

What version of the product are you using? On what operating system?
Version:0.8.2
OS:Linux (QNAP NAS)
Station: 3080 (which is connected via USB not serial)

Please provide any additional information below.
Version 0.8.1 worked fine.
The installation instructions say the the pyserial dependency is optional, 
however it appears as though it is not with 0.8.2.

Original issue reported on code.google.com by warren.c...@gmail.com on 2 Apr 2012 at 9:39

GoogleCodeExporter commented 9 years ago
pyserial is optional depending on the driver (station type) you use. In the 
case of vantagePro2 it is necessary to have the serial module in order to 
access the station

Original comment by jordi.pu...@gmail.com on 2 Apr 2012 at 10:24

GoogleCodeExporter commented 9 years ago
I haven't been able to set the driver yet. I am running bin/wfrog -S for the 
first time.

Original comment by warren.c...@gmail.com on 3 Apr 2012 at 3:11

GoogleCodeExporter commented 9 years ago
any update?

Original comment by warren.c...@gmail.com on 5 Apr 2012 at 6:03

GoogleCodeExporter commented 9 years ago
You need to install the serial package and then configure wfrog to use 
VantagePro. You will also need to specify the serial port which may vary. Since 
your VantagePro is connected by USB your port is likely to be /dev/ttyUSB0.

Original comment by jordi.pu...@gmail.com on 5 Apr 2012 at 6:12

GoogleCodeExporter commented 9 years ago
Sorry I don't think I make it clear. I have a Fine Offset 3080 station which is 
USB not serial. I don't believe I should have to install the serial package if 
I don't need it.

Original comment by warren.c...@gmail.com on 5 Apr 2012 at 6:20

GoogleCodeExporter commented 9 years ago
any update?

Original comment by warren.c...@gmail.com on 12 Apr 2012 at 9:34

GoogleCodeExporter commented 9 years ago
The easiest might be to comment out 

import vantagepro2

and  

class YamlVantageProStation(vantagepro2.VantageProStation, yaml.YAMLObject):
    yaml_tag = u'!vantagepro2'

in __init__.py in wfdriver/station/.

Then try again bin/wfrog -S

Original comment by andreas....@googlemail.com on 12 Apr 2012 at 9:45

GoogleCodeExporter commented 9 years ago
This is an issue with the vantagepro2 driver. "import serial" should go in the 
run method, like in the other drivers. I'll change and commit this tonight.

Jordi.

Original comment by jordi.pu...@gmail.com on 12 Apr 2012 at 11:17

GoogleCodeExporter commented 9 years ago
solved with revision 898

Original comment by jordi.pu...@gmail.com on 12 Apr 2012 at 5:27

GoogleCodeExporter commented 9 years ago
Hi Jordi, sorry for late reply. Thanks for fixing this. I will look forward to 
the next release. Any idea when this will be?

Original comment by warren.c...@gmail.com on 21 Apr 2012 at 8:27