Comments (7)
@vrecano Hi, I run mentalist and got the same error as you got And I use python 3.11.2 with kali linux. And I change the mentalist/view/main.py file to fix the error.
you have to go to the line 163 in main.py and here is my change:
size = [int(_) for _ in self.master.geometry().split('+')[0].split('x')] # change the tuple to list
x = w/2 - size[0]/2
margins = (h-height) / 2
if margins < 100: # Don't waste any vertical space on smaller screens,
y = 0 # push the window right up to the top.
elif margins < 200:
y = 50 # window is partial way down, but not into the bottom 100px on screen
else:
y = h/2 - size[0]/2 # big screen - center vertically
if h < size[1]: # shrink the window vertically if it doesn't fit
size[1] = h - 10 # line 163
y = 0
locate = size + [x, y]
w_new,h_new,x_new,y_new = locate
self.master.geometry("%dx%d+%d+%d" % (w_new,h_new,x_new,y_new))
self.master.deiconify() # show the main window
self.master.protocol("WM_DELETE_WINDOW", self.controller.exit)
After that you reinstall the software and run.
from mentalist.
@vrecano what version of python are you using? Are you building from source or are you using a pre-built binary?
from mentalist.
@jsownz Hello, I've been having the same issue, I downloaded the zip file extracted it and installed the setup.py, I'm running Python 3.11.2
v 1.0
by sc0tfree
Traceback (most recent call last):
File "/usr/local/bin/mentalist", line 33, in
sys.exit(load_entry_point('Mentalist==1.0', 'gui_scripts', 'mentalist')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/Mentalist-1.0-py3.11.egg/mentalist/controller.py", line 368, in main
controller = Controller()
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/Mentalist-1.0-py3.11.egg/mentalist/controller.py", line 31, in init
self.mainview = view.MainWindow(self)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/Mentalist-1.0-py3.11.egg/mentalist/view/main.py", line 163, in init
size[1] = h - 10
~~~~^^^
TypeError: 'tuple' object does not support item assignment
from mentalist.
@baybiegirl20 looks like you're compiling from source with a newer version of python than the one listed in the documentation. Download a release instead and run the executable. https://github.com/sc0tfree/mentalist/releases/tag/v1.0
from mentalist.
@jsownz I tried running a release and I get the same error message
from mentalist.
@baybiegirl20 Just installed from source on a fresh linux install with python 3.11 without issue. The fact that you're getting a python error while running an executable is also strange, makes me think there's something going on with your python install/versions. I would try using a venv https://realpython.com/lessons/activating-virtual-environment-terminal/ to cut out other variables.
What OS version are you running?
How many python installs are on this machine?
Do you have all the prereqs installed in the documentation https://github.com/sc0tfree/mentalist/wiki/Installation#install-from-source?
The error being reported is saying that something is trying to change a value in a Tuple, but if that was the case, I should be getting that error as well (and I'm not, in the executable or building from source). Do you have a config file that it's reading from and if so, what's in it?
Just to clarify, I'm not a dev on this project - I contributed like 5 lines about 10 years ago when it was very very first started - just a user giving ideas to try
[edit: added tag]
from mentalist.
I changed some code, and it fixed.
from mentalist.
Related Issues (20)
- Why in the special chars doesn't appear the symbols less than "<", greater than">", dot "." and the tilde "~", question mark "?", etc. HOT 1
- re-write in PyQt
- cant run mentalist HOT 2
- how do i create a wordlist that only have 2 numbers and the rest are lowercase alphabet and it's length should be 8 ? HOT 2
- I get this error when I execute mentalist, Can you please help me? HOT 2
- locale.Error: unsupported locale setting HOT 1
- ImportError: attempted relative import with no known parent package
- Can't run Mentalist HOT 4
- prepend words is broken (reversed)
- Enhancement: Use AN"str" vs $x$x$x or ^x^x^x to append/prepend
- Question (more than issue) HOT 1
- Not working HOT 1
- Can't run "setup.py" HOT 1
- can't run mentalist (windows) HOT 2
- Feature request ideas - More systematic full-string processing, output formats & extra processes.
- https://github.com/sc0tfree/mentalist/releases/download/v1.0/Mentalist-v1.0-Win.zip
- anyone help me to solve this issue
- packaging issue: deployment of tests
- TypeError HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mentalist.