-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Know nothing... #29
Comments
Hi
Mikael (Sweden) |
Hi Again; This does not work for me. wonder why. Still get: "jaraco.functools requires Python '>=3.6' but the running Python is 2.7.16" I would appreciate if someone can help :-) Thanks a lot. BR Bo |
Hi, Fixed it with: sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 2 But access to web page is denied. BR |
I've just come across this project as I'm going to buy a Silvia very soon, and haven't got this software running, but I am a developer. If you can't get to the webpage this is hosted at, check permissions of the www folder and the files within. Also make sure you're trying on port 8080 which means accessing it on (ip-address-of-your-pi):8080 The default port is 80, 8080 is a common one people use for internal projects. |
Hi Samuel. Thanks for your message. I have tried to reach the webpage on port 8080 but no luck. I think it's not that simple. To me it looks like a python 3 vs. 2 issue. I am not a developer, so I have unfortunately no idea how to check permissions. I look forward for you to get the SW up and running.... and would highly appreciate if you could update us on tips and tricks on how to get this to work😊. Have a good day! Bo |
In a command line on the raspberry pi try It'll tell you which version you're running. If you type Good luck! |
I also had the same issue getting the Webserver running. I know that I had to make some changes in the silvia-pi.py file to get it running under python 3.6 (it was programmed in 2.x). I found the problem in the "rest_server" function in the silvia-pi.py file. It was a Problem with the os-package version basedir = os.path.dirname(file) This is correct in Python 2.x, but doesn't work in Python 3.x basedir = os.getcwd() Now the function finds the "index.html"-file for the webserver and everything runs smoothely. Cheers |
Dear mosch91-syn and srjwebster, I am struggling with this. And it admit that I have very little knowledge about what I am doing. Could you by any chance help me with a full set of instructions from start to finish? I start using the Raspberry Pi imager and install a fresh image. Then i configure the wifi and allow ssh in the gui. when connecting with the user "pi" I can see that it starts by using python 2x. what do I do from here? I know its a lot to ask and for someone that knows it must be trivial to deal with someone like me, but I would highly appreciate if you took the time... Thanks a lot. Br Bo |
Hi again, I managed to change to python 3x, but then I get all sorts of errors when running the silvia-pi.py. i corrected the missing parentheses on the "print" commands but then there was an error with "urllib2".... I am lost here :-) |
The project is a little old and in need of some repair. If you're not
familiar enough with Python to correct it, I'd say this project is
simply not appropriate for your use. I'd recommend just subscribing to
updates in case a member of the community repairs it and publishes the
results.
…On 25/06/2020, bosuur ***@***.***> wrote:
Hi again,
I managed to change to python 3x, but then I get all sorts of errors when
running the silvia-pi.py.
i corrected the missing parentheses on the "print" commands but then there
was an error with "urllib2".... I am lost here :-)
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#29 (comment)
|
Hi srjwebster, I understand but reading mosch91-syn's message above I had the impression that everything runs smoothely by doing the suggested change.... Ill keep an eye on any updates. Thanks. Bo |
As srjwebster said, if you're not familiar with at least basic python, this project might be too much for you... In my post above I pointed you towards a solution for the web browser not being displayed. Of course, this wasn't my only code change. I had a lot more problems going from python 2.x to 3.x. This meant a lot of googling and debugging. Still I wouldn't confident enough to open a pull request, because my code might be too specific, e.g. I use a different temperature sensor. Regarding your problem I can only tell you, that I had the same problem with urllib because the syntax changes from 2.x to 3.x. |
Hi @bosuur , did you make any progress with this? I'm about to order parts and attempt this install. Any advice on parts and install is appreciated. I'm a programmer and can help with migrating code from Python 2 to Python 3. |
Hi Igor.Unfortunately not. No one seemed to be willing to help a novice like me😐.Good luck.Best regards BoSendt fra min Galaxy
-------- Oprindelig besked --------Fra: igor-elbert ***@***.***> Dato: 07.05.2021 21.43 (GMT+01:00) Til: brycesub/silvia-pi ***@***.***> Cc: bosuur ***@***.***>, Mention ***@***.***> Emne: Re: [brycesub/silvia-pi] Know nothing... (#29)
Hi @bosuur , did you make any progress with this?
I'm about to order parts and attempt this install. Any advice on parts and install is appreciated. I'm a programmer and can help with migrating code from Python 2 to Python 3.
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.
|
https://github.com/rwr88/silvia-pi - seems to be a clone with multiple changes including migration to Python3 |
Hi There,
Found your project and can unfortunately not get it to work.
I know nothing about programming, so I am sorry for these dumb questions:
When i run "setup.sh" i get this error in the end:
"jaraco.functools requires Python '>=3.6' but the running Python is 2.7.16"
.. can you help?
It's then installed and then what?... I am not able to access any web page to set brew time and more.... Can you help?
Again.... sorry for the stupid questions.
BR Bo (Denmark)
The text was updated successfully, but these errors were encountered: