Python Forum
Complete Beginner Startup - Simply run github code for hpd20
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Complete Beginner Startup - Simply run github code for hpd20
#1
Hi All
Im a reasonably experienced programmer in vba/rexx/wscript and graphic languages like pure data/max/grasshopper etc.

I am using a midi instrument called a hpd20 which someone on github has kindly written an editor for (in python).

I simply wanted to run the editor...not learn yet another language as Im out of time and just want to play music...
My question is; I have 'pip install hpd20' from github and it ran through a successful install...I simply want to open the gui but there are no docs etc and I have no clue where to start. Im wondering whether is something wrong with the code but more likely me...but I was hoping the program would save me a number of hours of twiddling on hardware...

The code Im talking about is found here;
https://github.com/scjurgen/hpd-20

Would anyone here be able to test if it actually works and be so kind as to provide at least some clues so that I might be able to use, what seems like a great little utility...and possibly learn to love python along the way ;-)

Many thanks
Reply
#2
Read the document on the github page: 'Usage'
which gives step by step instructions for running this module.
Reply
#3
(Apr-23-2018, 11:27 AM)Larz60+ Wrote: Read the document on the github page: 'Usage'
which gives step by step instructions for running this module.

Thanks...I wouldnt ask but the concept of python is very alien to the other languages...there seems to be something missing in my interpretation;

I installed python 3.6 (latest) which I understand to be an interpreter
Python is added to path so that it execute without literal location reference
via cmd I executed 'pip install hpd20' which installed something...wasnt sure if you had to be in python or just cmd but I got this far.
I type hpd20-ui into cmd (once again, doesnt say whether its a vectored command or typed into python as interpreted...lot of backward siltation on my part I know...might have been easier without pre conceptions)

It the prints out...

Traceback (most recent call last):
File "C:\Users\Our House\AppData\Local\Programs\Python\Python36-32\Scripts\hpd20-ui-script.py", line 11, in <module>
load_entry_point('hpd20==0.0.9', 'console_scripts', 'hpd20-ui')()
File "c:\users\our house\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 480, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "c:\users\our house\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2693, in load_entry_point
return ep.load()
File "c:\users\our house\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2324, in load
return self.resolve()
File "c:\users\our house\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2330, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "c:\users\our house\appdata\local\programs\python\python36-32\lib\site-packages\hpd20\hpd20wx.py", line 6, in <module>
import ConfigParser
ModuleNotFoundError: No module named 'ConfigParser'

This as far as I get.
Reply
#4
Quote:wasnt sure if you had to be in python or just cmd but I got this far.
command is the right place

Quote:ModuleNotFoundError: No module named 'ConfigParser'
There must either be a config file that has to be set up for your system, or config arguments passed to the hpd20-ui command.

The last time I used any Apple at all was the II-2 back in the 1980's so can't help with OS requirements.

one thing you might try (from command line) is:
python hpd20-ui
If that doesn't work, one of the other moderators, familiar with OS-X will pick up.
Reply
#5
It looks like this project is intended for python2 and you are using python3
in python3 it's configparser, and in python2 - ConfigParser
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#6
import ConfigParser means that the module is written in python 2: it would be import configparser in python 3. It means that you need to install python 2.7 to run the module.
Reply
#7
Python2 is installed by default on OSX. Try running it with python2 filename.py instead, and see if that works.
Reply
#8
Sorry I didnt specify up front. Im on w10...but its completely cross platform right?
Reply
#9
(Apr-23-2018, 09:14 PM)Image_Engine Wrote: Sorry I didnt specify up front. Im on w10...but its completely cross platform right?
No it's not,author has never tested in Windows.
In setup.py:
Quote:'License :: OSI Approved :: GNU General Public License (GPL)',
'Programming Language :: Python :: 2.7',
Sometime it can still work,so tested in 2.7 win-10.
Install okay,but get error when try to hpd20-ui.exe or hpd20-cli.exe.
setup.py generate .exe but that dos not mean it's testes in Windows,
it's a feature setup.py has(can generate executable CLI for all OS).
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Using Autostart to run a GUI program at startup. Rpi Edward_ 1 621 Oct-28-2023, 03:19 PM
Last Post: SpongeB0B
  Beginner: Code not work when longer list raiviscoding 2 818 May-19-2023, 11:19 AM
Last Post: deanhystad
  how to startup canbus interface on pi korenron 2 2,218 Oct-24-2021, 09:51 PM
Last Post: DeaD_EyE
  pexpect startup help korenron 2 3,479 Apr-27-2021, 07:23 AM
Last Post: korenron
  Error when running script on startup in Linux NoahTheNerd 0 1,953 Mar-07-2021, 04:54 PM
Last Post: NoahTheNerd
  Code not reading http link from .txt file (Beginner level) plarrip 3 2,408 Dec-17-2020, 11:33 PM
Last Post: bowlofred
  Beginner: I need help understanding few lines of a code. hop_090 1 1,685 Sep-07-2020, 04:02 PM
Last Post: Larz60+
  Run script on startup in Debian with systemd? MrGlasspoole 5 3,648 Jul-12-2020, 11:48 AM
Last Post: MrGlasspoole
  Beginner Code, how to print something after a number of turns (guessing game) QTPi 4 2,740 Jun-18-2020, 04:59 PM
Last Post: QTPi
  A beginner code... TheDude 7 3,283 Jun-18-2020, 05:39 AM
Last Post: TheDude

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020